Switch it on
1
Open the tool
In Settings → Integrations, select Google Analytics, FullStory or UXCam. The panel asks for no key or ID, because nothing needs to be connected.
2
Turn on the sites
Under Sites, turn on the switch for each site that should send the event. Each switch shows the site’s domain and “Send survey responses to Google Analytics on this site”.
What the tool receives
When a visitor completes a survey on a site with the tool switched on, the widget sends the tool one event, if the tool is already loaded on that page. The widget never loads a tool’s script itself. The event fires right after the visitor submits, once the response is on its way to Usertick. A response that the widget keeps in the browser to send later, because the connection dropped, fires the event too.
Each tool receives the same fields:
The event carries nothing else about the response or the person, such as answers, an email or a user ID.
For Google Analytics with
gtag, the call looks like this:
When nothing is sent
The widget sends no event in these cases:- The tool isn’t on the page: there is no
gtagordataLayerfor Google Analytics, noFSfor FullStory and nouxcfor UXCam. - The survey has Anonymous responses on.
- The survey is a link, QR code or email survey, which runs on Usertick’s own survey page instead of your site.
- Usertick refused the response, so the form stays open.
- The survey runs as a preview in the editor.
Google Analytics
With Google Tag Manager
When the page hasgtag, the widget calls it. When the page has only Google Tag Manager, the widget pushes the event into the dataLayer as { event: 'usertick_survey_response', survey_id, response_id, score }. Tag Manager does nothing with it until a tag uses it:
1
Add a trigger
In Tag Manager, create a trigger of the type Custom Event, with the event name
usertick_survey_response.2
Add the variables
Create a Data Layer Variable for each of
survey_id, response_id and score.3
Add the tag
Create a Google Analytics: GA4 Event tag with the event name
usertick_survey_response, add the three variables as event parameters under the same names, and fire it on the trigger.4
Publish
Submit and publish the container.
Show the fields in your reports
Google Analytics keeps every parameter, but its reports show only the ones that are registered. To show the survey and the response, open Admin → Custom definitions in Google Analytics and create a custom dimension with the scope Event forsurvey_id and for response_id, using the exact parameter names. To average or sum the score, register score as a custom metric. A custom definition fills only from the day it is created.
To check the setup, complete a survey on your site and look for usertick_survey_response in the Realtime report.
FullStory
FullStory records the event in the session it is recording on that page, as “Usertick survey response” with the three fields as its properties. The event helps find the sessions where someone completed a survey. The answers stay in Usertick, where the response opens by itsresponse_id.