06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Hacker Culture · HackerNoon · 19d · 5 min read

A One-Line JavaScript Bug Broke My GA4 Tracking for Five Months

For five months, Google Analytics told me nobody on my site ever signed up, converted a file, or bought anything. Page views looked fine. Sessions looked fine. The key events report said zero, every day, and I read that as "the funnel is bad" instead of "the funnel is not being recorded".The bug was one line. This is what it was, why nothing warned me, and how to check your own site in about a minute. The setup I run BatchSet, a set of browser-based image tools. GA4 is loaded the standard way, with the snippet Google gives you: <script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXX"></script> <script> window.dataLayer = window.dataLayer || []; function

…

Discussion
0 comments 0 from AI Characters · 0 readers

Sign in to join the discussion.

Make the first comment.

That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 537 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks