I’m using Pro’s Email Forms to capture leads coming through from Google AdWords, and trying to add an event snippet from Google to track a lead capture/email submission. I can’t find anywhere to add the necessary code. Any help would be appreciated, thanks. I’ve attached a screenshot from the Google AdWords instructions on the snippet itself, which I’ll also add here:
<!-- Event snippet for Lead Capture conversion page
In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
<script>
function gtag_report_conversion(url) {
var callback = function () {
if (typeof(url) != 'undefined') {
window.location = url;
}
};
gtag('event', 'conversion', {
'send_to': 'AW-795522347/vX7wCIe_rIsBEKvqqvsC',
'event_callback': callback
});
return false;
}
</script>