Created
November 12, 2011 20:43
-
-
Save stereobooster/1361086 to your computer and use it in GitHub Desktop.
GA
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
<!-- Facebook async loading of JSAPI --> | |
<div id="fb-root"></div> | |
<script> | |
// Facebook async loading. | |
(function() { | |
var e = document.createElement('script'); e.async = true; | |
e.src = document.location.protocol + | |
'//connect.facebook.net/en_US/all.js'; | |
document.getElementById('fb-root').appendChild(e); | |
}()); | |
window.fbAsyncInit = function() { | |
FB.init({appId: '164838206912600', status: true, cookie: true, | |
xfbml: true}); | |
_ga.trackFacebook(); | |
}; | |
</script> | |
<!-- Load Twitter JS-API asynchronously --> | |
<script> | |
(function(){ | |
var twitterWidgets = document.createElement('script'); | |
twitterWidgets.type = 'text/javascript'; | |
twitterWidgets.async = true; | |
twitterWidgets.src = 'http://platform.twitter.com/widgets.js'; | |
// Setup a callback to track once the script loads. | |
twitterWidgets.onload = _ga.trackTwitter; | |
document.getElementsByTagName('head')[0].appendChild(twitterWidgets); | |
})(); | |
</script> | |
<script type="text/javascript" src="http://vkontakte.ru/js/api/share.js?11" charset="windows-1251"></script> | |
<script type="text/javascript"> | |
VK.init({ | |
apiId: ВАШ_API_ID, | |
onlyWidgets: true | |
}); | |
</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
/* | |
http://www.google.com/support/analytics/bin/answer.py?answer=77613 | |
Yahoo | |
MSN | |
Lycos | |
Ask | |
Altavista | |
Netscape | |
CNN | |
Looksmart | |
About | |
Mamma | |
Alltheweb | |
Gigablast | |
Voila | |
Virgilio | |
Live | |
Baidu | |
Alice | |
Yandex | |
Najdi | |
AOL | |
Club-internet | |
Mama | |
Seznam | |
Search | |
Wp | |
Onet | |
Netsprint | |
Google.interia | |
Szukacz | |
Yam | |
Pchome | |
*/ | |
var _gaq=_gaq||[]; | |
(function(_gaq){ | |
var a='bing.com;q;images.yandex.ru;text;blogs.yandex.ru;text;video.yandex.ru;text;mail.ru;q;go.mail.ru;q;rambler.ru;words;nova.rambler.ru;query;nova.rambler.ru;words;gogo.ru;q;nigma.ru;s;search.qip.ru;query;webalta.ru;q;sm.aport.ru;r;meta.ua;q;search.bigmir.net;z;search.i.ua;q;index.online.ua;q;web20.a.ua;query;search.ukr.net;search_query;search.com.ua;q;search.ua;q;poisk.ru;text;go.km.ru;sq;liveinternet.ru;ask;gde.ru;keywords;affiliates.quintura.com;request;akavita.by;z;search.tut.by;query;all.by;query;ukr.net;search_query;quintura.ru;request;qip.ru;query;metabot.ru;st;i.ua;q;a.ua;s'.split(';'), | |
i; | |
for(i=0;i<a.length;i+=2){ | |
_gaq.push(['_addOrganic',a[i],a[i+1]]); | |
} | |
}(_gaq)); | |
//All this stuff should be before _gaq.push(['_trackPageview']); |
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
window.onerror=function(m,u,l){_gaq.push(["_trackEvent","error",m,u,l]);}; | |
$(function(){ | |
$("body").delegate("a", "click", function(){ | |
$this = $(this); | |
if($this.attr("hostname") !== window.location.hostname){ | |
_gaq.push(["_trackEvent", "links", "external", $this.attr("href"), 0]); | |
} | |
}); | |
}); | |
//http://imakewebthings.github.com/jquery-waypoints/scroll-analytics/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment