This commit is contained in:
dbroqua 2019-04-14 14:45:53 +02:00
parent dd9ceb55ab
commit dd4101f143
3 changed files with 10 additions and 0 deletions

View File

@ -9,6 +9,7 @@
"prop-types": "^15.7.2",
"react": "^16.6.1",
"react-dom": "^16.6.1",
"react-ga": "^2.5.7",
"react-icons": "^3.2.2",
"react-notifications": "^1.4.3",
"react-router-dom": "^4.3.1",

View File

@ -1,4 +1,5 @@
import React, { Component, Fragment } from 'react';
import ReactGA from 'react-ga';
import {
BrowserRouter as Router, Route,
Switch,
@ -10,6 +11,9 @@ import Home from '../Routes/Home';
import Vegetables from '../Routes/Vegetables';
import Vegetable from '../Routes/Vegetable';
ReactGA.initialize('UA-138332682-1');
ReactGA.pageview(window.location.pathname + window.location.search);
class App extends Component {
static changeBackground(background) {
document.body.style.background = `url('/background/${background}.jpg') no-repeat fixed`;

View File

@ -8205,6 +8205,11 @@ react-error-overlay@^5.1.0:
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-5.1.4.tgz#88dfb88857c18ceb3b9f95076f850d7121776991"
integrity sha512-fp+U98OMZcnduQ+NSEiQa4s/XMsbp+5KlydmkbESOw4P69iWZ68ZMFM5a2BuE0FgqPBKApJyRuYHR95jM8lAmg==
react-ga@^2.5.7:
version "2.5.7"
resolved "https://registry.yarnpkg.com/react-ga/-/react-ga-2.5.7.tgz#1c80a289004bf84f84c26d46f3a6a6513081bf2e"
integrity sha512-UmATFaZpEQDO96KFjB5FRLcT6hFcwaxOmAJZnjrSiFN/msTqylq9G+z5Z8TYzN/dbamDTiWf92m6MnXXJkAivQ==
react-icons@^3.2.2:
version "3.5.0"
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-3.5.0.tgz#a6135480e3bcbc63f5dd045193ef2a814263d8d1"