Clean form tracking for FormAssembly, with no data collection of its own and no US tooling. The template loads a small runtime and writes the form lifecycle, consent-gated, into the dataLayer.
What it tracks
view: the form becomes visiblestart: first interaction with a fieldstep_N: step change on multi-step formssubmit: successful submissionerror: validation or submission errors
Features
- Consent gating via OneTrust / OptanonConsent, configurable
- Multi-step and modal forms
- SPA navigation without re-tagging
- Deduplication of repeat events
- No network calls of its own, just
dataLayer.push
Install
- Import the template from the GTM Community Template Gallery, or load
template.tplmanually. - Set your consent groups. Analytics usually sits on
C0002. - Trigger the tag on "Initialization - All Pages".
Licence & code
Apache-2.0. Code on GitHub. The Gallery permalink follows after Google review.