HubSpot Forms
Our automatic form tracking supports tracking embedded HubSpot forms on your website. It triggers when a valid email is submitted as part of a form.
To enable HubSpot form tracking, set the hubspot
option to true
in your
script as done below.
dreamdata.load('<DREAMDATA_API_KEY>', {
formTracking: {
hubspot: true,
},
})
Additional options
We also support the following options to customize your HubSpot form tracking:
trackName
. Custom event name for tracking, overriding default "form-submit".useFormIdAsTrackName
. Use the form'sid
attribute as the event name in tracking. NB: Only takes affect for HTML form.useFormNameAsTrackName
. Use the form'sname
attribute as the event name in tracking. NB: Only takes affect for HTML form.