gridsome-plugin-gtag

0.1.10 • Public • Published

Gridsome Plugin to incorporate Google Tag

How to use

Install the plugin using

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 gridsom.config.js plugins array

{
    use: 'gridsome-plugin-gtag',
    options: {
        config: {
            id: process.env.GOOGLE_ANALYTICS_ID,
        },
    },
},

Developed, Sponsored and Supported

threenine logo

Package Sidebar

Install

npm i gridsome-plugin-gtag

Weekly Downloads

135

Version

0.1.10

License

MPL-2.0

Unpacked Size

11.2 kB

Total Files

9

Last publish

Collaborators

  • threenine