Browse Source

Update GA in docs

DarthSim 2 years ago
parent
commit
929dcd6630
1 changed files with 9 additions and 12 deletions
  1. 9 12
      docs/index.html

+ 9 - 12
docs/index.html

@@ -2,14 +2,15 @@
 <html lang="en">
 <head>
   <!-- Google Tag Manager -->
-  <script>(function (w, d, s, l, i) {
-    w[l] = w[l] || []; w[l].push({
-      'gtm.start':
-        new Date().getTime(), event: 'gtm.js'
-    }); var f = d.getElementsByTagName(s)[0],
-      j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
-        'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
-    })(window, document, 'script', 'dataLayer', 'GTM-T7SQ7RW');</script>
+  <script async
+    src="https://www.googletagmanager.com/gtag/js?id=G-4ME3KE3EJC"></script>
+  <script>
+    window.dataLayer = window.dataLayer || [];
+    function gtag() { dataLayer.push(arguments); }
+    gtag('js', new Date());
+
+    gtag('config', 'G-4ME3KE3EJC');
+  </script>
   <!-- End Google Tag Manager -->
   <meta charset="UTF-8">
   <title>imgproxy documentation</title>
@@ -34,10 +35,6 @@
   <link rel="stylesheet" href="/assets/style.css">
 </head>
 <body>
-  <!-- Google Tag Manager (noscript) -->
-  <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-T7SQ7RW" height="0" width="0"
-    style="display:none;visibility:hidden"></iframe></noscript>
-  <!-- End Google Tag Manager (noscript) -->
   <div id="app">
     <div class="loading">
       <div class="loading__spinner"></div>