How to track button clicks in Google Analytics simply with jQuery/JavaScript?

3 min read

TLDR; Track & analyse button clicks (events) on website pages with Google Analytics by pasting these few lines of jQuery/JavaScript code onto your site under the Google Analytics code.

It’ll find most common button types and send clicks to Google Analytics for analysis.

The jQuery/JavaScript code for tracking GA button click events is here hosted on GitHub Gists:

https://gist.github.com/hozza/9da4d2bc39aa2610df5cf3dcc0656da7

Continue reading How to track button clicks in Google Analytics simply with jQuery/JavaScript?