Skip to main content
All CollectionsPlatform SetupCustom Setup
Passing Click Data To Custom Script
Passing Click Data To Custom Script

Not using Shopify but want to associate survey responses to click data? Here's how.

Updated over 7 months ago

If you'd like to add click data to your custom survey script you can do so by passing the customer_journey data to our script. The customer journey accepts the following:

  • first_visit

    • source

    • utm_parameters

      • source

      • medium

      • campaign

      • content

      • term

  • last_visit

    • source

    • utm_parameters

      • source

      • medium

      • campaign

      • content

      • term

Here's an example of how this could look on your order

    "order":{
"id": '200',
"total_price": 25,
"currency":"USD",
"customer_journey": {
"last_visit": {},
"first_visit": {
"source" : "direct",
"utm_parameters": {
"term": null,
"medium": "shopping",
"source": "google",
"content":"Example content",
"campaign": "Shopping"
}
}
}
}

Did this answer your question?