Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideProduct feedbackGitHubNuGetDev CommunitySubmit a ticketLog In

Send events

Instruct the Optimizely Web Experimentation snippet to release queued events.

Syntax

window["optimizely"].push(sendEvents);

Parameters

Parameter and TypeChild AttributeDescription
sendEvents
SendEventsObject
N/AAn object with the type field set to sendEvents. The other fields are the function arguments. Required.
type
string
Child attribute of type SendEventsObjectThe argument indicating that you're using the sendEvents function. Required.

Example Call

window["optimizely"].push({
  "type": "sendEvents"
});

Description

Use in conjunction with holdEvents for granular control over the timing of when the Optimizely Web Experimentation snippet sends events to the logging endpoint.