profile

Analytics Playbook by Dana DiTomaso

Nov 24 • 3 min read

Your website might be blocking your own tags


Hey Reader!

Something I’ve added as a standard check in my audits is a review of any Content Security Policy (CSP) errors.

If you're unfamiliar with CSPs, a CSP is a set of instructions on your website that lists the domains it's allowed to load scripts from and send data to. If your tools aren't on the list, they don't load. It's a security standard meant to prevent injection attacks by controlling which resources a site loads, which is definitely a good thing to have, even if there are sometimes unintended consequences from implementation.

What usually happens is that the web dev team sets up the CSP based on the scripts they're aware of, but they don't check with marketing. So you end up with some or all of your analytics and ad tags getting blocked. And sometimes only parts are blocked, not all of it, so you don’t end up noticing for a while.

Here's an example. The standard Google Ads conversion tracking domain is often included in CSPs, but if your visitor is in Canada, the Google Ads domain ends in .ca, not .com. The .ca version isn't on the list, so the website refuses to send any data to it, and then any conversions from Canada won't show up in Google Ads, but they’ll likely still show up in GA4.

Haven’t checked this before? It’s easy! Open Chrome DevTools and look at the Console tab. If you see a red error that says something like "Connecting to [URL] violates the following Content Security Policy directive…", that's your error. Usually your web developers or IT team can fix this up once you give them a list of the domains that need to be included.

If you're seeing tags fail or have weird accuracy issues without any obvious cause, checking the console for CSP errors is a great place to start.

Dana DiTomaso

Founder
​dana@kpplaybook.com​


New on Analytics Playbook

Has a client or stakeholder ever asked you why two session numbers on the same report don't match? GA4 estimates session counts rather than counting them exactly, and each chart makes its own request, so the numbers can drift a little. In my new post, I walk through why this happens, how to tell normal estimation noise from an actual setup problem, and how to design reports so the mismatch doesn't undermine trust in your data.

​Find out why your numbers don't add up​


Articles Worth Your Time
​———•

AI For Technical Marketers

Juliana Jackson and Krasimir Bambalov have a new self-paced course on Simmer. I spoke with Juliana about this course earlier this year and I really loved her ideas in putting in together — where she wants to be sure that they are teaching not just how to build AI workflows, but how to check whether they work before you start making real decisions. If you've been using AI tools and aren't sure how much to trust what comes out, this is a good fit.

​Learn to check the robot's work​


Google tags are now Google Tag Manager containers

Google is trying to clean up some of the confusion between Google Tags and Google Tag Manager and they are sort of succeeding. Now, Google Tags don’t have their own settings screen. Instead, you'll manage them in the GTM interface. Simo Ahava has a nice write up about this. You should definitely make sure to check your own tags and do any updates before January 2027, when Google will start enforcing these changes.

​Read Simo's take (and the comments)​


BigQuery Graph measures in Data Studio

Absolute Data Studio wizard Mehdi Oudjida tackles a problem that you may not have known had a name: tables that mix “grains”, like item-level rows that repeat order-level revenue, which leads to double counting. By using BigQuery Graph, you can define how each metric aggregates once in BigQuery, and Data Studio charts respect it. It’s an elegant solution to a common issue.

​Stop displaying double counts​


Where You Can Find Me
​———•

I've added my 2027 events (so far) to my website. The one I'm most excited about is a brand new workshop at SMX Munich: "Conversion Tracking That Works: A Hands-On GTM Workshop for PPC Marketers". No GTM experience is needed! It’s very hands on, where you’ll learn how to build and test your own container. This workshop will also be turning into a course on Analytics Playbook — I'll follow up with more on that in 2027!

​See all my 2027 events​


That's it for this edition of The Huddle. As always, if you have questions or want to share what you're working on, just hit reply!

Want more? You got it!

📈

Practical GA4

​Sign up →​

📘

Free Resources

​Get yours today →​

🛠️

GA4 Workshops

​Level up in GA4 →​

Was this email forwarded to you? Sign up here!​

PO Box 536 STN Main, Sooke, BC V9Z 1H5
​Unsubscribe · Preferences​



Read next ...