enqueuePixel

abstract fun enqueuePixel(pixelName: String, parameters: Map<String, String>, encodedParameters: Map<String, String>): Completable

Sends a pixel with the specified name and parameters. Unlike the sendPixel() method, this method also persists the pixel in the local database, allowing it to be retried in case of network issues or other failures.

This method is safe to call from any thread, as the operation does not start until the returned Completable is subscribed to.

Parameters

pixelName

The name of the pixel event to be sent.

parameters

A map of parameters to be included with the pixel event. These parameters are URL-encoded before being sent.

encodedParameters

A map of parameters that are already URL-encoded. Use this when the parameters are pre-encoded.