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.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
API Reference

jQuery

The jQuery function returns a jQuery object if jQuery is bundled in Optimizely Web Experimentation.

Syntax

jquery = window["optimizely"].get("jquery");

Parameters

Parameter and TypeChild AttributeDescription
jquery
string
N/AThe argument indicating to get the jQuery object. Required.

Return value

Parameter and TypeChild AttributeDescription
jQueryObjectN/AThe jQuery object. Learn more about the jQuery API.

Example Call

jquery = window["optimizely"].get("jquery");

Description

Optimizely Web Experimentation, on its own, does not rely on jQuery. You only need to include jQuery in your project if you want to use it in implementing your campaigns and if you need to deliver it via the Optimizely Web Experimentation snippet itself. You can find the option in Project Settings.