Log event notification listener
The log event notification listener is similar to the track notification listenertrack notification listener but provides more granularity. You can use it to inspect and audit what data was sent to Optimizely in a given event batch, and when the batch was sent.
Parameters
The following table shows the information provided to the log event listener when it is triggered:
Parameter | Type | Description |
|---|---|---|
log event | Log Event | A `LogEvent` object containing a batch of conversion and decision events. Created by the `EventFactory` whenever the event processor produces a batch. For information, see the following table. |
Log Event
The LogEvent object represents the batch of decision and conversion events passed to the event dispatcher.
Object | Type | Description |
|---|---|---|
http verb *Required (non null)* | String | The HTTP verb to use when dispatching the log event. Can be `GET` or `POST`. |
url\ *Required (non null)* | String | URL to dispatch log event to. |
params\ *Required (non null)* | Dict | The event batch. Contains all events in the batch, including a list of visitors and their associated `UserEvent` objects. |
headers | Dict | Request headers. |
Examples
For code examples, see the following SDK documentation on notification listeners:
- Android SDKAndroid SDK
- C# SDKC# SDK
- Flutter SDKFlutter SDK
- Go SDKGo SDK
- Java SDKJava SDK
- JavaScript SDKJavaScript SDK – SDK versions 6.0.0 and later.
- JavaScript (Browser) SDKJavaScript (Browser) SDK – SDK versions 5.3.5 and earlier.
- JavaScript (Node) SDKJavaScript (Node) SDK – SDK versions 5.3.5 and earlier.
- PHP SDKPHP SDK
- React SDKReact SDK
- React Native SDKReact Native SDK
- Ruby SDKRuby SDK
- Python SDKPython SDK
- Swift SDKSwift SDK