https://github.com/elevenbytes/gatsby-plugin-etracker-analytics
Gatsby plugin for etracker analytics
https://github.com/elevenbytes/gatsby-plugin-etracker-analytics
analytics etracker gatsby gatsby-plugin
Last synced: 5 months ago
JSON representation
Gatsby plugin for etracker analytics
- Host: GitHub
- URL: https://github.com/elevenbytes/gatsby-plugin-etracker-analytics
- Owner: elevenbytes
- License: mit
- Created: 2020-11-15T13:53:30.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-16T07:51:07.000Z (over 5 years ago)
- Last Synced: 2025-09-03T08:59:10.137Z (10 months ago)
- Topics: analytics, etracker, gatsby, gatsby-plugin
- Language: JavaScript
- Homepage: https://www.gatsbyjs.com/plugins/gatsby-plugin-etracker-analytics
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gatsby-plugin-etracker-analytics
## Description
Gatsby plugin to add etracker analytics to your site.
## How to install
NPM
`npm install --save gatsby-plugin-etracker-analytics`
Yarn
`yarn add gatsby-plugin-etracker-analytics`
## Usage
```javascript
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-etracker-analytics`,
options: {
secureCode: `YOUR_ETRACKER_SECURE_CODE` // required
},
},
];
```
### Configuration
The plugin is configurable, here are the configs by default.
```javascript
plugins: [
{
resolve: `gatsby-plugin-etracker-analytics`,
options: {
secureCode: `YOUR_ETRACKER_SECURE_CODE`, // required
// optional fields, default values
respectDnt: true,
blockCookies: true,
// If this option is enabled, tracking will only work when the cookie named `controlCookieName` is not false.
isCookieConsentEnabled: true,
controlCookieName: `cookie_control_consent`
},
},
];
```
## License
MIT