Reference
We are no longer updating this site. For user documentation, please go to User Docs. For developer documentation, please go to Developer Docs. If you have any questions or feedback, please submit a ticket.

Full Reference

Quick Reference

API
Web
iOS
Android
React Native
Zaius App
1
curl -iX POST \
2
'https://api.zaius.com/v3/events' \
3
-H 'x-api-key: example.apiKey'
4
-d '[
5
{
6
"type": "product",
7
"action": "add_to_cart",
8
"identifiers": {
9
"email": "[email protected]"
10
},
11
"data": {
12
"product_id": "123"
13
}
14
},
15
{
16
"type": "product",
17
"action": "remove_from_cart",
18
"identifiers": {
19
"email": "[email protected]"
20
},
21
"data": {
22
"product_id": "123"
23
}
24
}
25
]' \
26
-H 'Content-Type: application/json' \
27
-H 'x-api-key: example.apiKey'
Copied!
1
zaius.event("product", { action: "detail", product_id: "product-2143" });
Copied!
1
// sending custom events with custom fields
2
let event = ZaiusEvent(eventType: "map", action: "explore")
3
4
// page is a field available on any event, buy primarily used for pageviews
5
event["page"] = "map_explorer"
6
7
// where map_region is a custom field you added to events in the Zaius App
8
event["map_region"] = "North America"
9
Zaius.event(event)
Copied!
1
ZaiusEvent genericEvent = new ZaiusEvent("my_event_type")
2
.action("my_action")
3
.addField("some_other_key", "some_custom_field_value");
4
5
Zaius.sendEvent(genericEvent);
Copied!
Coming Soon
1
z.event([{
2
type: "yotpo_review",
3
action: "created",
4
identifiers: {
6
},
7
data: {
8
review_id: "12345"
9
}
10
},{
11
type: "yotpo_review",
12
action: "created",
13
identifiers: {
14
15
},
16
data: {
17
review_id: "56789"
18
}
19
}]);
Copied!