ID capture is a feature which enables you to associate respondent IDs in Survicate with user IDs they have in your app. What does it mean for you?
- You can create audience segments of logged-in users and customers or decide to target only those visitors whose identity is unknown
- User ID will be displayed in CSV and XLS reports in the same row as all respondent’s data and answers – thanks to that you can learn who gave what answers to your survey
Installing ID capture
In order to track your app's user ID, you have to install additional tracking code on your website, right before the standard Survicate tracking code. Go to Settings -> Tracking Code and scroll down to "Track logged-in users of your application or shop" section. Modify the 'user ID' part and paste the code on your page.
Caution! This code has to be modified by a developer in order to work properly!
If you installed Survicate using our platform-specific solutions (Google Tag Manager, WordPress, Shopify and more), look for a field for ID tracking and further instructions in settings of your plugin or tag.
Display survey only to logged-in visitor
Once you have the logged-in tracking code installed you can start displaying survey only to those visitors, who match your user ID variable. To create such a segment go to Survey -> Edit -> Who should see the survey and create new segment. Once in there go to "How they use your website" and mark "They have known identity" as active and save the segment.
Remember! You have to enable the segment in order to display the survey properly! Also disable all segments which exclude each other.