Skip to main content
Important: Please ensure your CMP configuration includes new Vendor ID 1469 for 1st Party data tracking. Additionally, include Vendor ID 301 if cookie sync is enabled. Learn more
The setEventProperties method is used to record specific user actions or events in your iOS app. This is essential for understanding user behavior, measuring feature adoption, and building comprehensive user journeys.

Syntax

Parameters

Usage Examples

Set User Event

The payload with event name that passed to the function:
Detailed page properties in payload

Set User Event with properties

The payload with event name and properties that passed to the function:
Detailed page properties in payload

Set Event properties with callbacks

You can also set event properties with Callback function as shown below. The data parameter is an object that contains status and message which helps to debug the status of the function call.
NoteIf page properties are not defined, then by default, no page property is available on an event payload.

Event Naming Best Practices

Avoid These Patterns

Last modified on June 25, 2026