Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub



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

Learning Resources (optional)


How to install

Please include installation instructions here. Gatsby documentation uses npm for installation.

npm i gatsby-plugin-cookie-gdpr-axeptio

When do I use this plugin?

When i want include a new gdpr cookie UE with Axeptio


In gatsby-config.js

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'

If use Google Tag manager

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

If use custom integration

See Axeptio Custom Integrate Documentation For integrate this script create in root folder a file gastby-ssr.js

© 2023 Gatsby, Inc.