Difference between revisions of "MediaWiki:Common.js"
From Mech
Jump to navigationJump to searchLeeRoberson (talk | contribs) (Add PDF tracking) |
(No difference)
|
Revision as of 11:31, 18 October 2016
/* Any JavaScript here will be loaded for all users on every page load. */ $('a[href*=pdf]').click(function(e) { ga('send', 'event', { eventCategory: 'PDF Download', eventAction: 'click', eventLabel: event.target.href }); });