Running survey on my website: installing and testing tracking code
When and why you should install Survicate tracking code:
Website surveys allow you to collect feedback from your visitors directly, understand their behavior and motivations and find out how they respond to your content or offer - they help you understand why visitors behave as they do.
Having doubts? Putting the code on the website is very easy and totally safe.
Install tracking code
- Where to find the Tracking code?
Go to Settings > Tracking code
- How to put it on the website? 🔧
- If someone else is managing your website, you can send them an email with instruction
- If you use Google Tag Manager - you can use out one-click installation available in your account or find Survicate plug-in inside GTM
- Wordpress users - you can use the our plugin 🔌
- You can also install the code via Segment integration
None of the above? See instructions below 👇
Manual tracking code installation
1. Copy the tracking code:
In the Tracking Code page, copy Survicate tracking code you can find under Manual Installation. The first and the last line of code are just comments, and they won’t impact the execution at all.
2. Paste the tracking code to your website
You need to paste it into the code of your website pages. Our suggestion is to add it to your website template so that it automatically goes into each page of your site. The general recommendation is to insert the tracking code at the bottom of the <body> part.
3. Your Survicate Tracking Code is now installed.
Once you have added the Survicate Tracking Code to your site, you will need to wait a few minutes for your surveys to appear.
Installing ID capture
ID tracking enables you to associate respondent ID in Survicate with user ID they have in your app. To track your app's user ID, you have to install additional tracking code on your website, right before the standard Survicate tracking code.
To find this code, go to Settings > Tracking Code and scroll down to Identify your respondents section. Modify the '
user ID' and paste the code on your page.
Check if your code is installed properly
In order to check it you need to do two things:
- Open your website in the browser and view the Console
There are different shortcuts for every browser, below you will find a list of most popular ones:
Chrome: Ctrl + Shift + J (for Windows) Cmd + Alt + J (for Mac)
Safari: Alt + Cmd + C
Firefox: Ctrl+Shift+J (for Windows) Cmd + Shift + J (for Mac)
Opera: Ctrl + Shift + I
- Write _svc in the Console and look for outcome
As soon as you have console opened, you will see place to input your code:
Paste the code below and click Enter
If the code is installed properly you should receive a message with your workspaceKey
When you see the red error message, it means that you need to try installing it once again.
💬 If you have any questions or need help installing Survicate tracking code on your website, please feel free to reach out to our team. We can send suitable content over or arrange a 1:1 success call to help you out in no time. 📞