GA4 and GTM both installed: duplicate page_view and doubled sessions.
- “GA4 and GTM both installed duplicate page_view”
- “GA4 page views doubled after adding Google Tag Manager”
- “GA4 doubled sessions gtag.js and GTM”
- “gtag.js and GTM both firing GA4”
- “GA4 two G- IDs in Tag Assistant”
- “GA4 duplicate events Google tag and Tag Manager both installed”
Baris Asa, tracking consultant, London · Filed 19 November 2026 · Last checked: November 2026
Page views doubled on one date while users barely moved? The same GA4 ID is probably being sent twice: once from GA4 code pasted into your pages (gtag.js) and once from a Google tag inside Google Tag Manager (GTM). Google says use one, not both. Sessions may stay flat or inflate too; thesid test below tells you which. Remove one route whole.
The usual route: GTM goes in, the theme’s GA4 ID stays. On file as F-101 , the family of one event reaching GA4 twice. If Tag Assistant can’t find your tag at all, that is the opposite problem: Tag Assistant says Google tag not found.
Check this first, no developer needed
In GA4, compare the two weeks either side of the date.
- Users flat, page views up on one date: probably duplicates. Real growth lifts users too.
- Views per session jumps on the same date. Nobody is browsing more; the counter is.
- Other automatic events step up with it, such as session_start and first_visit, or scroll and outbound clicks if enhanced measurement is on and the second copy is a full Google tag.
A match means keep reading. If users doubled too, the second sender isn’t reading the first one’s visitor ID, which is a different fault: GA4 users and sessions jumped after server-side GTM separates split visitor IDs from double sending.
Where is the second tag coming from?
No access to the page source? Install Tag Assistant (Google’s free tag checker, tagassistant.google.com), open the site, and count how many times the same G- ID appears. Then send your developer this: “Search the page source for gtag/js?id=G- and GTM-, tell me which files or plugins insert each, and keep one.” The rest of this section is for whoever opens the browser tools.
1. Search the page source. In Chrome, right-click the page and choose View page source. The inspector shows the page after scripts have run, which isn’t what you want. Search for three strings:
googletagmanager.com/gtag/js?id=G-is a gtag.js snippet in the page. TheG-ID is a GA4 measurement ID. Compare it with the ID in Admin, Data streams.googletagmanager.com/gtm.js?id=GTM-is a GTM container. Count the differentGTM-IDs. Two containers is a way to get two senders.gtag('config'in an inline script is often a theme option or an analytics plugin.
A gtag/js request in the Network tab doesn’t prove a hard-coded snippet, because a Google tag inside GTM loads the same library. The source search is the test.
2. Count the hits. Right-click the page, choose Inspect, open the Network tab, type collect in the filter and reload. Each GA4 page view is a request with en=page_view. One per page load is right. Two close together with the same tid usually means two senders, or one sender firing twice (see the single-page-app case below). Two hits with different tid values are two properties, each counted once, which isn’t this fault.
| Hit | tid | en | sid | What it tells you |
|---|---|---|---|---|
| 1 | G-AAAA1111 | page_view | 1795106000 | the sender you expected |
| 2 | G-AAAA1111 | page_view | 1795106000 | a second sender, same session ID in this illustration |
en is the event name, tid the GA4 ID the hit goes to, sid the session ID. They sit in the request address or, for batched hits, in the request body. These are observed parameter names, not ones Google documents on a help page.
In GTM, open Preview and look at the tags fired on that page. A page view in the Network tab that the GTM summary doesn’t show came from outside the container: a hard-coded snippet or a plugin.
Where the second one is usually hiding:
- a theme setting with an “analytics ID” field;
- an SEO or analytics plugin with a Google Analytics option switched on years ago;
- a header or footer scripts box in the CMS;
- an old developer’s snippet in the template files;
- a second GTM container, or the same one installed by both the theme and a plugin;
- on Shopify, the Google & YouTube app or a custom pixel next to GTM: Shopify GA4 purchases doubled is that pair;
- a Measurement Protocol or server-side container sending the same page view. The source search won’t show it, so the Network check and the GTM Preview mismatch are how you’d find it.
Do duplicate page views double sessions?
Compare sid on the two page_view hits for one page load.
- Same
sid: page views double, sessions stay close to flat. The session_start and first_visit events can still double. - Different
sid: the senders keep separate sessions, so sessions inflate too. Look for different cookie settings or a different cookie domain on one of them.
Test on a fresh visit (a private window) and again on a return visit. I’d expect a first load to be the case that splits the IDs, but I haven’t seen Google document it. All of this is my reading: Google counts sessions by estimating unique session IDs, but it doesn’t document two senders on one page.
Which route do you keep?
Keep GTM unless GA4 is the only tag you will ever run. One place to change things, one publish log.
| Your site | Keep | Remove |
|---|---|---|
| Already runs other tags through GTM, or will | GTM | Every gtag.js snippet, and every theme or plugin setting that inserts the Google tag |
| GA4 will be the only tag it ever runs | The page snippet | The Google tag in GTM, and the container snippet if it carries nothing else |
| Two GTM containers | The live one | The other, from the template. Move what it still does first |
Don’t just pause the other GA4 tag. The next person to unpause it brings the fault back.
If you keep GTM, give the Google tag an Initialization trigger on all pages (Google’s setup page offers “All Initialization Events” or “Some Initialization Events”; older workspaces may say “Initialization - All Pages”), and leave send_page_view at its default (on) in the tag’s configuration, because GTM now sends the page view. Turn it off only if you send page views manually. Then submit the container: GTM changes don’t go live until you do.
One send per route. Google’s developer guide says that sending manual page_view calls without disabling automatic page views can produce duplicates. A single-page app has its own pair of senders: enhanced measurement on browser history changes and a GTM History Change trigger. That is the same fault with a different pair: GA4 not tracking page views on a single-page app.
Removing a snippet from a live template changes every page. Make the change in a quiet hour and test a page straight after.
My purchase event fires twice in GA4, how do I fix it?
Send a unique transaction_id on every purchase, then remove the second sender. Google says purchases with the same transaction ID are deduplicated, so a populated ID can hide a second sender in the totals; I’d read that as an inference, so check the hits, not the report.
- Place one test order with the Network tab open and count
en=purchasehits. DebugView may show two purchase events for one order, though reports can still dedupe them. Two hits with the sameep.transaction_idis this fault. - An empty or missing ID gets no deduplication, and an empty string makes all empty-ID purchases look like one, which undercounts. A purchase payload needs a real order number:
transaction_id: "T-1042"alongsidevalueandcurrency. - In GTM Preview, if the purchase tag fires once but the Network tab shows two hits, the second is outside the container. Remove it as above. For other causes, such as a thank-you page refresh, see GA4 purchase event fires twice.
How do you know it is fixed?
- The Network tab shows one
en=page_viewhit per page load, on a fresh visit and after a hard reload. - DebugView shows one
page_viewper screen. - Page source shows one route: one
GTM-container and nogtag/jssnippet, or the other way round. - From the first full week after the change, views per session returns to where it was before the step. Users shouldn’t have moved.
Past data stays doubled. Annotate the date in GA4.
If the page source is clean and you still see two hits, the second sender is in the container or runs server-side. That is a review of the whole container: GTM container audit: what gets checked lists what it reads, and Google Tag Manager consultant, London is the work itself.
Common questions
Can I run gtag.js and Google Tag Manager on the same site?
Google’s troubleshooting page says you should only use either the Google tag or Tag Manager, not both, and that using both has unintended consequences such as overcounting data. If both are installed, it says to remove the snippets for one of them.
Do duplicate page views double my sessions too?
Compare the sid value on the two page_view hits. Same sid: sessions stay close to flat. Different sid: sessions inflate too. Google counts sessions by estimating unique session IDs but doesn’t document two senders on one page, so this is my reading, not a guarantee.
Which should I keep, gtag.js or GTM?
Keep GTM unless GA4 will be the only tag the site ever runs. It is one place to change things and one publish log. Whichever you remove, remove all of it, including theme settings and plugin options that insert it.
My purchase event fires twice in GA4, how do I fix it?
Send a unique transaction_id on every purchase, then remove the second sender. Google says purchases with the same transaction ID are deduplicated, so a populated ID can hide a second sender; an empty or missing one gets no protection. Count en=purchase hits for one test order to check.
Will removing the duplicate fix my past page views?
No. Page views already recorded stay in the reports. Write down the date you removed the second sender and compare from the first full week after it.
Sources
Read on 19 November 2026:
- Google Analytics Help, troubleshoot tag setup on your website (use either the Google tag or Tag Manager, not both; overcounting; remove the snippets for one)
- Google Analytics Help, about Analytics sessions (sessions estimated from unique session IDs; session_start generates the ID), enhanced measurement events (page_view on page load and on browser history changes; scroll and outbound click events) and automatically collected events (page_view, session_start)
- Google Analytics Help, minimise duplicate key events with transaction IDs (purchases with the same transaction ID deduplicated)
- Google Analytics developer guide, measure page views (automatic page_view;
send_page_view; manual page views without disabling automatic ones can duplicate) - Google Tag Manager Help, set up and install the Google tag in GTM (a unique Google tag for each website; initialization trigger options; Google recommends configuring settings in GTM rather than in on-page gtag.js)
- Google, Tag Assistant (lists the Google tags found on a page)