Skip to content

Commit

Permalink
added ga
Browse files Browse the repository at this point in the history
  • Loading branch information
shomilj committed Nov 26, 2020
1 parent 35f5329 commit 15521a7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
5 changes: 5 additions & 0 deletions client/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 client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"react": "^17.0.1",
"react-bootstrap": "^1.4.0",
"react-dom": "^17.0.1",
"react-ga": "^3.3.0",
"react-redux": "^7.2.2",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.0",
Expand Down
12 changes: 0 additions & 12 deletions client/src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import './App.css';
import { Row, Col, Card, Badge, Form } from 'react-bootstrap';
import Select from 'react-select'
import Home from './components/home/home'

import {
Expand All @@ -9,16 +7,6 @@ import {
Route,
} from "react-router-dom";

const courses = [
{ value: '161', label: 'CS 161' },
{ value: '170', label: 'CS 170' },
{ value: '188', label: 'CS 188' }
]

const professors = [
{ value: 'sahai', label: 'Anant Sahai' },
{ value: 'weaver', label: 'Nicholas Weaver'}
]

function App() {
return (
Expand Down
4 changes: 4 additions & 0 deletions client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import { render } from 'react-dom'
import { Provider } from 'react-redux'

import store from './redux/store'
import ReactGA from 'react-ga';

/* Initialize Google Analytics. */
ReactGA.initialize('G-ZMDNDHM5EN');

const renderApp = () => {
render (
Expand Down

0 comments on commit 15521a7

Please sign in to comment.