:
- “Standard” Custom Data
- “Non standard” Custom data
{
"meta": {
"status": "success"
},
"data": {
"id": 101097152,
"unique_id": "912265878d8bf0ffa2b31099aaaf8daf60a2837777136",
"external_id": "user-aaa-0001",
"lastname": "DUPONT",
"firstname": "Jean",
"address": "",
"city": "Nantes",
"zip": "",
"country": "",
"phone": "",
"email": "",
"browser": "Chrome 90",
"created_at": "2021-05-17 16:53:56",
"website_id": 7114,
"_link": "/visitor/101097152"
}
}
Option 2: get the "non-standard" custom data:
Here is an example of Custom Data in the code.
<script type="text/javascript">
//<![CDATA[
window.idzCustomData = {
"computertype": "Mac Book air M1",
"website": "websitename",
"page_name": "welcomepage",
"comma": 123.345,
"value number": 12,
"booleen": true
};
//]]>
</script>
⚠️ If you want to retrieve "non-standard" custom data (those that don't populate the visitor record data) via the API, you need to use the GraphQL API's visitorConversationCustomData query.
You will need to fill in the following filter field:
conversationId: value type "e6f2c877-0887-49c1-9ad3-74b1684d0382".
You must also select the custom data types (values):
- StringValue: string of any type. Characterized by " in the code (ex: "websitename").
- IntValue(integer): integer number.
- FloatValue: number with decimal (without limit after the . of decimal).
- BooleanValue: binary value type true/false.
Select the key and its value.