We are experiencing loss of functionality related to campaign tracking with Google Analytics (GA) using Google Tag Manager (GTM) in our Sitecore instance in all environments.
We can clearly see tags firing and real-time reporting, however campaigns do not pull through. Google AdSense shows user clicks and impressions which link back to the site, each in its correct environment. We have each of Development, Staging, and Production environments, each with their own GTM container, and the issue presents in all 3. Those clicks and impressions are configured to correspond to AdSense campaign parameters, but somewhere they are lost.
The GTM setup and its collection of tags have been reviewed by three independent digital marketing agencies for validity, and they have been found to be without issue by each review. Further, we validated the behavior by putting the same GA tag on a static non-Sitecore site to remove Sitecore from the equation. Both Sitecore and the test site are fronted with Cloudflare using the same configurations (DNS excepted). We could not reproduce the issue on the static site -- all details pulled through as expected.
Are there any known issues with GTM or GA in a Sitecore XP1 k8s deployment environment that I have been unable to turn up from searching the Web? Are there any common catch-outs that we have managed to miss in setting this up?
This is not a new or intermittent issue; it has persisted over the course of the year-plus that we have had this Sitecore instance in production.
- Sitecore 10.1-update 2
- Deployed to Azure Kubernetes Service (AKS) using XP Scaled topology
- Pulling images from scr.sitecore.com/sxp/sitecore-xp1-c[d|m]-10.1.2-ltsc2019
- All instances fronted with Cloudflare