Skip to Content
Google Tag Manager

Google Tag Manager

Track how people interact with your forms using Google Tag Manager (GTM). Rowform automatically pushes events to the GTM dataLayer, so you can route them to Google Analytics, Meta Pixel, LinkedIn Insight Tag, or any other tool connected to your GTM container.

This is a Pro feature.

Setting Up Google Tag Manager

  1. Open your form in the Builder.
  2. Click the Integrate tab.
  3. Find the Google Tag Manager card and click it.
  4. Enter your GTM Container ID (e.g., GTM-ABC1234).
  5. Click Connect GTM.

Once connected, the GTM scripts are automatically injected whenever someone views your published form.

Finding Your Container ID

  1. Open Google Tag Manager .
  2. Select your container (or create one).
  3. Go to AdminContainer Settings.
  4. Copy the Container ID — it starts with GTM- followed by letters and numbers.

How It Works

  • When a respondent opens your published form, Rowform injects the standard GTM snippet into the page.
  • As the respondent navigates and interacts with the form, events are pushed to the dataLayer.
  • You set up triggers in your GTM workspace to listen for these events and fire tags (Google Analytics, conversion pixels, etc.).
  • GTM scripts are never injected in the builder preview — only on published forms.

Events

Rowform pushes four events to the dataLayer:

rowform_form_start

Fires once when the form finishes loading and is displayed to the respondent.

FieldDescription
form_idThe unique ID of the form
form_titleThe title of the form
total_questionsNumber of answerable questions (excludes statements and thank-you screens)

rowform_question_view

Fires each time a new question is displayed.

FieldDescription
form_idThe unique ID of the form
form_titleThe title of the form
question_idThe unique ID of the question
question_typeThe question type (e.g., multiple_choice, short_text)
question_titleThe question label text
question_numberThe position of the question (1-based)
total_questionsNumber of answerable questions

rowform_question_answer

Fires each time a respondent answers a question. For multi-select questions, this fires on every selection change.

The payload fields are the same as rowform_question_view.

Note: The actual answer value is never included in the event. Only question metadata is sent to protect respondent privacy.

rowform_form_submit

Fires when the form is successfully submitted.

FieldDescription
form_idThe unique ID of the form
form_titleThe title of the form
total_questionsNumber of answerable questions
total_answeredNumber of questions the respondent answered

Example: Tracking in Google Analytics 4

To send Rowform events to GA4 via GTM:

  1. In GTM, create a new Trigger of type Custom Event.
  2. Set the event name to rowform_form_submit (or any of the four events above).
  3. Create a new Tag of type Google Analytics: GA4 Event.
  4. Select your GA4 configuration tag and set the event name.
  5. Attach the trigger from step 2.
  6. Publish your GTM container.

Repeat for each event you want to track.

Managing the Connection

Connection Status

The Integrate panel shows:

  • The connected Container ID.
  • The date the connection was established.

Disconnecting

To remove GTM from your form:

  1. Go to the Integrate tab.
  2. Click the Google Tag Manager card.
  3. Click Disconnect.

This immediately stops GTM scripts from loading on your published form.

Privacy

Rowform never sends answer values or personally identifiable information (PII) to the dataLayer. Only form and question metadata (IDs, types, titles, positions) are included in events.

However, the GTM container script itself has access to the page DOM. Any tags you configure in your GTM workspace are your responsibility — ensure they comply with your privacy policy and applicable regulations (GDPR, CCPA, etc.).

Bot Protection

GTM events only fire for real respondents. Spam and bot submissions are blocked by Cloudflare Turnstile before any form interaction events are tracked.

Tips

  • Start by tracking just rowform_form_submit to measure conversion rates, then add the other events for deeper funnel analysis.
  • Use rowform_question_view with question_number and total_questions to identify where respondents drop off.
  • GTM works alongside all other integrations — you can use it together with Slack, Webhooks, and Email Notifications on the same form.
  • Remember to publish your GTM container after adding triggers and tags — unpublished changes won’t fire.
Last updated on