Created
May 26, 2011 18:20
-
-
Save nalanj/993699 to your computer and use it in GitHub Desktop.
Tracking Click Events for Downloads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <body> | |
| <a id="download-link" href="download.pdf">Download!</a> | |
| <script type="text/javascript"> | |
| $('#download-link').click() { | |
| _gaq.push(['_trackEvent', 'Downloads', 'Downloaded', 'download.pdf'); | |
| } | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment