Skip to content

Commit

Permalink
added google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaldon1 committed Feb 1, 2021
1 parent c3ffc4e commit 6a6c50f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"react-bootstrap": "1.4.3",
"react-chrono": "1.9.1",
"react-dom": "16.13.1",
"react-ga": "3.3.0",
"react-grid-layout": "1.2.0",
"react-helmet-async": "1.0.6",
"react-html-parser": "2.0.2",
Expand Down
5 changes: 5 additions & 0 deletions src/app/containers/HomePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ import {
} from './components/GridLayout/generateLayouts';
import { PersonalHeader } from './components/PersonalHeader';

import ReactGA from 'react-ga';
import _ from 'lodash';

// Google Analytics
ReactGA.initialize('G-814B22G7SF');
ReactGA.pageview(window.location.pathname + window.location.search);

interface Props {}

export const HomePage = memo((props: Props) => {
Expand Down

0 comments on commit 6a6c50f

Please sign in to comment.