Tracking Button Clicks

Track when a user clicks a specific button on your site


Track when the user clicks a button, and use that to show/hide elements on other pages throughout your site.


Place this code inside the BODY custom code area of your page or site.

If the button is only on one page, it's best to put it on that page only, to prevent ID conflicts with elements on other pages.

If the button is on all pages, such as a nav or footer button, it's best to place it in the site-wide BODY custom code, under site settings.

// Handle button tracking 
$("#button").click(function() {

Last updated