Surveys Displayed on the Website
For surveys shown directly on the website (e.g., widgets, pop-ups, iframes), segment data can be passed at the moment the survey invitation or the survey itself is loaded.
Most commonly used methods:
Via dataLayer or GTM (Google Tag Manager)
If the data is available in the dataLayer, it can be easily read and passed to YourCX as variables (segments).
Examples: client type (B2B/B2C), logged in/logged out.
- Single page
- Entire visit
- 180 days – user-level data- Via JavaScript events
During user interactions on the site (e.g., order completion, section change in a SPA), events can be sent to YourCX containing additional information about the user or session. Parameters can be passed at any time, with the following visibility scope:
Reading data from the page URL
YourCX can automatically extract data from the URL, such as campaign parameters (utm_source, utm_medium, campaign) or transaction IDs. This is useful for campaign-related surveys.
Passing data during survey invocation
When triggering a survey manually (e.g., on click or after completing a process), you can add extra parameters to the survey call. These parameters will be sent along with the user’s response.