Fix analytics links

This commit is contained in:
Evan Morikawa 2016-02-09 14:39:31 -08:00
parent c4143a8930
commit e465ed535a

View file

@ -3,8 +3,10 @@
<script>
window.trackDownloadLink = function(eventAction) {
return function(event) {
event.stopPropagation();
event.preventDefault();
if (!ga || !ga.hasOwnProperty("loaded") || ga.loaded != true) {
document.location = href;
return;
}
var href = $(event.currentTarget).attr('href');
ga('send',{
'hitType': 'event',