Google Ads Enhanced Conversions Tracking
-
Hi there,
This article describes how to set up Google Ads Enhanced Conversion Tracking with Google Tag Manager + Contact Form 7: https://www.linkedin.com/pulse/google-ads-enhanced-conversions-tracking-contact-form-ryan-parkes
Can the same be done with HTML Forms?
I guess more specifically, my question is, can we add the form data to the GTM dataLayer like this:
<script> document.addEventListener( 'wpcf7mailsent', function( event ) { window.dataLayer.push({ "event" : "cf7submission", "formId" : event.detail.contactFormId, "response" : event.detail.inputs }) }); </script>
So with CF7 you can use
event.detail.inputs
which contains all the form data. Is there an equivalent with HTML Forms?Any help would be much appreciated.
Thanks
Ste
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.