Optimizely - Adobe Custom Integration
We're trying to paste the Optimizely custom adobe integration script on DTM but I'm being advised that the script won't work because our DTM implementation does not use the s_code approach. Below is the documentation from Optimizely:
Add this 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):
if (window.optimizely && typeof window.optimizely.get === 'function' && window.optimizely.get("custom/adobeIntegrator")) { window.optimizely.get("custom/adobeIntegrator").assignCampaigns(s); } The timing of this code is very important. The s object must be defined so the integration can write to it, but s.t();must not be called yet. Note that the s variable is being passed as a parameter to .assignCampaigns(). It's possible your organization uses a custom s variable so be sure to pass in the appropriate object.
Any thoughts on how we might be able to fix this issue?
-Robert