Last active
March 3, 2016 01:18
-
-
Save takustaqu/c01f345d8aea627b6ef2 to your computer and use it in GitHub Desktop.
ぼくのかんがえたさいきょうのGoogle Analyticsマルチトラッキング用読み込みコード ref: http://qiita.com/takustaqu/items/0690c2a9da3331a728e3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var sites = [['UA-XXXXXXXX-X'],['UA-XXXXXXXX-X','trackB'],['UA-XXXXXXXX-X','trackC']]; | |
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; | |
!function(a){var n=[];a.forEach(function(a){var t=a[1],o=t?{name:t}:{};ga("create",a[0],"auto",o),n.push((t?t+".":"")+"send")}),window.gall=function(){var a,t,o=n,r=arguments;o.forEach(function(n){var o=[n];for(a=0,t=r.length;t>a;a++)o.push(r[a]);ga.apply(this,o)})}}(sites); | |
gall('pageview'); | |
</script> | |
<script async src='//www.google-analytics.com/analytics.js'></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var sites = [['UA-XXXXXXXX-X'],['UA-XXXXXXXX-X','trackB'],['UA-XXXXXXXX-X','trackC']]; | |
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; | |
!function(a){var n=[];a.forEach(function(a){var t=a[1],o=t?{name:t}:{};ga("create",a[0],"auto",o),n.push((t?t+".":"")+"send")}),window.gall=function(){var a,t,o=n,r=arguments;o.forEach(function(n){var o=[n];for(a=0,t=r.length;t>a;a++)o.push(r[a]);ga.apply(this,o)})}}(sites); | |
gall('pageview'); | |
</script> | |
<script async src='//www.google-analytics.com/analytics.js'></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment