sendAnalytic

suspend fun sendAnalytic(analyticsEvent: AnalyticEvent)

Sends the provided analytics data to the backend.

This function:

  • Switches to Dispatchers.IO before performing the network call.

  • Throws an exception if the underlying send operation fails.

Parameters

analyticsEvent

The analytics payload to be sent.