Discussions
How does "Dismiss on Page Change" work with web applications?
This setting is used to dictate how surveys should display and be dismissed with respect to your web application. It can be enabled or disabled for each of your Products within Sprig, by going to `Settings > Configure` in your dashboard and toggling the setting from the `Dismiss on Page Change` section:
- When enabled, Sprig will only show a survey if the visitor is still on the same page (URL) that the survey was triggered on. This means that a visitor navigating to another page, before the survey displays, will not see the survey.
- When disabled, Sprig will show a survey to your visitor regardless of whether or not your App's URL has changed.
Posted by Sprig about 1 year ago
How can I check if an event is triggering a survey in my development environment?
### For web surveys:
When an event is tracked through the Sprig Web SDK, we'll return a JSON payload as part of the response. Please note that the recontact waiting period is not enforced in development environments.
Inside this payload, you can check the `questions[]` key:
- An empty array denotes that the visitor is not eligible for a survey.
- If you are expecting a survey to be seen, double check the visitor ID (e.g. `Sprig.visitorID` in your console, or local storage) and ensure you meet all the event and attribute criteria on your survey.
- An array of questions denotes that the visitor was seen as eligible for a survey.
- If a time delay is set on the survey, we will then wait for that amount of time to lapse before attempting to surface the survey to your visitor.
### For mobile surveys:
When an event is tracked through the Sprig iOS or Android SDK, we'll return a JSON payload as part of the response. Please note that the recontact waiting period is not enforced in development environments.
If you are able to examine the payload, you can check the `questions[]` key, similar to the Web SDK, to see whether or not a visitor is eligible for a survey. If a survey is not appearing, please double check that you are setting the necessary events and attributes to make your testing visitor record eligible for the survey.
Posted by Sprig about 1 year ago
I have other web integrations which might overlap and conflict with Sprig. Is it possible to tell Sprig not to display a survey under certain contexts or views?
As part of tracking events through Sprig’s Web SDK, your team can define a callback passed to the `showSurveyCallback` parameter, which will be used whenever a visitor is eligible for a survey.
Your function needs to return a boolean, when true, will then allow the Sprig Web SDK to display the survey to your visitor.
Posted by Sprig about 1 year ago
Can you change the positioning of where a survey shows on screen?
On desktop web applications Sprig supports positioning surveys in all four corners of the browser window, plus centered modal. Positioning can be changed from your dashboard, through the [Look & Feel](https://app.sprig.com/settings/look-and-feel) section under Settings.
On mobile applications, the study will always be presented at the bottom of the device window.
Posted by Sprig about 1 year ago
What kind of no code events can Sprig track on websites?
Sprig supports two kinds of no code events which you can create and manage from your dashboard: Page URL, and Interactive.
Page URL events are triggered when a visitor loads a matching URL. Sprig supports different comparators so you can match any pattern of URLs from your application.
Interactive events are triggered when a visitor clicks a specific CSS element, or any element containing some matching text. Interactive events also use the same logic as Page URL events, so you can target specific pages.
Posted by Sprig about 1 year ago
Does Sprig use cookies for tracking?
Sprig does not use cookies in any capacity. Instead of cookies, Sprig uses browser local storage to track the Sprig visitor ID, and IndexedDB as part of our session replay feature.
Posted by Sprig about 1 year ago
What attributes does Sprig track by default?
For security and privacy, Sprig does not track any PII by default.
Sprig’s Web SDK tracks the following default attributes for performance, and to help segment your visitors:
- Web browser and version
- Device
- Session count
- Page URL
- Screen size
- Browser language
- Operating System and Version
Posted by Sprig about 1 year ago