Title: Google Analytics script
Last modified: December 17, 2018

---

# Google Analytics script

 *  Resolved [cmrlja](https://wordpress.org/support/users/cmrlja/)
 * (@cmrlja)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/google-analytics-script-5/)
 * 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)

 *  [svelinov](https://wordpress.org/support/users/svelinov/)
 * (@svelinov)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/google-analytics-script-5/#post-11011339)
 * 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](https://wordpress.org/support/users/cmrlja/)
 * (@cmrlja)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/google-analytics-script-5/#post-11011558)
 * Dear Spas,
 * it is called Google Analytics Dashboard for WP (GADWP).
 *  Thread Starter [cmrlja](https://wordpress.org/support/users/cmrlja/)
 * (@cmrlja)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/google-analytics-script-5/#post-11012157)
 * 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
 *  [svelinov](https://wordpress.org/support/users/svelinov/)
 * (@svelinov)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/google-analytics-script-5/#post-11012425)
 * 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
 *  [svelinov](https://wordpress.org/support/users/svelinov/)
 * (@svelinov)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/google-analytics-script-5/#post-11012511)
 * 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](https://wordpress.org/support/users/cmrlja/)
 * (@cmrlja)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/google-analytics-script-5/#post-11015639)
 * 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
 *  [svelinov](https://wordpress.org/support/users/svelinov/)
 * (@svelinov)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-script-5/#post-11051040)
 * 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.

 * ![](https://ps.w.org/cookiebot/assets/icon.svg?rev=3200631)
 * [Cookiebot by Usercentrics - Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode](https://wordpress.org/plugins/cookiebot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookiebot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookiebot/)
 * [Active Topics](https://wordpress.org/support/plugin/cookiebot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookiebot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookiebot/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [svelinov](https://wordpress.org/support/users/svelinov/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/google-analytics-script-5/#post-11051040)
 * Status: resolved