react-static-plugin-google-analytics
v0.0.0
Published
A React-Static plugin that adds Google Analytics tracking
Downloads
2
Readme
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.