Analytics & GTM Event Tracking for Form Studio

February 23, 2026New

You can now connect Basin Form Studio forms to Google Tag Manager, Segment, or any analytics platform — including when your form is embedded in an iframe.

The problem

Embedded forms are invisible to analytics tools running on the parent page. GTM can't see inside the form, so form interactions like field focus, page navigation, and submission were untrackable without custom workarounds.

How it works

Basin Form Studio fires lifecycle events automatically. Four events are emitted — no configuration required:

Event Fires when
basin_form_view The form loads and is ready
basin_form_start The user focuses a field for the first time
basin_form_page_change The user navigates to a new page (multi-page forms)
basin_form_submit The user submits the form

Setting up Google Tag Manager

Add the Google Tag Manager widget from the form builder toolbox. Enter your GTM Container ID (GTM-XXXXXXX) in the properties panel — that's it. Basin handles the rest automatically:

  • Your GTM container is loaded on the page embedding the form
  • All Basin events are forwarded into your GTM dataLayer with correct page URL, cookies, and campaign attribution (UTMs, gclid, etc.)
  • No bridge tag, no listener code, no custom HTML tag needed in GTM

In your GTM workspace, create Custom Event triggers for the event names above and attach your tags to them. A single regex trigger (basin_form_.*) will catch all four at once.

Direct link forms

If your form is accessed via its direct Basin URL rather than an iframe embed, the widget still works — GTM is injected directly into the form page.

Choosing the right mode

The widget has a Send Events To Embedding Page toggle (on by default):

  • On — GTM fires on the parent page. Correct attribution, full cookie access. Recommended for iframe embeds, especially with paid traffic.
  • Off — GTM fires inside the form itself. Simpler, but events are attributed to the Basin URL rather than your own page.