A small jQuery plugin for Google Analytics event tracking
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
wiretap.js

README.md

wiretap

A small jQuery plugin for Google Analytics event tracking

In the wild:

How do I track clicks to a TPS report, when the TPS report isn’t a webpage I can put analytics code on?
— Bill Lumbergh via doteduguru

<a href="this-form.pdf" onclick="_gaq.push(['_trackEvent', 'PDF Downloads', 'Download', 'TPS Report']);">TPS Report</a></p>

--

"How do I track every click everywhere?"

<a href="this-form.pdf" onclick="_gaq.push(['_trackEvent', 'Category', 'Action', 'Label']);">TPS Report</a></p>