meta: replace Google Analytics with react-ga
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
"react": "^17.0.0-rc.0",
|
"react": "^17.0.0-rc.0",
|
||||||
"react-dom": "^17.0.0-rc.0",
|
"react-dom": "^17.0.0-rc.0",
|
||||||
"react-dropdown-select": "^4.4.2",
|
"react-dropdown-select": "^4.4.2",
|
||||||
|
"react-ga": "^3.1.2",
|
||||||
"react-scripts": "3.4.1",
|
"react-scripts": "3.4.1",
|
||||||
"react-use": "^15.3.2",
|
"react-use": "^15.3.2",
|
||||||
"recoil": "^0.0.13",
|
"recoil": "^0.0.13",
|
||||||
|
|||||||
@@ -12,21 +12,6 @@
|
|||||||
/>
|
/>
|
||||||
<meta name="author" content="Tobias Fried" />
|
<meta name="author" content="Tobias Fried" />
|
||||||
|
|
||||||
<!-- GOOGLE ANALYTICS -->
|
|
||||||
<script
|
|
||||||
async
|
|
||||||
src="https://www.googletagmanager.com/gtag/js?id=UA-179205759-1"
|
|
||||||
></script>
|
|
||||||
<script>
|
|
||||||
window.dataLayer = window.dataLayer || [];
|
|
||||||
function gtag() {
|
|
||||||
dataLayer.push(arguments);
|
|
||||||
}
|
|
||||||
gtag("js", new Date());
|
|
||||||
|
|
||||||
gtag("config", "UA-179205759-1");
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- GOOGLE META -->
|
<!-- GOOGLE META -->
|
||||||
<meta itemprop="name" content="Phosphor Icons" />
|
<meta itemprop="name" content="Phosphor Icons" />
|
||||||
<meta
|
<meta
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import ReactDOM from "react-dom";
|
import ReactDOM from "react-dom";
|
||||||
|
import { RecoilRoot } from "recoil";
|
||||||
import * as serviceWorker from "./serviceWorker";
|
import * as serviceWorker from "./serviceWorker";
|
||||||
import App from "./components/App/App";
|
import App from "./components/App/App";
|
||||||
import { RecoilRoot } from "recoil";
|
import ReactGA from "react-ga";
|
||||||
|
|
||||||
|
ReactGA.initialize("UA-179205759-1", { titleCase: false });
|
||||||
|
ReactGA.pageview(window.location.pathname);
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
|
|||||||
Reference in New Issue
Block a user