Procházet zdrojové kódy

add Google Analytics tag

Ramona Plogmann před 1 rokem
rodič
revize
de5d4da9c9
1 změnil soubory, kde provedl 9 přidání a 0 odebrání
  1. 9 0
      client/public/index.html

+ 9 - 0
client/public/index.html

@@ -81,6 +81,15 @@
     <link rel="apple-touch-startup-image" media="screen and (device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="%PUBLIC_URL%/10.2__iPad_landscape.png">
     <link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="%PUBLIC_URL%/iPhone_11__iPhone_XR_portrait.png">
   </head>
+  <!-- Google tag (gtag.js) Google Analytics -->
+  <script async src="https://www.googletagmanager.com/gtag/js?id=G-Y9TRLLHGC0"></script>
+  <script>
+    window.dataLayer = window.dataLayer || [];
+    function gtag(){dataLayer.push(arguments);}
+    gtag('js', new Date());
+
+    gtag('config', 'G-Y9TRLLHGC0');
+  </script>
   <body style="margin: 0; height: 100%; overflow-x: hidden; background-color: #28793c">
     <div id="root" style="height: 100%"></div>
   </body>