{"id":9064,"date":"2021-12-22T14:36:16","date_gmt":"2021-12-22T13:36:16","guid":{"rendered":"https:\/\/www.myagileprivacy.com\/how-to-install-google-adsense-in-compliance-with-gdpr\/"},"modified":"2026-01-02T14:33:13","modified_gmt":"2026-01-02T13:33:13","slug":"how-to-install-google-adsense-in-compliance-with-gdpr","status":"publish","type":"post","link":"https:\/\/www.myagileprivacy.com\/en\/how-to-install-google-adsense-in-compliance-with-gdpr\/","title":{"rendered":"How to install Google AdSense in compliance with GDPR"},"content":{"rendered":"<p>Google AdSense enables you to monetize your website traffic by displaying ads from Google\u2019s advertising network.<br \/>\nThese ads are personalized based on user interests, which means you must obtain explicit user consent before activating such scripts.<\/p>\n<p><strong>Learn how to install GDPR-compliant Google AdSense<\/strong> on your website using My Agile Privacy<sup>\u00ae<\/sup>.<\/p>\n<h2>Solution 1 \u2013 Automatic Scan<\/h2>\n<p>Take advantage of the advanced \"Cookie Shield\" feature, which can automatically detect Google AdSense.<br \/>\nSet the Shield to \"Learning\" mode, browse your site\u2019s pages, and the plugin will configure everything for you.<br \/>\nAlternatively, manual configuration is available.<\/p>\n<h2>Solution 2 \u2013 Manual Configuration<\/h2>\n<h3>Part 1 \u2013 Your Google AdSense Code<\/h3>\n<p>After signing up for Google AdSense, you will receive a JavaScript code to insert on your site.<br \/>\nThe code will look something like this:<br \/>\n<img decoding=\"async\" class=\"alignnone wp-image-5054 size-full\" src=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/adsense_1.png\" alt=\"Google AdSense code\" width=\"2560\" height=\"312\" srcset=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/adsense_1.png 2560w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/adsense_1-300x37.png 300w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/adsense_1-1024x125.png 1024w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/adsense_1-768x94.png 768w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/adsense_1-1536x187.png 1536w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/adsense_1-2048x250.png 2048w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<h3>Part 2 \u2013 Adding the Google AdSense Cookie in My Agile Privacy<sup>\u00ae<\/sup><\/h3>\n<p>In your WordPress admin area, go to <em>My Agile Privacy<sup>\u00ae<\/sup> \u2192 Cookie List<\/em> from the left menu.<br \/>\nHere you\u2019ll find a list of cookies imported during plugin installation, all initially set to draft.<br \/>\nPublish only the cookies relevant to your website.<br \/>\n<img decoding=\"async\" class=\"aligncenter wp-image-9467 size-full\" src=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookielist-en.jpg\" alt=\"cookie list\" width=\"1000\" height=\"303\" srcset=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookielist-en.jpg 1000w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookielist-en-300x91.jpg 300w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookielist-en-768x233.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><br \/>\nThe cookie list includes columns such as:<\/p>\n<ul>\n<li><em>Cookie Name<\/em>: the name of the cookie.<\/li>\n<li><em>Is Necessary<\/em>: shows if the cookie is essential for your site to function properly. If rejecting the cookie breaks your site, it\u2019s essential; this is pre-filled for each cookie.<\/li>\n<li><em>Auto Update<\/em>: indicates if the cookie reference text is updated automatically for GDPR compliance. If set to \"yes,\" the plugin keeps everything up to date.<\/li>\n<li><em>Installation Type<\/em>: indicates the method to include the cookie. This varies depending on your setup and is explained in the guides.<\/li>\n<\/ul>\n<p>To add the Google AdSense cookie, find the entry named \"Google AdSense (Google Inc.)\" and click on it.<br \/>\nOn the detail page, you\u2019ll find a pre-filled informational message and two blank fields for entering your code.<br \/>\nThis message will appear in your cookie policy and will be kept up to date automatically if \"Allow Automatic Update\" is enabled.<br \/>\nJust below, select the \"Type of Installation\" (Javascript and Noscript, or Raw).<br \/>\nPick \"Raw Code\" from the dropdown, and a field called \"raw html code\" will appear.<\/p>\n<h3>Part 3 \u2013 Entering Your Google AdSense Code<\/h3>\n<p>Simply copy your Google AdSense code and paste it directly into the \"Raw Html Code\" field.<br \/>\n<img decoding=\"async\" class=\"aligncenter wp-image-9495 size-full\" src=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/cookie-raw-code2-en.jpg\" alt=\"entering the raw code\" width=\"1000\" height=\"304\" srcset=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/cookie-raw-code2-en.jpg 1000w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/cookie-raw-code2-en-300x91.jpg 300w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/cookie-raw-code2-en-768x233.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><br \/>\nDon\u2019t forget to save and publish the cookie by clicking the blue \"Publish\" button in the upper right corner.<\/p>\n<h2>Final Step \u2013 Verifying Proper Operation<\/h2>\n<p>To confirm that Google AdSense is working correctly, check the ads displayed through your Google AdSense control panel.<br \/>\nAds will only be shown after the user has given explicit consent for the Google AdSense cookie.<br \/>\nUsers can provide consent by clicking \"I agree\" on the cookie acceptance bar or by enabling the cookie under \"Customize\" in the My Agile Privacy<sup>\u00ae<\/sup> cookie bar.<\/p>\n<h2>Beware of Penalties<\/h2>\n<p>For advertisers using the Adsense network, it is mandatory to use TCF 2.2 functionalities; otherwise, monetization will be suspended. <a href=\"https:\/\/www.myagileprivacy.com\/en\/iab-transparency-and-consent-framework-tcf-2-2-web-compliance-for-google-adsense-advertisers-admob-and-ad-manager-via-my-agile-privacy\/\" target=\"_blank\" rel=\"noopener\">Find out more here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google AdSense enables you to monetize your website traffic by displaying ads from Google\u2019s advertising network. These ads are personalized based on user interests, which means you must obtain explicit user consent before activating such scripts. Learn how to install GDPR-compliant Google AdSense on your website using My Agile Privacy\u00ae. Solution 1 \u2013 Automatic Scan [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8731,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[33],"tags":[34],"class_list":["post-9064","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cookies","tag-premium"],"acf":{"visibilita_box_autore":false,"autore_associato":null,"elenco_faq_articolo":null,"url_esterno":"","titolo":"Google AdSense"},"_links":{"self":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts\/9064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/comments?post=9064"}],"version-history":[{"count":10,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts\/9064\/revisions"}],"predecessor-version":[{"id":15156,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts\/9064\/revisions\/15156"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/media\/8731"}],"wp:attachment":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/media?parent=9064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/categories?post=9064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/tags?post=9064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}