Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In

Hold events

Instruct the Optimizely Web Experimentation snippet to hold and enqueue events.

Syntax

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

Parameters

Parameter and TypeChild AttributeDescription
holdEvents
HoldEventsObject
-An object with the type field set to holdEvents. The other fields are the function arguments. Required.
type
string
Child attribute of type HoldEventsObjectThe argument indicating that you're using the holdEvents function. Required.

Example Call

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

Description

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