Package Exports
- gatsby-plugin-piwik-pro
- gatsby-plugin-piwik-pro/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gatsby-plugin-piwik-pro) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gatsby-plugin-piwik-pro
This is a minimalistic Gatsby plugin that adds the Piwik Pro script tag into the Gatsby browser for you. All you need to do is provide the id and url of the site you are tracking.
How to use
Install gatsby-plugin-piwik-pro using the npm command
npm install gatsby-plugin-piwik-pro
Then add gatsby-plugin-piwik-pro to the list of plugins in gatsby-config.js
// gatsby-config.js
...
plugins: [
{
resolve: "gatsby-plugin-piwik-pro",
options: {
containerUrl: "https://<YOUR-SITE>.containers.piwik.pro",
siteId: "<SITE-ID>",
enabled: <BOOLEAN> // e.g. process.env.NODE_ENV === "production",
},
},
...