• Resolved cmrlja

    (@cmrlja)


    I have a problem to find where is Google Analytics script to change with:

    <script type=”text/plain” data-cookieconsent=”statistics”>
    (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’,’//www.google-analytics.com/analytics.js’,’ga’);
    ga(‘create’, ‘UA-00000000-0’, ‘auto’);
    ga(‘send’, ‘pageview’);
    </script>

    I have installed also GA plugin:
    Google Analytics Settings

    Please help me about it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi cmrlja,

    Could you please tell me which GA plugin are you using, because there are many plugins and I could not find the “Google Analytics Settings”. It would be great if you could give me a link to the plugin you are using so I can check it out and help you solve this issue instead of guessing.

    Regards,
    Spas

    Thread Starter cmrlja

    (@cmrlja)

    Dear Spas,

    it is called Google Analytics Dashboard for WP (GADWP).

    Thread Starter cmrlja

    (@cmrlja)

    Dear Spas,

    I would like to ask you for something new too, I have noticed that a popup appears on the home page with a cookie notice on the bottom, but although I didnt press ok / accept button, the pop-up disappears and does not appear anymore. Do you know what could be wrong?

    Kind regards,
    Maja

    Hi cmrlja,

    You could find the GA analytics script following this path:
    wp-content/plugins/google-analytics-dashboard-for-wp/front/views/analytics-code.php
    between row 13 and row 23

    Regards,
    Spas

    Hi cmrlja,

    About you second question about the banner and why it disappear after giving consent:
    If you have set “Active Consent” method to your Cookiebot banner then website visitors ignoring the consent dialog automatically consents to all cookies by continued use of the website.
    As a example you automatically give a consent if you scroll and refresh page or by clicking a link on the website. This setting could be checked in the Cookiebot admin panel under Dialog tab.

    That is why after continue using the website, even without giving consent by clicking OK/Accept button the Cookiebot banner is hided and it does not show up again.

    Regards,
    Spas

    Thread Starter cmrlja

    (@cmrlja)

    Dear Spas,
    thnx, it works. I’ve just changed code from line 13-17, after is something different, another script.

    under the plugin there is one more suggestion:
    “Helper function to update your scripts
    You are able to update your scripts yourself. However, Cookiebot also offers a small helper function that makes the work easier.
    Update your script tags this way:

    <script type=”text/javascript”> to <script<?php echo cookiebot_assist(‘marketing’) ?>>”

    Where I can put that?

    Kind regards,
    Cmrlja

    Hi cmrlja,

    You could change the script as suggested in your script tag for Google Analytics, this is regarding enabling prior consent at your website.

    Regards,
    Spas

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Google Analytics script’ is closed to new replies.