Browse Source

Update google analytics

zhixin 7 years ago
parent
commit
6f254e536c
2 changed files with 7 additions and 5 deletions
  1. 1 1
      README.md
  2. 6 4
      site/_includes/analytics.html

+ 1 - 1
README.md

@@ -84,7 +84,7 @@ It's really saves much time.
 
 You can also use these for templates:
 
-[jsFiddle Bootstrap Table](https://bootstrap-table.com/examples/#basic)
+[jsFiddle Bootstrap Table](https://github.com/wenzhixin/bootstrap-table/issues/1765)
 
 Your feedback is very appreciated!
 

+ 6 - 4
site/_includes/analytics.html

@@ -1,6 +1,8 @@
+<!-- Global site tag (gtag.js) - Google Analytics -->
+<script async src="https://www.googletagmanager.com/gtag/js?id=UA-132747866-1"></script>
 <script>
-  window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
-  ga('create', 'UA-36708951-1', 'wenzhixin.net.cn');
-  ga('send', 'pageview');
+  window.dataLayer = window.dataLayer || []
+  function gtag() {window.dataLayer.push(arguments)}
+  gtag('js', new Date())
+  gtag('config', 'UA-132747866-1')
 </script>
-<script async src='https://www.google-analytics.com/analytics.js'></script>