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 month 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 month ago
How do older SDK versions deployed on an application, handle new features as they are released?
As new features such as new question types are rolled out, these changes may require an updated version of the SDK on your application.
Sprig tracks the visitor’s current SDK version, as part of determining whether or not they are eligible to see a survey. Visitors on an older version of the SDK will be unable to receive or respond to any surveys requiring a newer version, but are still eligible to receive any surveys which they meet all criteria for.
The dashboard will warn you of potential SDK compatibilities when creating a survey, and will show you the expected percentage of visitors who can receive a survey based on the questions and features you are using.
Posted by Sprig 2 months ago
Can we self-host the Sprig SDK on our servers?
Sprig offers a package through NPM or Yarn, which allows engineers to bundle and host a copy of the Sprig Web SDK as part of your web application. This allows your engineering team to use a static version of Sprig, and receive new updates and features as needed.
Posted by Sprig 2 months ago
Once Sprig is set up, what additional engineering work is needed to maintain the integration in our application?
Once an engineering team has set up Sprig on their application, to track events and attributes, there is no additional work needed to create or launch surveys. Surveys can be launched and maintained solely from within your Sprig dashboard.
Sprig often releases new features and new survey question types. Engineering teams can update the Sprig SDK version used in their applications to take advantage of those upgrades.
As teams find expanded or new use cases for collecting feedback, engineering teams may be needed to track new visitor events and attributes to qualify visitors into those surveys.
Posted by Sprig 2 months ago