- In Google Tag Manager, create a new tag as a custom HTML tag.
- Inside the tag, paste the entire code from the
fluent-form-datalayer.html
file provided in this repository. - Set the trigger to fire on all page views.
Once you've configured this setup, you will get Google Tag Manager dataLayer events as fluent_form_submit
. You will get form ID as form_id and all other inputs like phone number, email, etc