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"
}
}
}
}