Back to articles
Check Your Landing Page Before Running Ads — A 60-Line Node.js Script

Check Your Landing Page Before Running Ads — A 60-Line Node.js Script

via Dev.to WebdevBoehner

I watched a client spend $500 on Instagram ads driving to a page with no OG image, no clear CTA, and a 4-second load time. The ads weren't the problem — the page was. The ad creative was fine. The targeting was fine. But every click landed on a page that was invisible on social previews, had no obvious next step, and took forever to load on mobile. So I wrote a 60-line script to catch this before the campaign launches. What the script checks The audit calls SnapAPI's /analyze and /metadata endpoints in parallel and checks eight things: OG title — controls the headline shown when your link appears in an ad preview or is shared on social. Missing = your raw URL shows instead. OG description — the subtitle below the headline in link previews. Missing = blank space. OG image — the thumbnail. Missing = no image, lower click-through rate on every platform. Twitter card — whether the page is set up for Twitter's expanded card format. CTA count — detects visible call-to-action buttons. Zero CT

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
2 views

Related Articles