Browse Source

Analytics

nieyuge 2 năm trước cách đây
mục cha
commit
70c2e5b3e1
1 tập tin đã thay đổi với 11 bổ sung0 xóa
  1. 11 0
      index.html

+ 11 - 0
index.html

@@ -14,5 +14,16 @@
     <div id="app"><!--app-html--></div>
     <script type="module" src="/src/entry-client.js"></script>
     <script>!function(e,t){function n(){t.body?t.body.style.fontSize=12*o+"px":t.addEventListener("DOMContentLoaded",n)}function d(){var e=(i.clientWidth > 1280 ? 1280 : i.clientWidth)/10;i.style.fontSize=e+"px"}var i=t.documentElement,o=e.devicePixelRatio||1;if(n(),d(),e.addEventListener("resize",d),e.addEventListener("pageshow",function(e){e.persisted&&d()}),o>=2){var a=t.createElement("body"),s=t.createElement("div");s.style.border=".5px solid transparent",a.appendChild(s),i.appendChild(a),1===s.offsetHeight&&i.classList.add("hairlines"),i.removeChild(a)}}(window,document);</script>
+    <!-- Global site tag (gtag.js) - Google Analytics -->
+    <script async src="https://www.googletagmanager.com/gtag/js?id=G-YN75PBGW9R"></script>
+    <script>
+      if (process.env.NODE_ENV === `production`) {
+        window.dataLayer = window.dataLayer || [];
+        function gtag(){dataLayer.push(arguments);}
+        gtag('js', new Date());
+
+        gtag('config', 'G-YN75PBGW9R');
+      }
+    </script>
   </body>
 </html>