In about one month, blogs that do not display GDPR banners won't be able to use Google Analytics and Google Tag Manager on their site.
From my understanding, we have to add a CookieConsent section in the layout.js file:
import CookieConsent from 'react-cookie-consent';
<CookieConsent
location="bottom"
buttonText="Accept"
declineButtonText="Decline"
cookieName="gatsby-gdpr-google-analytics">
This site uses cookies ...
</CookieConsent>
Hello there.
In about one month, blogs that do not display GDPR banners won't be able to use Google Analytics and Google Tag Manager on their site.
From my understanding, we have to add a CookieConsent section in the
layout.js
file:As specified here: https://www.improvebadcode.com/gatsby-gdpr-cookie-consent/
I can't find that file.
Can you please add the cookie consent banner to the theme?