We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8cd455 + d26c8b8 commit ba720c1Copy full SHA for ba720c1
_includes/headerbottom.html
@@ -31,7 +31,18 @@
31
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
32
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
33
})();
34
-
+ var f = function(event){
35
+ _gaq.push(['_trackEvent','Downloads','Download',$(this).attr('href')]);
36
+ };
37
+ function endsWith(str, suffix) {
38
+ return str.indexOf(suffix, str.length - suffix.length) !== -1;
39
+ }
40
+ $(function(){
41
+ $('a').filter(function(){
42
+ var href = $(this).attr('href');
43
+ return !endsWith(href,'/') && !endsWith(href,'html');
44
+ }).on('click',f);
45
+ });
46
</script>
47
</head>
48
<body onload="styleCode()">
0 commit comments