Google Analytics
Updated
On this page
Connect Google Analytics to a survey to see its visits in your Google Analytics property and track survey events: opening the survey, submitting a response, button clicks and answers to questions.
Before you start
You need a Google Analytics 4 property with a web data stream. Copy its Measurement ID:
- In Google Analytics, open Admin → Data streams.
- Select your web stream or create a new one.
- Copy the Measurement ID. It starts with G-, for example G-1A2B3C4D5E.
Connecting Google Analytics
- Open the survey and go to the Integrations tab.
- Click Google Analytics in the list.
- In Analytics version, keep Google Analytics 4 (1).
- Paste the Measurement ID into Tracking ID (2). The value is saved when you click outside the field.
- Publish the survey. The counter is added to the published survey only after you click Publish.

Google Analytics now appears under Connected on the Integrations tab.
Note. Universal Analytics is kept only for old counters with IDs that start with UA-. Google has stopped processing Universal Analytics data, so use Google Analytics 4.
Survey events
Below the Tracking ID field, SurveyNinja lists the events that the survey sends to Google Analytics. Each event has a Goal ID (3). Click it to copy.
| Group | Event |
|---|---|
| Events | Survey opened, Respondent submitted a response |
| Button clicks | Welcome screen button (if the survey has a Welcome Screen), “Submit” button, Thank-you screen buttons (if the survey has a Thank You Screen) |
| Question answers | A separate event for each question |
Events report only that the action happened. SurveyNinja doesn't send the answers themselves to Google Analytics. With each page view, Google Analytics receives the survey page address, including the parameters in the link, such as hidden variables.
In Google Analytics 4, the events for opening the survey, submitting a response and button clicks appear in the event reports. You can mark the submit event as a key event to count how many visitors submit the survey. This event is also sent for disqualified respondents.
Turning the integration off
On the Integrations tab, open Google Analytics, click Remove and confirm. All integration settings are reset. Publish the survey again to remove the counter from the published survey.
Limits
- A survey has one Tracking ID.
- Survey events are not sent from the survey preview. The preview still loads the counter, so Google Analytics counts a page view. Test the events on the published survey link.
- If the workspace moves to the Free plan, the counter stops loading on the published survey.
If something doesn't work
- No survey data in Google Analytics. The survey wasn't published after you added the ID. Click Publish, then open the published survey link.
- Google Analytics shows page views but no survey events. You tested the survey in the preview. Open the published survey link instead.
- The counter is still on the survey after you removed the integration. The published version still has it. Publish the survey again.
25 Questions for a Travel Agency Customer Satisfaction Survey