Home » Data acquisition » Enriching Surveys with User Data » Surveys Displayed on the Website

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:

  1. 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

  2. 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:

  3. 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.

  4. 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.

2025 ©
YourCX. All rights reserved
Design:
Proformat