Popularity
2.6
Stable
Activity
0.0
Stable
111
25
9

Programming language: CoffeeScript
License: GNU General Public License v3.0 or later

react-google-analytics alternatives and similar libraries

Based on the "Integrations with Third Party Services" category.
Alternatively, view react-google-analytics alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of react-google-analytics or a related project?

Add another 'Integrations with Third Party Services' Library

README

react-google-analytics

Adds the Google Analytics script to your page and exposes the ga tracking function as a module.

Usage:

var ga = require('react-google-analytics');
var GAInitiailizer = ga.Initializer;

// Use the initializer to add the script to your page somewhere.
var MyComponent = React.createClass({
  render: function() {
    return (
      <div>
        // SNIP
          <GAInitiailizer />
        // SNIP
      </div>
    );
  }
});

Elsewhere, use the ga function:

var ga = require('react-google-analytics');
ga('create', 'UA-XXXX-Y', 'auto');
ga('send', 'pageview');