It All Started With An Idea
Open-source tool · GA4, GTM and pixel QA

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.

Marketing Analytics Auditor on desktop
Marketing Analytics Auditor on a phone
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.

The work

How we built it, step by step

  1. 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.
  2. 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.
  3. Checked pixels and CAPIIt looks for signs that ad pixels and server-side conversion APIs are both in place across platforms.
  4. 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.
  5. 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.
  6. 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

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