{"id":39168,"date":"2018-05-23T17:44:13","date_gmt":"2018-05-24T00:44:13","guid":{"rendered":"https:\/\/www.eigene-homepage-erstellen.net\/?p=39168"},"modified":"2020-08-17T13:12:28","modified_gmt":"2020-08-17T20:12:28","slug":"gtm-gdpr-consent","status":"publish","type":"post","link":"https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/gtm-gdpr-consent.htm","title":{"rendered":"Set Up A GDPR Cookie Consent Form Using Google Tag Manager"},"content":{"rendered":"\n

NOTE: This is not legal advice. We are not lawyers. It’s also not the only thing you’ll need to do to reach GDPR compliance for your business. Cookie consent is only one portion of GDPR compliance. Please consult legal counsel before implementing this solution.<\/em><\/p><\/blockquote>\n

Another note: This solution works for cookies fired from inside the GTM container. It won’t prevent cookie placement for those placed outside the container.<\/em><\/p><\/blockquote>\n

We’ve already provided some GDPR basics for marketers<\/a>. This post gets a lot more tactical.<\/em><\/p>\n

Under the General Data Protection Regulation (GDPR), the ideal cookie consent form will:<\/p>\n

  1. Detect your location and see whether you’re in the EU<\/li>\n
  2. Based on your location, display the cookie consent (or not)<\/li>\n
  3. Request cookie consent<\/li>\n
  4. If you consent, place analytics cookies as usual<\/li>\n
  5. By default, let you browse the site, but turn off analytics cookies, providing a seamless user experience<\/li>\n
  6. Oh, and since you have about 48 hours (GDPR goes into effect May 25th), require as little developer time as possible.<\/li>\n<\/ol>

    Ask, and ye shall receive: This step-by-step uses Google Tag Manager (GTM)<\/a> to create a cookie consent banner that pops up at the bottom of your site only for EU visitors. The banner asks visitors to opt-in. If they don’t, they can still browse the site, but GTM will not fire cookies that require consent.<\/p>\n

    To set this up, you need to understand GTM and GTM configuration. When you’re done, you’ll get something like this:<\/p>\n