Skip to main content

trackAction(analytics:)

Introduction

The trackAction(analytics:) method allows the SDK to notify your app of user actions for analytics tracking purposes. This method provides a dictionary containing key-value pairs that represent the details of the user action. While the specifics of the analytics data are still to be determined (TBD), this method serves as a hook for integrating your own analytics or logging framework to monitor user interactions.

Parameters

ParameterTypeDescriptionExample
analytics[String: String]A dictionary containing analytics data related to the user action.["action": "clip_started", "index": "0"]

Code Example

// Example analytics data for tracking a user action
let analyticsData: [String: String] = [
"action": "clip_started",
"index": "0",
"timestamp": "\(Date().timeIntervalSince1970)"
]

// Notify the SDK about the user action for analytics tracking.
delegate.trackAction(analytics: analyticsData)