react-static-plugin-google-analytics

0.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i react-static-plugin-google-analytics

Weekly Downloads

4

Version

0.0.0

License

MIT

Unpacked Size

96.8 kB

Total Files

6

Last publish

Collaborators

  • dan-webb
  • tannerlinsley
  • sleeplessbyte