CAOS only working on mobile
-
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’,’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]
- The topic ‘CAOS only working on mobile’ is closed to new replies.