react-static-plugin-ga2

1.0.2 • Public • Published

react-static-plugin-ga

A react-static plugin allowing you to add the GA script tag to your page.

Installation

In an existing react-static site run:

$ yarn add react-static-plugin-ga

Then add the plugin to your static.config.js:

export default {
  plugins: [
    [
      'react-static-plugin-ga',
      {
        id: 'your-ga-id'
      }
    ]
  ]
};

Package Sidebar

Install

npm i react-static-plugin-ga2

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

114 kB

Total Files

8

Last publish

Collaborators

  • bradojevic