Skip to content

Commit 7c1fbf3

Browse files
committed
Google Analytics tracking code を別の js ファイルに分離
1 parent 859458f commit 7c1fbf3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

googleanalytics.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
2+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
3+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
4+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
5+
6+
// Google Analytics tracking code for kobake
7+
ga('create', 'UA-120820034-1', 'auto');
8+
ga('send', 'pageview');

0 commit comments

Comments
 (0)