To track HubSpot form conversions in Google Tag Manager, start by copying the event listener code and placing it into a custom HTML tag in GTM, set to trigger on a page view.
Then, head over to the triggers section and create a custom event trigger called [hubspot-form-success]. This trigger will be the key to firing your marketing tags and pixels, including Google Analytics, Facebook Pixel, Mixpanel, Piwik Pro, and more.
Remember to ensure your setup complies with privacy regulations. You can use trigger conditions in Google Tag Manager to fine-tune your conversions, tracking them only on specific pages, form IDs, or for certain user types.
An important note: an event named `[hubspot-form-data]` triggers before the HubSpot form submission is completed. This captures all the data from the form fields, which can then be used to enrich data when the [hubspot-form-success] event fires after a successful submission.
Pro Tip: Create a Data Layer variable to access and use the data fields effectively.
Learn how to track Gravity Form submissions in Google Tag Manager. This guide walks you through sett
Leave a Reply
You must be logged in to post a comment.