Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Tracking file downloads
<a onclick="ga('send', 'event', 'Downloads', 'Click', 'E-book downloaded', '0');" href="http://mysamplesite.com/wp-content/uploads/2015/12/my-free-lead-magnet.pdf">Download Our Guide to Speeding up Your Site</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment