• Good morning, everyone,
    I have installed this plugin on my site but I am experiencing some issues.
    I tried to enter a code for analytics via analytics and this is what comes up. i think the code entered is incorrect, but i could not find any other altrnative. I realized that the cookie does not work well especially in mobile view.

    How can I fix this problem?

    this is the code I put in the block script – thanks in advance

    // Verifica se i cookie sono stati accettati dall'utente
    if (cn_cookies_accepted()) {
    // Codice di Google Analytics da eseguire quando i cookie sono accettati
    // Sostituisci 'G-Y994P3MFHQ' con il tuo ID di tracciamento di Google Analytics
    
    // Inserisci il codice di Google Analytics qui
    (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.google-analytics.com/analytics.js',
    'ga'
    );
    
    ga('create', G-Y994P3MFHQ', 'auto');
    ga('send', 'pageview');
    }

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

The topic ‘cookie and analytics configuration’ is closed to new replies.