This integration is used to track your Optimizely Performance Edge campaigns and experiments in Adobe Analytics using a pre-defined list variable.
For additional background on the design of this solution, please see WebX Adobe ListVar integration
Add the listvar.project.js code to your Project JavaScript. Set the LISTVAR
variable to your desired list variable.
Add the following JavaScript code to your Adobe Analytics s_code.js
file in the plug-ins section (or directly on your page after the s_code.js
loads, but before the Adobe Analytics s.t();
call is made):
// `s` must reference your primary Adobe variable to which evars and listvars get attached.
try {
window.OptimizelyEdgeIntegrators.get('adobe').assignCampaigns(s);
} catch(err) {
console.warn('[Optimizely] Optimizely Edge Integrator failed to assign Adobe Analytics campaigns with error' + err);
}