From dbccef8b806deb20a2b2dfe9c7a04f4e4434f990 Mon Sep 17 00:00:00 2001 From: Alex Kern Date: Fri, 8 May 2015 19:46:56 -0700 Subject: [PATCH] Use react-google-analytics. --- lib/components/App.js | 13 +++++-------- package.json | 1 + 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/components/App.js b/lib/components/App.js index 30820f2..cb5fb33 100644 --- a/lib/components/App.js +++ b/lib/components/App.js @@ -3,6 +3,10 @@ import FrozenHead from 'react-frozenhead' import React from 'react' import SupportStore from '../stores/SupportStore' import { RouteHandler } from 'react-router' +import ga from 'react-google-analytics' + +ga('create', 'UA-62785624-1', 'auto'); +ga('send', 'pageview'); export default class App extends React.Component { @@ -46,14 +50,7 @@ export default class App extends React.Component { ? : } - + } diff --git a/package.json b/package.json index 40daaa6..544a5e2 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "peer": "^0.2.8", "react": "^0.13.0", "react-frozenhead": "^0.3.0", + "react-google-analytics": "^0.2.0", "react-router": "^0.13.1", "socket.io": "^1.3.5", "stylus": "^0.50.0",