• Resolved franco66

    (@franco66)


    I don’t understand why, into my (anonymized) desktop Chrome and Firefox, CAOS doesn’t generate his cookies while into the mobile version it does. However, into the desktop page header i find this code:

    <!– This site is running CAOS: Complete Analytics Optimization Suite for WordPress –>
    <script>
    function getCookieValue(name) {
    cookies = document.cookie;
    cookiesArray = cookies.split(‘; ‘);
    cookieValue = null;

    cookiesArray.forEach(function(cookie) {
    cookieArray = cookie.split(‘=’);
    if (cookieArray[0] !== name) {
    return;
    }
    cookieValue = cookieArray[1];
    });
    return cookieValue;
    }
    cookieValue = getCookieValue(‘viewed_cookie_policy’);

    (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,’script’,’https://www.magravsitalia.com/wp-content/plugins/host-analyticsjs-local/cache/local-ga.js&#8217;,’ga’);
    window[ ‘ga-disable-UA-1219701-15’ ] = false;
    ga(‘create’, ‘UA-xxxxxxx-15’,
    {
    ‘cookieName’: ‘caosLocalGa’,
    ‘cookieDomain’: ‘www.magravsitalia.com’,
    ‘cookieExpires’:’2592000′,
    });
    ga(‘set’, ‘displayFeaturesTask’, null);
    ga(‘set’, ‘anonymizeIp’, true);
    ga(‘send’, ‘pageview’);
    setTimeout(“ga(‘send’, ‘event’, ‘adjusted bounce rate’, ’25 seconds’)”, 25000);
    </script>

    Thank you very much!

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

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

    (@daanvandenbergh)

    In private windows, Chrome and Firefox have the default setting of blocking any kind of tracking. You can disable this in the settings.

    Thread Starter franco66

    (@franco66)

    Thank you so much for the quick answer!
    I didn’t know it, but I have the same problem into normal pages too. No tracking into desktop anonymized and not-anonymized pages.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Are you logged in to WordPress, by any chance? The default setting of CAOS is to not track logged in administrators.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CAOS only working on mobile’ is closed to new replies.