• 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&gt;
    <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
    Jan

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi @lhotc,

    If CAOS is turned off, then it makes sense that CAOS’ cookies aren’t set ?? CAOS adds a few attributes to the gtag(‘config’, …) part to set those cookies.

    Could you explain to me why you would like to use Universal Analytics and Global Site Tag in parallel? From what I understand Gtag V4 is superior to UA and contains all of its features.

    Thread Starter lhotc

    (@lhotc)

    Hi Daan,
    Happy new year.

    sorry I wasn’t clear.

    Our ads publisher uses the UA stats for their calculations and we need to get used to GA4 and see what it can do. And as far as I read it is a viable scenario to run them in parallel for a transition period at least (apparently this can be 2-3 years).

    Of course the cookies are not set, but then they are the only change that I could find from CAOS setup to mine. And mine works with connected site tags, but the version with cookies does not. Does that make sense?

    Cheers
    Jan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CAOS and connected site tags’ is closed to new replies.