Analytics installed twice

How the scan counts setup calls for the same analytics ID, and why one ID configured twice can count every visit two times.

What AuditX checks

The scan reads the HTML of the page as the server sends it and counts setup calls per ID. It counts gtag config calls (Google Analytics, Universal Analytics and Google Ads IDs), the older ga create call, Meta Pixel fbq init calls, and the Google Tag Manager loader snippet. The ID in the gtag.js script address and in the noscript fallback of Tag Manager is not counted, because every normal install has those. When the same ID is set up two or more times, the result is a warning that names up to three IDs and how often each was found. A warning counts toward the technical score at 40 percent of what a fail would cost, here with double weight. Placeholder IDs are left out, because the placeholder check already reports them. One setup call per ID is a pass. The scan counts text in the page, so two calls in branches of which only one runs, for example one per language, are also counted. It does not look inside your tag manager container or your analytics account.

Why it matters

Google Analytics developer documentation says the config command sends a page_view event by default when the Google tag loads. Two config calls for the same ID can send two page views for one visit.

The same documentation warns that sending page views in more than one way can give duplicate page views, which inflate traffic and distort engagement and conversion rates.

How to fix it

  1. Search your theme, plugins and tag manager for a second copy of the snippet with the ID named in the result.
  2. Keep one installation per ID, for example only through Tag Manager or only through the theme.
  3. If a second config call is there on purpose, add send_page_view set to false to it.
  4. Check in the real-time report that one visit counts as one page view.
<!-- installed by the theme AND by a plugin -->
gtag("config", "G-4F7K2M9QZD");
gtag("config", "G-4F7K2M9QZD");

Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.

Scan my site

Sources

Related checks

Last reviewed 2026-11-13.