Google Analytics enabled
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "Menui_web_client",
|
||||
"name": "MenuiWebClient",
|
||||
"version": "0.4.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
@@ -17,7 +17,6 @@
|
||||
"notistack": "^1.0.0",
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1",
|
||||
"react-ga": "^3.1.2",
|
||||
"react-redux": "^7.2.0",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"react-scripts": "^3.4.3",
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SHB9LXPWWM"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() { dataLayer.push(arguments); }
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-SHB9LXPWWM');
|
||||
</script>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import React from "react";
|
||||
import ReactGA from "react-ga";
|
||||
import ReactDOM from "react-dom";
|
||||
import { Provider } from "react-redux";
|
||||
import "./index.scss";
|
||||
@@ -13,9 +12,6 @@ import rootReducer from "./reducers";
|
||||
|
||||
const history = createBrowserHistory();
|
||||
|
||||
ReactGA.initialize("G-SHB9LXPWWM");
|
||||
ReactGA.pageview("/");
|
||||
|
||||
const store = createStore(
|
||||
rootReducer(history),
|
||||
compose(
|
||||
|
||||
Reference in New Issue
Block a user