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.
1 parent a1b21bf commit d26c8b8Copy full SHA for d26c8b8
_includes/headerbottom.html
@@ -11,7 +11,18 @@
11
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
12
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
13
})();
14
-
+ var f = function(event){
15
+ _gaq.push(['_trackEvent','Downloads','Download',$(this).attr('href')]);
16
+ };
17
+ function endsWith(str, suffix) {
18
+ return str.indexOf(suffix, str.length - suffix.length) !== -1;
19
+ }
20
+ $(function(){
21
+ $('a').filter(function(){
22
+ var href = $(this).attr('href');
23
+ return !endsWith(href,'/') && !endsWith(href,'html');
24
+ }).on('click',f);
25
+ });
26
</script>
27
</head>
28
<body>
0 commit comments