浏览代码

Add GA to PG

David Catuhe 7 年之前
父节点
当前提交
65af442bf4
共有 5 个文件被更改,包括 50 次插入0 次删除
  1. 10 0
      Playground/debug.html
  2. 10 0
      Playground/frame.html
  3. 10 0
      Playground/full.html
  4. 10 0
      Playground/index.html
  5. 10 0
      Playground/indexStable.html

+ 10 - 0
Playground/debug.html

@@ -517,6 +517,16 @@
     <script src="js/actions.js"></script>
     <script src="js/pbt.js"></script>
     <script src="js/index.js"></script>
+
+    <!-- Global site tag (gtag.js) - Google Analytics -->
+    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-41767310-2"></script>
+    <script>
+    window.dataLayer = window.dataLayer || [];
+    function gtag(){dataLayer.push(arguments);}
+    gtag('js', new Date());
+
+    gtag('config', 'UA-41767310-2');
+    </script>    
 </body>
 
 </html>

+ 10 - 0
Playground/frame.html

@@ -81,6 +81,16 @@
 
     <script src="https://code.jquery.com/jquery.js"></script>
     <script src="js/frame.js"></script>
+
+    <!-- Global site tag (gtag.js) - Google Analytics -->
+    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-41767310-2"></script>
+    <script>
+    window.dataLayer = window.dataLayer || [];
+    function gtag(){dataLayer.push(arguments);}
+    gtag('js', new Date());
+
+    gtag('config', 'UA-41767310-2');
+    </script>    
 </body>
 
 </html>

+ 10 - 0
Playground/full.html

@@ -51,6 +51,16 @@
         <canvas touch-action="none" id="renderCanvas" tabindex="1"></canvas>
         <script src="https://code.jquery.com/jquery.js"></script>
         <script src="js/frame.js"></script>
+
+        <!-- Global site tag (gtag.js) - Google Analytics -->
+        <script async src="https://www.googletagmanager.com/gtag/js?id=UA-41767310-2"></script>
+        <script>
+        window.dataLayer = window.dataLayer || [];
+        function gtag(){dataLayer.push(arguments);}
+        gtag('js', new Date());
+
+        gtag('config', 'UA-41767310-2');
+        </script>        
     </body>
 
 </html>

+ 10 - 0
Playground/index.html

@@ -503,6 +503,16 @@
         <script src="js/actions.js"></script>
         <script src="js/pbt.js"></script>
         <script src="js/index.js"></script>
+        
+        <!-- Global site tag (gtag.js) - Google Analytics -->
+        <script async src="https://www.googletagmanager.com/gtag/js?id=UA-41767310-2"></script>
+        <script>
+        window.dataLayer = window.dataLayer || [];
+        function gtag(){dataLayer.push(arguments);}
+        gtag('js', new Date());
+
+        gtag('config', 'UA-41767310-2');
+        </script>        
     </body>
 
 </html>

+ 10 - 0
Playground/indexStable.html

@@ -487,6 +487,16 @@
         <script src="js/actions.js"></script>
         <script src="js/pbt.js"></script>
         <script src="js/index.js"></script>
+
+        <!-- Global site tag (gtag.js) - Google Analytics -->
+        <script async src="https://www.googletagmanager.com/gtag/js?id=UA-41767310-2"></script>
+        <script>
+        window.dataLayer = window.dataLayer || [];
+        function gtag(){dataLayer.push(arguments);}
+        gtag('js', new Date());
+
+        gtag('config', 'UA-41767310-2');
+        </script>        
     </body>
 
 </html>