Client SDKs

Custom Events

Track custom events with the iOS SDK

Track app-specific events with arbitrary properties.

Basic Usage

AudienceLabSDK.sendCustomEvent(
    name: "level_complete",
    params: [
        "level": 42,
        "score": 15200,
        "stars": 3
    ]
)

AudienceLabSDK.sendCustomEvent(
    name: "achievement_unlocked",
    params: ["achievement_id": "first_win"],
    dedupeKey: "achievement_first_win_user123"
)

Parameters

Prop

Type

Best Practices

  • Use consistent event names for reliable filtering
  • Include relevant context in params for analytics segmentation
  • Use dedupeKey for one-time events when needed