Installing Connect Surveys on Headless Instances
Standard Implementations
Introduction
There are multiple ways to configure and setup headless Connect. There are two main channels it supports:
on-site
post-checkout
Both channels support multiple different modes of configuration. Either by passing query string parameters to the script or by creating meta tags inside the page header.
On Site
To display an on site survey, the system chooses from a prioritised list of surveys for the on site channel. From highest priority down, the system choses the first active survey that matches conditions and that the user is eligible for answering.
To implement on site surveys, you can add our surveys script tag to the header of the page(s) with your store Shopify domain.
Example Usage
Parameters
These query string parameters can be added to the script src.
Post Checkout
To display a post checkout survey, the system chooses from a prioritised list of surveys for the post checkout channel. From highest priority down, the system choses the first active survey that matches conditions and that the user is eligible for answering.
Post-checkout requires extra data needed for the decision making process on which survey to display to a customer. This data is used to determine which post-checkout conditions and triggers match.
If only using a simple post checkout survey without conditions you can use the same setup as the above on site section.
If you want to use any of the following conditions, you will need to either use the javascript API properties or meta tags as explained below:
Order value is at least
Order value is at most
Purchased product
Cart contents do not include
New Customers
Repeat Customers
Example Usage
Parameters
The channel parameter needs to be provided as a query string parameter to the script src.
Tags
Custom Implementations
See the link below for details on API references to support your custom implementation.
Last updated