User Tools

Site Tools


wiki:arctic_customization

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
wiki:arctic_customization [2010/12/15 16:05] – [print.css] chkuowiki:arctic_customization [2023/05/12 10:57] (current) – [analytics.script] chkuo
Line 11: Line 11:
 ===== analytics.script ===== ===== analytics.script =====
 Add this file to the template directory: Add this file to the template directory:
-<file java+<file
-<script type="text/javascript">+<!-- Google tag (gtag.js) --
 +<script async src="https://www.googletagmanager.com/gtag/js?id=G-48KMGESLGF"></script> 
 +<script> 
 +  window.dataLayer = window.dataLayer || []; 
 +  function gtag(){dataLayer.push(arguments);
 +  gtag('js', new Date());
  
-  var _gaq = _gaq || []; +  gtag('config', 'G-48KMGESLGF'); 
-  _gaq.push(['_setAccount', 'UA-2138404-9']); +</script>
-  _gaq.push(['_trackPageview']);+
  
-  (function() { 
-    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 
-    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 
-    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 
-  })(); 
- 
-</script> 
 </file> </file>
  
wiki/arctic_customization.1292400330.txt.gz · Last modified: by chkuo