How to Target Your Survey With Segment Data
Qualaroo customers using Segment can use additional survey targeting features to display their surveys.
For example, use our Identity targeting options by calling the Segment .identify() method.
The Segment will properly set a flag Qualaroo will use to determine whether to show a survey to known, unknown, or both users visiting your page. This identifier, usually a user ID or an email address, will be saved with the survey response as metadata.
If you have Qualaroo's Premium plan, you can utilize Qualaroo's Custom Property targeting options through Segment.
There are two ways Segment will set custom properties in Qualaroo.
First, when you call .identify(), the other traits passed with the userId will be set as Custom Properties.
In Qualaroo, you can choose to show the survey based on those values.
In the above, you could choose only to target users who downloaded a guide by adding downloadedGuide=true in your Qualaroo targeting settings. When the above code is called, Segment will set the property, and the survey will fire.
Second, you may want to display a survey to a user who has taken a specific site action you're sending to Segment. To enable this feature,
- Log in to your Qualaroo account, and hover to the right of the domain name panel on the dashboard.
- Click Settings. An overlay opens.
- Enable "Send Qualaroo events and response data to Segment."
- Click Save.
Once you do that, the .track() calls Segment method will set a Qualaroo custom property. You'll need to target using these properties in your Qualaroo targeting settings, and the formatting is important.
Here are some examples to guide you:
|Segment event name
|Qualaroo custom property
|opened email optin
Further information about Segment integration can be found in this article within their help center.
That is all about setting up your survey targeting using Segment data.