
While working on a WordPress site one of the requirement was that client should get alerts on document downloads. In-order to achieve this we implemented an event tracking functionality for the site. In this article I will be explaining different methods to track an onlick event using jquery and get the updates in Google Analytics.