Skip to content

Commit

Permalink
Merge pull request #348 from alphagov/track-related-link-click
Browse files Browse the repository at this point in the history
Track the clicks on the related box jump link
  • Loading branch information
mnowster committed Dec 16, 2013
2 parents fcc1edc + c7a73c9 commit 30ea29b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/assets/javascripts/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ $(document).ready(function() {
}
}
}

$('.skip-to-related').click(function(e){
if(!window.hasClickedSkipToRelated){
window.hasClickedSkipToRelated = true;
_gaq && _gaq.push(['_trackEvent', 'ms_related_box', 'skip', 'clicked', 0, true]);
}
});
});


0 comments on commit 30ea29b

Please sign in to comment.