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:
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?
There are many ways you can implement Adobe Analytics within DTM, and a good answer will vary / be applicable depending on which path you took. If you implemented Adobe Analytics as a Tool, have everything set to Automatic, have done no customizations, etc. then by default DTM does not instantiate the Adobe Analytics s object in the global (window) namespace, but you can still reference it within many of the custom code boxes throughout DTM. So (again, assuming you "out-of-the-boxed Adobe Analytics), below are a few solutions that shouldwork for you.
If the below solutions do not work for you, then you have a more custom AA implementation, so you will need to provide details for how exactly Adobe Analytics is setup within your DTM property.
Solution #1 - Add doPLugins (and the optimizely code) to your AA tool code config
In your Adobe Analytics Tool config, Scroll down to the Customize Page Code section, and click on the Open Editor button.