{"componentChunkName":"component---src-templates-blog-js","path":"/blog/7","result":{"data":{"strapiArticle":{"published_at":"2020-06-01","title":"Set Up A GDPR Cookie Consent Form","description":"Set Up A GDPR Cookie Consent Form Using Google Tag Manager.\nThis solution works for cookies fired from inside the GTM container. \nIt won’t prevent cookie placement for those placed outside the container.","content":"##  **Under the General Data Protection Regulation (GDPR), the ideal cookie consent form will:**\n\n\n- Detect your location and see whether you’re in the EU\n- Based on your location, display the cookie consent (or not)\n- Request cookie consent\n- If you consent, place analytics cookies as usual\n- By default, let you browse the site, but turn off analytics cookies, providing a seamless user experience\n- Oh, and since you have about 48 hours (GDPR goes into effect May 25th), require as little developer time as possible.\n\n### *- Ask, and ye shall receive:*\n\n\n\nThis step-by-step uses Google Tag Manager (GTM) to create a cookie consent banner that pops up at the bottom of your site only for EU visitors. \nThe 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.\n\n\n**To set this up, you need to understand GTM and GTM configuration. When you’re done, you’ll get something like this:**\n\n![gdpr-blog-1-834x449](https://res.cloudinary.com/ddm8lsrcr/image/upload/v1591261515/gdpr-blog-1-834x449_ebeea3f661.png)\n#### Step 1: Sign up for an ipinfo.io account\n#### Step 2: Generate a cookie consent banner at Cookie Consent by Insites\n#### Step 3: Configure Google Tag Manager\n\n*I will provide the code of the NextJS project for the GDPR setup in the Pensieve.*","category":{"id":6,"name":"feature"}}},"pageContext":{"strapiId":7}}}