Plugin gastby for integrate gdpr solution cookie with axeptio
- Have account Axeptio, is a solution from new rules GDPR cookie in UE (create here Axeptio)
- Have create a projet with Axeptio
- Add to a projet gastby
Please include installation instructions here.
Gatsby documentation uses npm
for installation.
npm i gatsby-plugin-cookie-gdpr-axeptio
When i want include a new gdpr cookie UE with Axeptio
module.exports = {
plugins: [
{
resolve: 'gastby-plugin-gdpr-cookie-axeptio',
options: {
// !soit on rempli le gtagIdentifiant, soit on remplit axpetioIdentifiant ET cookieVersion
gtagIdentifiant: 'GTM-XXXXXXX',
axpetioIdentifiant: 'clientIdAxeptio',
cookieVersion: 'nameCookieAxeptioVersion'
}
},
],
}
You must have create a tag Axeptio and create triggers associated, you can see how make here: Axeptio GoogleTag Documentation
In gastby-conf.js you must add GTM tag in gtagIdentifiant
See Axeptio Custom Integrate Documentation For integrate this script create in root folder a file gastby-ssr.js