Adding Google Analytics to your survey

Google Analytics is a web service provided by Google that provides tools to help track and report on your website traffic.

This tutorial describes how to connect your survey to Google’s Analytics service. Please note that this tutorial assumes that you already have a Google Analytics account set up, and have an online survey that has already been created and added to your Snap Online account.

Step 1: Create a new property in Google Analytics

  1. Login to your Google Analytics account
  2. Click Admin and create a new property
  3. Fill in the details and click OK
  4. Add a Web data stream
  5. Enter the URL for the survey, this can be found by doing the following:
    • Login to your Snap Online account
    • Click on the survey to open the Summary page
    • Select the Collect tab
    • Publish the survey, if it has not already been published online
    • Click Copy to clipboard to copy the survey URL and paste. Please note that the survey URL should not be changed after this.
  6. Enter a name for the data stream
  7. Select your measurements
  8. Click Create Stream
  9. This creates a Global Site Tag that can be added to your survey

Step 2: Adding the Global Site Tag to your survey

  1. In Survey Overview select the online mode 5.OnlineSurveysIcon.png and open the online survey.
  2. The Global Site Tag needs to be inserted into a visible variable at the very top of the survey. We recommend using the Title variable. If it is not at the top click on it to select it then hold down CTRL on your keyboard and press the up arrow to move it to the top. Alternatively you could create a new Instruction style variable at the top of the survey.
  3. Click the variable then select Insert and HTML Field. This opens the New HTML Field dialog.
  1. In the New HTML Field dialog, select Custom HTML then paste the Global Site Tag from step 1 into the HTML text box:
GlobalSiteTagHTML.png
  1. Click OK
  2. The HTML code is displayed in your Title, as shown below. Please note that this code will not be visible to participants.
  1. Click Save SaveIcon.png to save the changes.
  2. Click Upload UploadIcon.png to pass the changes to the survey in Snap Online.
  3. Open the survey in Snap Online
  4. Click into the Collect tab
  5. Publish the latest version. If the survey is live you will need to pause interviewing first to do this.
  1. Use the live survey link to start the survey and submit a test. The preview will not work
  2. Check your Google Analytics account to see if it has registered. Please note that it might take a few minutes to update.
Contents