TrackAction

fun TrackAction(analyticsAction: Event.Action, analyticsInterface: AnylyticsInterface = LocalAnylyticsInterface.current)

A Composable function that tracks user actions using an Event.Action object.

This function triggers analytics tracking when a user performs an action, using a complete Event.Action object with context data.

Parameters

analyticsAction

The Event.Action object containing action name and additional context

analyticsInterface

The analytics interface to use for tracking, defaults to the current LocalAnylyticsInterface


fun TrackAction(actionName: String, analyticsInterface: AnylyticsInterface = LocalAnylyticsInterface.current)

A Composable function that tracks user actions using just an action name.

This function provides a simplified way to track user actions when no additional context data is needed.

Parameters

actionName

The name of the action being performed

analyticsInterface

The analytics interface to use for tracking, defaults to the current LocalAnylyticsInterface