Google Tag Manager integration

When you publish a survey or form, Google Tag Manager (GTM) gives you one place to manage analytics and marketing tags without editing form code every time.

With GTM connected to your Responsly form, you can run GA4 tracking, Google Ads conversions, and other third-party tags from your container.

Before you start

You need:

  1. A Google Tag Manager account with a container ID in the format GTM-XXXXXXX.
  2. Editor access to the Responsly form you want to track.
  3. A published (live) form URL for testing.

Important: Adding a container ID in Responsly only loads GTM on your form page. Tracking appears in your analytics tools only after your tags and triggers are configured and published in GTM.

Connect Google Tag Manager in Responsly

Follow these steps in the form editor:

  1. Open the form you want to track.
  2. Go to Integrations in the builder navigation.
  3. Find Google Tag Manager (search or scroll to tracking integrations). Google Tag Manager integration
  4. Turn on the integration.
  5. Paste your Container ID (example format: GTM-ABC1234).
  6. Save your changes and publish your form updates.

If the value is rejected, check for typos, extra spaces, and correct GTM- format.

Set up tracking in GTM

After connecting Responsly, configure GTM itself:

  1. Open your container in Google Tag Manager.
  2. Add the tags you need (for example GA4 configuration, GA4 events, Google Ads conversion tags, or custom HTML tags).
  3. Attach triggers (for example page view or custom event conditions).
  4. Publish the container version.

Without this step, GTM is loaded but does not send useful tracking data.

Form events you can use as triggers

Your Responsly form pushes three events to the GTM dataLayer. Use them as Custom Event triggers to measure starts, completions and drop-off between questions.

EventWhen it is sentParameters
responsly_form_startThe respondent starts the form: clicks the start button, presses Enter, or the form opens straight on the first question.form_id
responsly_stepA question is shown for the first time in the session. Going back and forward again does not repeat it.form_id, question_number, question_id
responsly_form_submitThe response is saved. It is not sent on the button click alone, so it counts completed forms only.form_id
  • question_number is the position of the question as the respondent saw it, starting from 1. With random order of questions, use question_id to identify a specific question.
  • question_id is the same question ID you see in the API and webhook payloads.
  • The events never include answers or respondent data.

Example of a responsly_step push:

{ event: "responsly_step", form_id: "kgY8mmnR", question_number: 4, question_id: "j5RaRzW7bb3u" }

If you paste a GA4 Measurement ID (G-XXXXXXX) instead of a container ID, the same three events are sent to GA4 directly as GA4 events, without GTM.

Set up a trigger for a form event

  1. In GTM, open Variables and create a Data Layer Variable for each parameter you need: form_id, question_number, question_id.
  2. Open Triggers, click New and choose Custom Event.
  3. Enter the event name, for example responsly_form_submit, and save.
  4. Attach the trigger to a tag, for example a GA4 Event tag named form_submit with form_id as an event parameter, or a Google Ads Conversion tag.
  5. Publish the container and check the events in Preview (Tag Assistant).

For a drop-off report, send responsly_step to GA4 with question_number as a parameter and build a funnel exploration from responsly_form_start through the step numbers to responsly_form_submit.

If your form needs a cookie banner before tracking starts, you have two options:

  • Built-in cookie consent banner. Turn it on in the form settings. GTM loads only after the respondent accepts analytical cookies, and form events wait until then. Details: cookie consent banner for surveys.
  • Your own consent tool through GTM. Keep the built-in banner off and add Cookiebot (or another consent platform with a GTM template) to your container with the Consent Initialization – All Pages trigger. The steps are in the same article.

Verify that GTM works on your form

  1. Open your live Responsly form URL.
  2. Use GTM Preview (Tag Assistant) to test container loading and tag firing.
  3. Complete a test submission.
  4. Confirm events in your destination tools (for example GA4 Realtime or Google Ads diagnostics).

If data is missing:

  • Confirm you are testing the published form URL.
  • Confirm your GTM container changes are published, not only saved as a draft.
  • Check trigger conditions and event names in GTM.
  • Disable ad blockers or browser tracking protection during testing.
  • Verify cookie consent and privacy settings in your environment.

Troubleshooting

IssueWhat to check
Container ID does not saveUse only GTM-XXXXXXX format, no script snippet, no spaces.
GTM loads but no events in GA4Missing/unpublished tags or incorrect triggers in GTM.
Events work in preview but not productionContainer version not published or wrong environment/container selected.
No conversions in ad platformsVerify conversion tag configuration, trigger timing, and platform-side conversion settings.

Google Tag Manager vs Google Analytics in Responsly

  • Google Tag Manager: best for GA4, Google Ads, and multi-tool/custom tracking logic.
  • Google Analytics integration: designed for direct UA-style ID integration.

If you need flexible event-based measurement, GTM is usually the better option.

Before you add marketing tags, decide how respondents give consent: see Cookie consent banner for surveys. Set clear expectations with a strong Survey introduction, go live with Sharing survey link, and combine behavior tracking with exports from How do I export survey data?. The Google Tag Manager integration covers what you can measure once the container is live, and the Google Analytics integration covers the reporting side.

FAQ

What value should I paste in Responsly?

Paste your Google Tag Manager Container ID in the format GTM-XXXXXXX. Do not paste full script code.

Which events does a Responsly form send to Google Tag Manager?

Three dataLayer events: responsly_form_start when the respondent starts, responsly_step when a question is shown for the first time, and responsly_form_submit after the response is saved. Each carries form_id; responsly_step also carries question_number and question_id. Answers are never included.

Does adding GTM automatically send data to GA4 or ads platforms?

Not by itself. GTM must contain published tags and triggers (for example GA4 configuration, conversion tags, and event triggers) before tracking appears in those tools.

Can I use this instead of the Google Analytics integration?

Yes. Use GTM when you need GA4, Google Ads, or custom multi-platform tracking. The Google Analytics integration is focused on UA-style tracking IDs.

Why do I not see events immediately?

Check that your GTM container changes are published, test on the live form URL, and verify browser privacy tools or consent settings are not blocking tags.

How do I disable GTM later?

Open the form in the builder, go to Integrations, find Google Tag Manager, then turn it off or remove the container ID.

Need help or have more questions?