@weahead/gatsby-plugin-wa-cmp
v1.1.1
Published
Plugin to handle CMP
Downloads
6
Maintainers
Keywords
Readme
Gatsby Plugin that should be used with Consent Manager plugin
Installation & Setup
First install the plugin via NPM or Yarn:
npm install @weahead/gatsby-plugin-wa-cmp
yarn add @weahead/gatsby-plugin-wa-cmp
Next you add the packagename to the plugins
list in gatsby-config.js
// ./gatsby-config.js
module.exports = {
// ...
plugins: [
// ...
"@weahead/gatsby-plugin-wa-cmp",
],
};
Configuration
// ./gatsby-config.js
module.exports = {
// ...
plugins: [
// ...
{
resolve: "@weahead/gatsby-plugin-wa-cmp",
options: {
analyticsCookieName: String, // optional, defaults to `consent-analytics`
},
},
],
};
License
See LICENSE