https://github.com/threenine/gridsome-plugin-gtag
https://github.com/threenine/gridsome-plugin-gtag
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/threenine/gridsome-plugin-gtag
- Owner: threenine
- Created: 2020-09-28T18:19:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-23T22:21:09.000Z (over 5 years ago)
- Last Synced: 2025-05-14T21:53:43.305Z (about 1 year ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gridsome Plugin to incorporate Google Tag
### How to use
Install the plugin using
``` shell script
npm i gridsome-plugin-gtag
```
Put your Google Analytics ID in you environment variables with a name
similar to `GOOGLE_ANALYTICS_ID`.
Then add the following to you `gridsome.config.js` plugins array
```shell script
{
use: 'gridsome-plugin-gtag',
options: {
config: {
id: process.env.GOOGLE_ANALYTICS_ID,
},
},
},
```
### Developed, Sponsored and Supported
[](https://threenine.co.uk/)