I’ve been sent some google code by my clients marketing agency who want to track conversions when a form has been submitted.
How would I go about embedding the code so it works with one of the forms on the site below?
Any help would be really appreciated. This is what I’ve been sent from Google:
- Add an
onclickattribute directly to the code for the button or link that you’d like to track. The code that you use will depend on how the link or button is displayed on your site: as a text link, button or button image.
Add the code to a button: This code shows you how to add click tracking functionality to a button using the
<button> tag. Replace ‘http://example.com/your-link’ with the URL for your website.
<button onclick="return gtag_report_conversion('http://example.com/your-link')">Submit</button>