Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

The availability of features may depend on your plan type. Contact your Customer Success Manager if you have any questions.

Thanks to visit codestin.com
Credit goes to docs.developers.optimizely.com

Dev guideRecipesAPI ReferenceChangelog
Dev guideAPI ReferenceRecipesChangelogUser GuideGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev guide

Log event notification listener

Describes the log event notification listener, which lets you know what data was sent to Optimizely Feature Experimentation in a given event batch, and when the batch was sent in Optimizely Feature Experimentation.

The log event notification listener is similar to the track notification listener but provides more granularity. It lets you know what data was sent to Optimizely in a given event batch, and when the batch was sent. For information about event batching, see the corresponding documentation for the Feature Experimentation SDK language. You can use this notification listener to inspect and audit what data you send to Optimizely.

Parameters

The following table shows the information provided to the log event listener when it is triggered:

Parameter

Type

Description

log event

Log Event

Whenever the event processor produces a batch of events, a LogEvent object is created using the EventFactory.

Contains a batch of conversion and decision events. For more information, see the following table.

Log Event

The LogEvent object is created using EventFactory. It represents the batch of decision and conversion events that have been passed to the event dispatcher to be sent to the Optimizely Feature Experimentation backend.

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

Event Batch. Contains the information regarding every event which is batched, including a list of visitors which contains UserEvent.

headers

Dict

Request headers.

Examples

For code examples, see the following SDK documentation on notification listeners: