Google Conversion Tracking With The Button Element

Last Update: March 5, 2024

If you are a Google Analytics user, you can now use conversion tracking through the Button Element to track when someone clicks on a button on your website. Read on…

Setting Up The Button

The first step to set up conversion tracking is to add a custom attribute to the Button Element when you add it to the page. Add this in the ‘Button Additional Attributes Field’ (customizing it for your URL):

Copy to Clipboard
Button Element Conversion Tracking

Add Script To Global Options

The second step is to add this script to the Advanced > Code Fileds (Tracking etc.) > Space before < /head > Global Options field:

Copy to Clipboard
Button Element Conversion Tracking > Adding Script to Theme Options

That’s it! Your button is now set up to track conversions vis Google Analytics. For more general information on tracking clicks on your website as conversions see this Google article.

In this article