- Sprig currently does not appear as a Source in Segment, but you can set an HTTP endpoint as a source in Segment’s workspace to receive Sprig’s data as a stream. In Segment, click Connections, then click Sources.
- Search for HTTP in the Sources Catalog and click Add Source.
- Next, type in a Source name. As well as project-specific labels, consider incorporating the Sprig production and development environments in your naming convention.
- Type in the URL of your website and click Add Source.
- Click Copy Snippet and paste the code so that it is referenced in the section of all the pages that can display Studies.
- Click Settings and API Keys.
- Click Copy next to Write Key.
- In the Sprig app, click Integrations > Segment Stream.
- Click Add Key and paste the Write Key into the field.
- Click Save.
- Returning to the Source you just created in the Segment app, click Overview > Add Destination and follow the steps for creating a destination where you'd like to send study response data.
See our documentation to learn more about how to send data out of Sprig via Segment Stream.