0.0.0 • Published 6 years ago

react-static-plugin-google-analytics v0.0.0

Weekly downloads
12
License
MIT
Repository
github
Last release
6 years ago

react-static-plugin-google-analytics

A React-Static plugin that adds Google Analytics tracking

Installation

In an existing React-Static site run:

$ yarn add react-static-plugin-google-analytics

Then add the plugin to the default export of your static.config.js and specify your Google Analytics traking ID inside an options variable:

export default {
  plugins: [
    ["react-static-plugin-google-analytics", {id: 'GOOGLE ANALYTICS ID'}]
  ]
};

For more info on React-Static plugins see the docs.

0.0.0

6 years ago