Analytics Auditor: a free GA4, GTM and pixel audit with fix code
The auditor scans a page for 10 marketing tags and consent setup, audits a GA4 property through the Admin API and writes the code to fix what it finds. Most audit tools stop at the report.


- Tool
- Marketing Analytics Auditor
- Built
- Feb 2026
- Code
- Public on GitHub, single HTML file
- Stack
- JavaScript, Google Analytics Admin API, Gemini 2.0 Flash
- Cost
- Free
The idea
Analytics audit tools tell you what is wrong but leave the fix to you. Someone still has to write the dataLayer events, consent code and pixel snippets.
Tag problems also hide across platforms: a site can have GA4 working while the Meta Pixel, Google Ads tag or consent banner is missing or misconfigured.
How we built it, step by step
- Built the page scannerPaste a URL or HTML and the scanner detects 10 platforms: GA4, GTM, Meta Pixel, Google Ads, TikTok, LinkedIn Insight, Pinterest, Snapchat, X and Microsoft UET. It also checks Consent Mode v2, IAB TCF 2.0 and consent banners.
- Audited the GA4 propertyThrough the Google Analytics Admin API, the repo version runs a 40-point audit of property settings, data streams, enhanced measurement, key events, product links, custom definitions and audiences. The live page now describes a 100+ point audit.
- Checked pixels and CAPIIt looks for signs that ad pixels and server-side conversion APIs are both in place across platforms.
- Generated the fixesThe remediation engine writes dataLayer.push() events for ecommerce and leads, Meta CAPI boilerplate, a Consent Mode v2 template, Enhanced Conversions code, pixel snippets and the GTM noscript tag.
- Added AI Page VisionWith your own Gemini key, Gemini 2.0 Flash maps elements on the page to recommended GA4 events and ranks them by priority.
- Kept it to one fileThe whole tool is a single HTML file with no build step or dependencies, hosted free on ahmeego.com.
What it does
- Detection for 10 marketing tags
- Consent Mode v2 and IAB TCF 2.0 checks
- GA4 property audit through the Admin API
- Copy-paste fix code
- Health score
- AI mapping of page elements to GA4 events
How people find it
- Free hosted tool on ahmeego.com, no login for URL scans
- Public source on GitHub
- Fix code for Pinterest, Snapchat, X and UET is planned; detection works now
Questions people ask about this work
How do I check if Consent Mode v2 is set up on my site?
Scan the page for the consent signals that load before your tags. The auditor checks for Consent Mode v2, IAB TCF 2.0 and a consent banner, and if they are missing it gives you a Consent Mode v2 template to add.
How do I audit my GA4 property settings?
Connect the property through the Google Analytics Admin API and review data streams, enhanced measurement, key events, product links and custom definitions. The auditor does this in one pass and scores the result.
How do I check which tracking pixels are on a website?
Paste the URL into the auditor. It detects GA4, GTM, Meta Pixel, Google Ads, TikTok, LinkedIn Insight, Pinterest, Snapchat, X and Microsoft UET tags without a login.
Services in this project
Related projects
Ad Tracking Diagnostic
Paste a URL and the tool checks whether Google Ads click IDs and UTM values are captured, kept and written into hidden form fields.
Creative Asset Validator and Ad Creative MCP
Upload one image and the validator checks it against specs for 50+ advertising platforms, then resizes it into each size you are missing.
Buddy by Ahmeego
Buddy is a chat-based agent that reads a Google Ads account, stages changes, asks you to confirm them, makes them through the Google Ads API and checks the result.
Built and written up by John M. Williams, founder of It All Started With An Idea in Queen Creek, AZ. 15+ years and $350M+ in managed ad spend.