Requirements
Checklist
Tag 1 : Create a tag with Custom code
Variable: Create a variable to read the HubSpot Form ID
We create a new tag, we go to Google Tag Manager → New tag. In tag configuration, we click and select Custom HTML, we paste the following code making sure to add the event name.
also, select the triggering —> All Pages.
go to the variables option and click on new. We select Data Layer Variable and add the name we receive from the form which corresponds to “hs-form-guid”.
Go to the triggers option -> new and there select the Custom event option and add the event name that corresponds to the event name in the code.
In the video you will find how to check if the tag was configured correctly.