HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

Events

This topic describes how to track customer activity via events in Optimizely Data Platform (ODP).

Track customer activity via events.

Events Overview

// sending custom events with custom fields
ZaiusEvent* event = [ZaiusEvent eventWithEventType:@"map" action:@"explore"];
// page is a field available on any event, but primarily used for pageviews
event[@"page"] = @"map_explorer";
// where map_region is a custom field you added to events in the ODP App
event[@"map_region"] = @"North America";
[Zaius event:event];
// sending custom events with custom fields
let event = ZaiusEvent(eventType: "map", action: "explore")
// page is a field available on any event, buy primarily used for pageviews
event["page"] = "map_explorer"
// where map_region is a custom field you added to events in the Zaius App
event["map_region"] = "North America"
Zaius.event(event)

Did this page help you?