From 8ef75e55dd43e3fca48a374ac0436503e79cb4a4 Mon Sep 17 00:00:00 2001 From: Pavel <Pavel.Murygin@gmail.com> Date: Sun, 7 Feb 2021 21:36:40 +0300 Subject: [PATCH] add google analytics (#8) --- index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.html b/index.html index 07f5c99..70d0f0b 100644 --- a/index.html +++ b/index.html @@ -17,6 +17,14 @@ </head> <body> <script src="/bundle.js"></script> +<!-- Global site tag (gtag.js) - Google Analytics --> +<script async src="https://www.googletagmanager.com/gtag/js?id=G-6ZTQKE1D4L"></script> +<script> + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + gtag('config', 'G-6ZTQKE1D4L'); +</script> <div id="root"></div> </body> </html>