If you try to detect whether a site runs Meta, Google Ads, TikTok, or LinkedIn conversion pixels by scanning its homepage HTML, you will miss a huge chunk of them. On modern ecommerce and SaaS sites, the HTML only has one line:
<script async src = "https://www.googletagmanager.com/gtm.js?id=GTM-M28G2G" ></script>
Enter fullscreen mode
Exit fullscreen mode
Everything else lives inside that container. And if you spin up headless Chrome to wait for network beacons, you run into two problems fast: Chrome eats ~300-500MB per instance, and any EU-compliant consent banner blocks the marketing tags from firing anyway.
It turns out gtm.js is not opaque compiled bytecode. Inside the minified JS bundle sits a plain JSON structure containing "macros":[...] and "tags":[...] .…