Posts Archive.

2025

2024

2023

2022

2021

2020

2019

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

/how-to-track-button-clicks-in-google-analytics-simply-with-jquery-javascript/ 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: View the Code Gist on GitHub 2019-10-25
ANALYTICS, CODE, GOOGLEANALYTICS, JAVASCRIPT, JQUERY, SME, TRACKING, UX
The end of time, as this blog knows it.