Tracking an Adwords conversion on the click of a button requires a small amount of custom code in Unbounce. A click event needs to be attached to the button in order to trigger the Adwords conversion code. Follow the steps below to start tracking an Adwords conversion on the click of a button.
Follow the click-specific Google Ads Set Up Instructions https://support.google.com/google-ads/answer/6331304?hl=en&ref_topic=3165803
Assiging an onclick Attribute
The following code will generate the html as per Google’s documentation (remember to add the button ID and the URL for the Adwords conversion):
$(’#button-ID’).attr(‘onclick’, ‘goog_report_conversion (“https://domain-to-attribute-conversion-to.com”)’);
Assign a Click Event to the Button
If you are using a later version of jQuery than what’s supplied by default in the builder (1.4.2) the .attr() function used above will not work. If this is the case the following code will work instead (same as above remember to add the button ID and the URL for the Adwords conversion):
Save and republish the page 🙂
Want to take your Unbounce landing pages + Convertables™ to the next level?
Check out the Ultimate List of Unbounce Tips, Scripts & Hacks