Payments & checkout · Work Journal
Two tracking problems I find again and again. How to see them in Chrome DevTools, what Meta pixel parameters mean, why tags load late, and how to fix it.
I’ve helped many companies with tracking that “works” but gives the wrong numbers.
Two problems come up again and again:
- Analytics starts too late. The tag fires, but only after many visitors have already left. They never appear in the reports.
- Meta (Facebook) counts every visit twice. Two different pieces of code each tell Meta “someone viewed a page”, and neither knows about the other.
Neither problem shows an error. The website works, Tag Manager says the tags fired, and the dashboards have numbers in them. The numbers are just wrong.
This article is what I check, how I check it, and why. The examples come from real audits and from common public cases, combined and anonymised. All IDs are dummy values. You don’t need to be a programmer to follow along: everything here is built into Chrome.
If you only want the checklist, jump to What to check, when, and why.
Problem 1: analytics starts too late
What it looks like
In one audit, I opened the page, waited 20 seconds, and listed every tracking request with the second it started. It looked like this:
0.3 s Tag Manager container A loads
7.6 s page "load" event (all images and files finished)
15.9 s Tag Manager container B loads
16.2 s GA4 code loads
16.4 s GA4 sends the first page view
A healthy setup sends the first GA4 page view within one or two seconds. Here it took more than 16. Anyone who left before that was never counted.
How to check it yourself
Open the page, press F12 to open Chrome DevTools, go to the Console tab and wait about 20 seconds. Then paste this and press Enter:
console.table(performance.getEntriesByType('resource')
.filter(r => /gtm\.js|gtag\/js|g\/collect|facebook\.com\/tr/.test(r.name))
.map(r => ({ seconds: (r.startTime / 1000).toFixed(1), url: r.name.slice(0, 90) })))
The browser keeps a list of every file and request a page makes, with its start time. Think of it as a bank statement: one line per movement, with the time it happened. This command shows only the tracking lines:
gtm.js: a Tag Manager container loadinggtag/js: a Google tag loadingg/collect: GA4 actually sending datafacebook.com/tr: Meta receiving a signal
The line that matters most is g/collect. Loading the code is not the same as sending data.
No-code version: open the Network tab, tick “Disable cache”, reload, and type collect in the filter box. The Waterfall column shows how late each request starts.
Why tags load late
The cause is almost always a setting that tells a script to wait. These are the ones I see most often.
A “load when idle” setting in the website’s framework. Many modern frameworks let developers choose when a third-party script loads. In Next.js, for example, afterInteractive is the default and loads early. lazyOnload waits until every resource on the page has been downloaded and the browser is idle. The Next.js documentation recommends early loading for tag managers and analytics, and gives a chat support plugin as an example of something that can wait. When a tag manager ends up with the “wait” setting, analytics waits too.
If a site uses Next.js, you can see each script’s strategy in the Console, because Next.js marks the scripts it adds with a data-nscript attribute:
[...document.querySelectorAll('script[data-nscript]')]
.map(s => s.id + ' → ' + s.dataset.nscript)
A performance plugin that delays JavaScript. Many CMS speed plugins have options like “delay JavaScript until user interaction” or “defer all scripts”. They make speed scores look better. They can also hold back the tag manager, or change the order scripts run in. I wrote about a case where a plugin like this broke a purchase flow in How I Fixed a Broken Funnel Caused by JavaScript Loading Order.
A tag that waits for the “load” event. In Tag Manager, a tag can fire on “Page View”, “DOM Ready” or “Window Loaded”. “Window Loaded” waits for the browser’s load event, which only happens when the whole page has finished loading: every image, stylesheet, script and frame.
All three get worse with one heavy file. In the audit above, the load event came at 7.6 seconds because of a single large image at the top of the page. You can check when it happened on any page:
performance.getEntriesByType('navigation')[0].loadEventEnd
The result is in milliseconds. And when a script also waits for the browser to be idle, other busy scripts (chat widgets, session recording, A/B testing) can push it back even further.
The chain usually looks like this:
One heavy image or file
→ the page "load" event comes late
→ a script set to wait for load (or idle time) waits
→ the tag manager or tag inside it waits
→ the first analytics hit comes late
What it costs
Every visitor who leaves before the first hit is missing from your reports. That means fewer sessions than reality, a misleading engagement rate, and conversions that look like they came from nowhere. Short visits are exactly the ones that disappear, so the data is not just smaller, it is biased.
The fix
- Load the tag manager early (the framework’s default early strategy, not “idle” or “lazy”).
- Exclude the tag manager from “delay JavaScript” features in performance plugins.
- Fire page views on “Page View” or “Initialization”, not “Window Loaded”, unless there’s a reason.
- Fix the heavy file anyway. It slows the page for real visitors too.
One test is not a measurement. Before reporting a number like “16 seconds”, run the test three or four times, and once with mobile throttling in the Network tab. The exact number changes. The pattern doesn’t.
Problem 2: Meta counts every visit twice
How to spot double counting
In DevTools, open the Network tab, reload the page, wait 20 seconds, and type facebook.com/tr in the filter box. Every row is one signal sent to Meta.
Look at two things in each row:
id=is the pixel (the Meta account) receiving the signal.ev=PageViewmeans “someone viewed a page”.
If the same id shows ev=PageView twice for a single page load, that pixel is double counting.
The usual causes
- The pixel is installed twice: once in Tag Manager and once directly in the website code. This is the most common one. A typical story: a developer added the pixel years ago, and later marketing added it again in Tag Manager, or the other way round.
- Two Tag Manager containers both have a Meta tag. Common after agency changes or website migrations.
- A CMS or e-commerce plugin sends events, and Tag Manager sends the same ones.
- On single-page websites, page views fire both on load and on every route change, so the first page is counted twice.
Who sent each signal
To fix it, you need to know which code sent which signal. Click a row and open the Initiator tab. It shows what made the request. At the bottom is the Request initiator chain: who called whom, like a family tree. A typical chain for a pixel in Tag Manager:
the page
→ www.googletagmanager.com/gtm.js?id=GTM-AAAA111
→ connect.facebook.net/en_US/fbevents.js
→ www.facebook.com/tr/?id=1111111111111111&ev=PageView...
Sometimes the initiator just says “Other”, with no chain. “Other” is not another company. It means Chrome couldn’t trace which code sent the request. When that happens, the signal itself still tells you a lot.
Reading the signal itself
Every signal to Meta is a web address with the information attached at the end. The rules for reading it:
- Everything after the
?is data. - Each piece of data has the form
name=value. - Pieces are separated by
&. - Some characters are encoded:
%3Ais:and%2Fis/.
Here are two signals from one visit, cleaned up and with dummy values:
Signal A
https://www.facebook.com/tr/?id=1111111111111111&ev=PageView
&dl=https%3A%2F%2Fexample.com%2Fpage&ts=1700000000000
&fbp=fb.1.1700000000000.ABC123&ec=0
&eid=pv_1700000000000_abc123&ud[external_id]=ABC123HASHED...
Signal B
https://www.facebook.com/tr/?id=1111111111111111&ev=PageView
&dl=https%3A%2F%2Fexample.com%2Fpage&ts=1700000013500
&fbp=fb.1.1700000000000.ABC123&ec=1
&a=tmSimo-GTM-WebTemplate-2.0.8&tm=1
&eid=ob3_plugin-set_ABC123...&ud[external_id]=ABC123HASHED...
Field by field:
| Field | Signal A | Signal B | What it tells you |
|---|---|---|---|
id |
1111111111111111 | 1111111111111111 | Same Meta pixel |
ev |
PageView | PageView | Same event |
fbp |
fb.1.1700000000000.ABC123 | same | Same visitor’s browser |
ts |
1700000000000 | 1700000013500 | B was sent 13.5 seconds after A |
ec |
0 | 1 | First and second event from the same Meta code |
a |
none | tmSimo-GTM-WebTemplate-2.0.8 | B was sent by a Tag Manager template |
tm |
none | 1 | B was sent through Tag Manager |
eid |
pv_… | ob3_plugin-set_… | Different event IDs |
Signal B carries a signature: a=, the “agent”. tmSimo-GTM-WebTemplate is the Facebook Pixel tag from Tag Manager’s Community Template Gallery. Other setups leave other signatures. For example, pixel code exported from Meta into Tag Manager sets the agent to tmgoogletagmanager. Signal A has no signature, and its event ID starts with pv_, a format someone wrote by hand. That points to code added directly to the website.
A lesson I learned the hard way: don’t decide who sent a signal by timing alone. In one audit, Tag Manager loaded first, so I assumed the early signal came from Tag Manager. The parameters showed the opposite: the website’s own code sent first, and Tag Manager sent 13.5 seconds later. Timing tells you when something happened, not who did it. Fields like a=, tm and eid tell you who.
What it costs
You might hope Meta removes the duplicate. It doesn’t. Meta’s documentation explains that it only removes duplicates between a browser event and a server event. If the browser sends the same event twice, Meta says “we do not discard either.”
So:
- Page views are inflated, but rarely by a clean ×2. Visitors who leave before the second signal only send one. You can’t fix the numbers later by halving them.
- Audiences such as “visited two or more pages” and any conversion built on page views are wrong.
- Meta optimises your ads with these signals, so it learns from bad data.
- If the same thing happens to
Purchase, your reported revenue is inflated too. Check purchases next.
The fix
Keep one source per pixel and event. Which one to keep depends on one more question.
Many websites also send events to Meta from their server, through Meta’s Conversions API. Meta pairs a browser event with a server event only when two things match: the event ID (eventID in the pixel, event_id on the server) and the event name. A hand-made event ID like pv_… is often a sign that this pairing exists.
If the server sends page views with that same ID, removing that browser signal would break the pairing. In that case, remove the other copy. If the server doesn’t send page views, either copy can go: keep the one your team finds easier to maintain. Before changing anything:
- Ask the developers whether the server sends events to Meta, and with which event ID.
- Check Meta Events Manager to see whether browser and server events are being deduplicated.
- After the change, repeat the Network test. Each pixel should show one
PageViewper page load.
Meta pixel parameters explained
Meta doesn’t publish an official list of what each field in these requests means. This table is based on practice and on what I could confirm in audits. Where I’m less sure, I say so.
| Parameter | Meaning | Notes |
|---|---|---|
id |
Pixel ID: the Meta account receiving the signal | Public: anyone can see it in your page code |
ev |
Event name: PageView, Search, Purchase… |
The first thing to check |
dl |
Page where it happened (document location) | Encoded web address |
rl |
Page the visitor came from (referrer) | Empty for direct visits |
ts |
Time of the signal, in milliseconds since 1 January 1970 | Subtract two of them to get the gap |
it |
Time the Meta code started on the page | Same it means the same Meta code on the page |
ec |
Event counter: 0, 1, 2… per page load | ec=0 and ec=1 for the same event means a duplicate |
eid |
Event ID: the “receipt number” of the event | Used to pair browser and server events |
a |
Agent: a label for the tool that installed or sent the pixel | tmSimo-GTM-WebTemplate, tmgoogletagmanager… |
tm |
Probably “sent through Tag Manager” | Less certain. In my audits it appears together with a Tag Manager agent |
fbp |
Meta’s browser cookie, with its creation time | Identifies the visitor’s browser |
ud[...] |
User data such as external_id, encoded (hashed) |
Set on purpose by whoever installed the pixel |
sw, sh |
Screen width and height | Device information |
v, r, expv2[...], rqm… |
Internal version, release and experiment flags | Not needed for an audit |
Four questions solve most Meta double-counting cases:
- Same
idandev? Then it’s the same event to the same pixel. - Same
fbp? Then it’s the same visitor. - Different
aortm? Then two different tools sent it. - Different
eid? Then Meta counts both.
The same questions work for Purchase, Lead or any other event.
How to check if Google Tag Manager is firing
Three ways, from easiest to most detailed.
1. Tag Assistant. Open tagassistant.google.com, click Add domain, enter your page and click Connect. You’ll see every container and Google tag on the page, and which tags fired on each event. Google says Tag Assistant “is designed to work without third-party cookies or extensions.” It lists every container it finds, even ones in accounts you can’t access. Start it with your own click: if a browser extension or an automation tool opens the page for you, the popup can be blocked and Tag Assistant stays on “Connecting”.
2. The Console. Tag Manager registers each container it loads. Paste this:
Object.keys(window.google_tag_manager || {}).filter(k => /^(GTM|G|AW)-/.test(k))
It lists the containers (GTM-…) and Google tags (G-…, AW-…) that actually loaded. If a container you expect is missing, it never loaded.
3. The Network tab. Filter by gtm.js to see each container load, and by collect to see data actually being sent. “Loaded” and “sending data” are different steps. A container can load and still send its first hit far too late, as in the first problem above.
If a container loads but nothing is sent at all, a security setting can also be the cause. I explain that in Why Your Security Policy Can Block Google Ads Conversion Tracking.
What to check, when, and why
| Check | When | Why | How |
|---|---|---|---|
| Containers load | After any website release | A release can drop or move the Tag Manager code | Console: google_tag_manager |
| How scripts load | When analytics numbers drop or look low | “Wait” settings lose short visits | Network: Waterfall; framework or plugin settings |
| First GA4 hit time | After speed changes (images, sliders, new scripts) | Heavy pages delay the load event |
Network: filter collect |
| Duplicate Meta events | When adding a pixel in Tag Manager or in code | Two installs don’t know about each other | Network: filter facebook.com/tr |
| Who sent each event | When you find a duplicate | You need to know which copy to remove | Initiator tab, plus a=, tm, eid |
| Browser and server pairing | Before removing any Meta code | The wrong removal breaks deduplication | Meta Events Manager |
| Repeat on mobile | Before reporting numbers | Timing changes by device and connection | Network throttling, a real phone |
Sharing your findings safely
Screenshots of the Network tab are usually safe. Pixel IDs are public, and long addresses are cut off.
Full request addresses are different. They contain fields that identify a browser: fbp, ud[external_id] and the other [external_id] fields, plus device details such as sw, sh and the device model. None of them shows a name or email, but replace their values with XXX before sending them to anyone. If you were logged in to the website, external_id may come from your account.
What I’ve learned
What strikes me in these audits is how ordinary everything looks. Tag Manager loads. Tags fire. Reports have numbers. Every tool says “working”.
The problems only appear when I stop asking “is it firing?” and ask:
- When does it fire, compared with when visitors leave?
- How many times does it fire for one visit?
- Who sent each signal, and can I prove it?
I’ve also been wrong along the way. More than once, my first theory about the cause didn’t survive the evidence, and I changed my recommendation. Following the evidence matters more than defending a first idea.
This is the work I enjoy most: connecting what happens in the browser with the numbers a business uses to make decisions.
FAQ
How do I know if I’m double counting page views in Meta?
Open Chrome DevTools, go to the Network tab, reload the page and filter by facebook.com/tr. If the same pixel id shows ev=PageView more than once for one page load, you are double counting. Compare the a=, tm and eid fields to find which tool sent each one.
How do I check if my Google Tag Manager is firing?
Use Tag Assistant to see containers and tags per event. In the Console, Object.keys(window.google_tag_manager) lists the containers that loaded. In the Network tab, filter by gtm.js for loading and by collect for data being sent.
What parameters are sent to Meta’s servers?
Each pixel event is a request to facebook.com/tr with fields such as id (pixel), ev (event), dl (page), ts (time), fbp (browser cookie), eid (event ID), ec (event counter) and a (the tool that sent it), plus encoded user data and device details. See the table above.
Why does my Google Tag Manager take so long to load?
Usually because something tells it to wait: a “load when idle” setting in the website framework, a “delay JavaScript” option in a performance plugin, or a trigger that waits for the whole page to load. A single heavy image can make all of these wait several seconds longer.
Does Meta remove duplicate browser events automatically?
No. Meta only deduplicates when the same event arrives from the browser and the server with a matching event ID and name. Two browser events are both counted.
Is it safe to share a screenshot of the Network tab?
Usually yes: pixel IDs are public and long addresses are cut off. Before sharing full request addresses, replace fbp, external_id and device details with dummy values.
Sources
- Script component: strategy, Next.js documentation
- Script component (version 14), Next.js documentation
- Window: load event, MDN Web Docs
- Handling Duplicate Pixel and Conversions API Events, Meta for Developers
- Tag Assistant help, Google
- GoogleTagManager-WebTemplate-For-FacebookPixel, GitHub
- Request initiator chains in Chrome DevTools, DebugBear