Highlighted

Insert Optimizely/Adobe integration code into my appMeasurment code via JS extension

Silver Contributor
Silver Contributor

Hi.  I'm trying to insert the following optmizely-Adobe integration code into my appMeasurement.js code so that it executes prior to the actual Adobe tracking call:

 

window.optimizely = window.optimizely || [];
window.optimizely.push("activateSiteCatalyst");

 

When I add this code via a JS extension, it doesn't execute.  Any pointers on how to get these two lines incorporated into appMeasurement?

 

Thanks!

Kevin Bridges
2 REPLIES 2
Highlighted

Insert Optimizely/Adobe integration code into my appMeasurment code via JS extension

Tealium Expert
Tealium Expert

Hi @kbridges - take a look at this item, scroll way down to the part about Extensions.   See the part about "DoPlugins".  

 

https://community.tealiumiq.com/t5/Tags/Adobe-Analytics-SiteCatalyst-Tag/ta-p/664

 

Have you scoped your new extension to the Adobe App Measurement tag? I think that's the key item here.  That will make your code run when the Adobe tag runs but before the Adobe tracker fires.

 

Be sure to see the docs on debugging 

https://community.tealiumiq.com/t5/iQ-Tag-Management/Video-Basic-Debugging-How-to-Check-Your-Tags/ta...

and https://community.tealiumiq.com/t5/JavaScript-utag-js/Console-Debug-Output/ta-p/14328

 

Let us know how things go....

Highlighted

Insert Optimizely/Adobe integration code into my appMeasurment code via JS extension

Silver Contributor
Silver Contributor

Thanks for the feedback.  After looking at the issue more closely, the extension code was working properly.  My issue was actually related to changes that were introduced in Optimizely X that alters tracking behavior, which I had mistaken for an extension problem.  For waht it's worth, Optimizely X now does an independent Adobe tracking call rather than merging it's variables into the exisitng pageview call (like Optimizely Classic does).

Kevin Bridges