Title: plugin + script ?
Last modified: March 12, 2024

---

# plugin + script ?

 *  Resolved [bjpbkk](https://wordpress.org/support/users/bjpbkk/)
 * (@bjpbkk)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/plugin-script/)
 * Bonjour
 * With the plugin already install, do we have also to put in header this script?
 *     ```wp-block-code
       <script>
   
       window.dataLayer = window.dataLayer || [];
   
       function gtag() {
   
       dataLayer.push(arguments);
   
       }
   
       gtag("consent", "default", {
   
       ad_storage: "denied",
   
       ad_user_data: "denied",
   
       ad_personalization: "denied",
   
       analytics_storage: "denied",
   
       functionality_storage: "denied",
   
       personalization_storage: "denied",
   
       security_storage: "granted",
   
       wait_for_update: 2000,
   
       });
   
       gtag("set", "ads_data_redaction", true);
   
       gtag("set", "url_passthrough", true);
   
       </script>
   
       Note
       ```
   

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [CookieYes Team](https://wordpress.org/support/users/cookieyesteam/)
 * (@cookieyesteam)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/plugin-script/#post-17492515)
 * Hi [@bjpbkk](https://wordpress.org/support/users/bjpbkk/),
 * Greetings from CookieYes!
 * If you want to integrate the CookieYes plugin with Google consent mode, then 
   you have to paste the above code in your header and follow the instructions in
   this [documentation](https://www.cookieyes.com/documentation/google-consent-mode-v2-integration-with-cookieyes-wordpress-plugin/).
 *  Thread Starter [bjpbkk](https://wordpress.org/support/users/bjpbkk/)
 * (@bjpbkk)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/plugin-script/#post-17492611)
 * Thank you but i do not understand why the plug in do not put this code directly?
   
   please, can you check. Merci[https://www.mybts.fr/](https://www.mybts.fr/)
    -  This reply was modified 2 years, 3 months ago by [bjpbkk](https://wordpress.org/support/users/bjpbkk/).
 *  Thread Starter [bjpbkk](https://wordpress.org/support/users/bjpbkk/)
 * (@bjpbkk)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/plugin-script/#post-17492623)
 * Yesterdfay I scan with cookie yes my web site and it’s very strange because he
   find no cookie pour ads as you can see, so in fact you cannot refuse tu see ads
   from GG.
 * I have a premium account.
    -  This reply was modified 2 years, 3 months ago by [bjpbkk](https://wordpress.org/support/users/bjpbkk/).
 *  Plugin Support [CookieYes Team](https://wordpress.org/support/users/cookieyesteam/)
 * (@cookieyesteam)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/plugin-script/#post-17495905)
 * Hi [@bjpbkk](https://wordpress.org/support/users/bjpbkk/),
 * The plugin won’t add the consent mode script by default as it is only needed 
   for users who want to implement Google consent mode.
   Regarding the issue with
   your scan, we use Ireland IPs for scanning your website. However, it seems like
   AdSense cookies are not set while accessing your site in Ireland. Hence those
   cookies are not detected in the scan. You can either add those cookies manually
   to your Cookie list or change your settings in Adsense to set those cookies in
   Ireland and then perform a scan to detect the same.
 *  Thread Starter [bjpbkk](https://wordpress.org/support/users/bjpbkk/)
 * (@bjpbkk)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/plugin-script/#post-17495929)
 * Noway, I change for a better solution. By
 *  Plugin Support [CookieYes Team](https://wordpress.org/support/users/cookieyesteam/)
 * (@cookieyesteam)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/plugin-script/#post-17502194)
 * Hi [@bjpbkk](https://wordpress.org/support/users/bjpbkk/),
 * Since you have moved on to another solution, we are going to mark this thread
   as resolved now. Please feel free to open a new thread or follow up if you have
   any further questions or still need help.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘plugin + script ?’ is closed to new replies.

 * ![](https://ps.w.org/cookie-law-info/assets/icon.svg?rev=3007243)
 * [CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice)](https://wordpress.org/plugins/cookie-law-info/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-law-info/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-law-info/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-law-info/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-law-info/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-law-info/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [CookieYes Team](https://wordpress.org/support/users/cookieyesteam/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/plugin-script/#post-17502194)
 * Status: resolved