Google Tag Manager

Google Tag Manager

This feature is included in the Professional, Enterprise and ReportR plan.

Google Tag Manager is a tag system that Google has created which can be used for tracking and analytics on websites. It can be used to track respondents' behavior in your survey or to find out how effective an advert promoting your survey has been.

Sounds like a useful feature? Here's how to to set up Google Tag Manger for your survey.

Log in to your Google Tag Manager account or set one up here: . Create a new container for your Survey Anyplace surveys by selecting Create Account from the menu on the top right.

Google Tag Manager - create account

In the Container name field, enter 

Select Web for Where to Use Container and now click Create.

This will take you to a popup that provides you with the codes you need to install Google Tag Manager on your websites.

Copy the container ID (GTM-XXXXXXX) and now it's time to head to your Survey Anyplace account. Within the survey which you want to add the Tag Manager, click on the Extra Options tab and scroll down to Integrations. Click Google Tag Manager and toggle to Activate Google Tag Manager integration.

Activate Google Tag Manager integration

Now you can simply paste the container ID that you copied earlier.

Tip: By default we trigger a *sa_survey_complete* event each time the survey has been finished. `dataLayer.push({'event': 'sa_survey_complete'});` this will be important for setting up your trigger in Google Tag Manager. 

Now you've set up the Google Tag Manager for your survey, you'll need to head back to your Google Tag Manager account to set up the tags and triggers. Tags are the labels for particular actions and the triggers are the actions that have to occur before tagging. Check out Google Tag Manager's help pages to find out create tags and triggers.

To create a new tag in Google Tag Manager, choose Google Ads Conversion Tracking as the tag type. You'll need to fill in the Conversion ID and conversion label.

The conversion ID and conversion label can be found in Google Adwords after setting up a conversion. See Google Adwords' help guide for more details. 

Once you have set up the conversion, scroll down to tag setup, click Use Google Tag Manager and you'll find the conversion ID and conversion label.

To complete the trigger, create a new trigger and choose trigger type custom event. Now enter the custom event name as sa_survey_complete

If you are using Google Adwords, you can include Google Ads Conversion Tracking so as soon as a survey is completed, this will be recorded as a conversion. You'll find the conversion ID and conversion label in Google Ads under Tools.

You can use the preview in Google Tag Manager to check if the tag has been fired on the survey. Once the preview mode is enabled, go to your survey and it will open the Google Tag Manager at the bottom of the survey. Once you’ve clicked complete, it should show that the tag has been fired. 

This is what will be shown in Google Tag Manager when a trigger has been fired.

That's all. If you need any further help with this, don't hesitate to contact us.

Vincent is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.