update google analytics
This commit is contained in:
parent
f744b1bf88
commit
4f19678bb9
1 changed files with 7 additions and 11 deletions
18
defer.js
18
defer.js
|
@ -7,17 +7,13 @@
|
|||
mixpanel.track('Page load', {'page name' : document.title, 'url' : window.location.pathname});
|
||||
|
||||
//Google Analytics
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', 'UA-41177412-1']);
|
||||
_gaq.push(['_setDomainName', 'minfwk.com']);
|
||||
_gaq.push(['_setAllowLinker', true]);
|
||||
_gaq.push(['_trackPageview']);
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
(function() {
|
||||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
ga('create', 'UA-41177412-1', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
//Quantcast
|
||||
var _qevents = _qevents || [];
|
||||
|
@ -51,4 +47,4 @@ pageYOffset+"px";var a="orientation"in window&&90==Math.abs(orientation);k.style
|
|||
|
||||
InstantClick.on('change', function() {
|
||||
ga('send', 'pageview', location.pathname + location.search);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue