CAOS and connected site tags
-
Hi Daan,
hope you are well.
I set up a GA 4 property from my current universal property.
For this to work, I had to switch to gtag.js, which I did. I also used the connected site tag option from my old UA-XXX property to connect it to the new G-XXX property, but no data arrived in the new property (the old property was still fine). (CAOS was using the UA-XXX Property). I then used the new property in CAOS (G-XXX) and switched the connected site tag over (so connected the old to the new property). Now data arrived in the new property, but not in the old property. I played around a bit, but could not get it working with CAOS.
I now switched CAOS off, and put the following code into my header:
<!– Global site tag (gtag.js) – Google Analytics –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=UA-37099983-4″></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());gtag(‘config’, ‘UA-37099983-4’);
setTimeout(“gtag(‘event’, ‘120 seconds’, {‘event_category’: ‘Adjusted Bounce Rate’})”, 120000);
</script>
This now works for both properties, with the new property connected to the old one. The only difference that I can see is the CAOS cookies not being set in the gtag(‘config’… line.
Could you please have a look to see if that is the case? I really would like to use both in parallel.
Thanks
JanThe page I need help with: [log in to see the link]
- The topic ‘CAOS and connected site tags’ is closed to new replies.