meta: replace Google Analytics with react-ga
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
"react": "^17.0.0-rc.0",
|
||||
"react-dom": "^17.0.0-rc.0",
|
||||
"react-dropdown-select": "^4.4.2",
|
||||
"react-ga": "^3.1.2",
|
||||
"react-scripts": "3.4.1",
|
||||
"react-use": "^15.3.2",
|
||||
"recoil": "^0.0.13",
|
||||
|
||||
@@ -12,21 +12,6 @@
|
||||
/>
|
||||
<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 -->
|
||||
<meta itemprop="name" content="Phosphor Icons" />
|
||||
<meta
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import { RecoilRoot } from "recoil";
|
||||
import * as serviceWorker from "./serviceWorker";
|
||||
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(
|
||||
<React.StrictMode>
|
||||
|
||||
Reference in New Issue
Block a user