On this page
What this issue is
GA4 can be installed in two ways. You can paste the gtag.js snippet into your site code, or you can add a GA4 tag inside Google Tag Manager. This issue happens when both are live on the same pages with the same measurement ID (the G-XXXXXXXXXX code).
- Visitor loads pageOne real page view
- gtag.js snippet firesSends page_view #1
- GTM GA4 tag firesSends page_view #2
- GA4 reportsInflated views, skewed rates
Both installs send the same event to the same GA4 property.
Why it costs you leads or sales
Example: a site with 1,000 real page views a day reports about 2,000 when GA4 is installed twice.
How to check if your site has it
View the page source
Open a page, right-click, choose View page source and search for
googletagmanager.com/gtag/jsandGTM-. If you find a gtag.js script with your G- ID and also a GTM container, check whether GTM has a GA4 tag too.Watch the Network tab
Open browser DevTools, go to Network, filter by
collectand reload the page. Two requests togoogle-analytics.com/g/collectwithen=page_viewfor the same load means duplicates.Use GTM PreviewGoogle Tag Manager
In Tag Manager click Preview and open your site. Check which GA4 tags fire on Initialization or Page View, and whether a separate gtag.js hit also appears.
Use GA4 DebugView
In GA4 go to Admin, then DebugView. With debug mode on, load a page and see if page_view appears twice within the same second.
Check plugins and themesWordPress
Look for SEO, analytics or theme settings that add GA4 on their own, such as Site Kit, MonsterInsights or a theme's tracking field.
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX');
</script>How to fix it
List your GA4 tags
In Tag Manager open Tags and find every Google tag or GA4 Configuration tag using your G- ID. Keep only one.
Remove or pause extras
Delete duplicate tags, or remove their triggers. If you keep GTM as the method, make sure the one GA4 tag fires once per page.
Publish
Click Submit and Publish, then test again in Preview.
Find where GA4 is added
Check your analytics plugin settings, theme options (Customize or a Header/Footer scripts field) and any plugin that inserts GTM.
Remove the extra copy
Delete the gtag.js snippet from the theme or plugin if GTM handles GA4. Or turn off the plugin's tracking if it duplicates GTM.
Clear caches
Purge your caching plugin and CDN so old code is not served.
Check the Google & YouTube app
In Shopify admin, open Settings, then Apps and sales channels or the Google & YouTube app, and see if GA4 is connected there.
Check theme code
In Online Store, Themes, Edit code, search
theme.liquidforgtag(andG-. Remove a hard-coded snippet if GTM or the app already sends GA4.Check Customer events
In Settings, Customer events, look for custom pixels that also send GA4 and remove duplicates.
Check Project settings
Open Project settings, then Integrations. Look for a Google Analytics ID in the field and any GTM ID.
Check custom code
Look in Custom code (head and footer) and in page-level custom code for a gtag.js snippet. Keep one method only.
Publish
Publish the site to apply the change.
Check Marketing integrations
In the Wix dashboard open Marketing integrations or Google Analytics and see if a G- ID is connected.
Check custom code
In Settings, Custom code, look for gtag.js or GTM scripts. Remove the one you do not need.
Check the Google Analytics setting
Go to Settings, Developer Tools or Marketing, Integrations and check whether a GA4 ID is connected.
Check code injection
In Code Injection, look at Header and Footer for a gtag.js or GTM snippet. Keep a single method.
Check funnel and site settings
In each funnel or website, open Settings, Tracking Code and look in Header and Footer code for gtag.js and GTM.
Check for a Google Analytics field
If the builder has a built-in analytics field with a G- ID, do not also add the same ID in GTM. Remove one.
Search your templates
Search the codebase for
gtag/js,gtag('config'andGTM-. Check layouts, partials and tag-injection scripts.Delete the duplicate
Remove the gtag.js snippet if GTM sends GA4, then deploy.
Two installs
- gtag.js snippet in the page head
- GA4 tag also in GTM
- Two page_view hits per load
- Inflated views and odd bounce rate
One install
- GA4 sent from a single source
- One page_view hit per load
- Counts match real visits
- Conversions counted once
How to confirm it's fixed
- Page source shows only one GA4 source for your G- ID
- Network tab shows a single
collectrequest withen=page_viewper page load - GTM Preview shows one GA4 tag firing, not two
- DebugView shows one page_view per page
- Key events such as purchase or generate_lead appear once per action
- After a few days, daily page views fall to a realistic level
How to prevent it happening again
- Decide and document one install method for GA4
- Check for existing tracking before adding any new plugin, app or snippet
- Review GTM changes in Preview before publishing
- Re-test tracking after theme, plugin or builder changes
- Give one person ownership of analytics changes
How FunnelGuard handles this
Day 1
A developer adds a gtag.js snippet to the site.
Month 2
A marketer adds a GA4 tag in GTM without knowing.
Month 3
Page views jump and bounce rate drops. Nobody links it to the change.
Fix day
One install is removed and counts return to normal.
Questions people ask
Why are my GA4 page views doubled?
The most common cause is GA4 being installed twice, once as a gtag.js snippet and once as a tag in Google Tag Manager. Both send a page_view for each page load. Remove one install to fix it.
How do I check if GA4 is installed twice?
Open DevTools, go to the Network tab, filter by collect and reload the page. If you see two requests with en=page_view for one load, GA4 is firing twice. Also search the page source for both gtag/js and a GTM container.
Should I use gtag.js or Google Tag Manager for GA4?
Use whichever you prefer, but only one. GTM is usually better if you run several tags, since you can change tracking without editing site code. gtag.js is fine for a simple site with no container.
Does a double GA4 install lower my bounce rate?
It can. Two page_view hits in one session can make GA4 treat visits as engaged, so bounce rate often falls and engagement rate rises. These numbers are not real until the duplicate is removed.
Can GA4 remove duplicate page views from past data?
No. GA4 does not let you delete or merge hits already collected. Fix the install, note the date and compare periods with that change in mind.
Will duplicate GA4 tags double my conversions?
They can, if the conversion events such as purchase or generate_lead are also sent by both installs. Check your event counts in DebugView and in Reports. Duplicated conversions can mislead Google Ads bidding if you import them.
Can FunnelGuard detect GA4 being installed twice?
Yes. FunnelGuard runs your funnel journeys on a schedule and its no_duplicate_events check flags the same GA4 event sent more than once per page load. It alerts you with a screenshot and a likely cause.
Related issues
- TRK-005Two GA4 measurement IDs sending to the same propertyFix guide
- TRK-001GA4 tag missing from a funnel pageFix guide
- TRK-002GA4 tag missing site-wide after a theme or builder changeFix guide
- TRK-003Wrong GA4 measurement ID (staging or another client's property)Fix guide
- TRK-008gtag.js loaded but config command never calledFix guide
- TRK-007GA4 config fires after the conversion event (race on fast redirects)Fix guide