How do I make Adobe doPlugins extensions load *before* the main appMeasurement code?

Silver Contributor
Silver Contributor

I have a custom 'plugins' extension, containing the plugins, and a 'doPlugins' extension, containing the s_doPlugins code, as per the instructions here and I've scoped them to the SiteCatalyst appMeasurement tag, but they are loading *after* the main appMeasurement code, so it doesn't work.

How can I make them load first? Does the appMeasurement tag need to be synchronous? 

 

2 REPLIES 2

How do I make Adobe doPlugins extensions load *before* the main appMeasurement code?

Employee Emeritus

Hi @aliskink,

What is it that you're trying to do within the extension?  As I understand it, doPlugins are supposed to run after the main library, but before the request is sent (as a data manipulation callback for example).  If you want to run custom JS before the library, I believe you can use a normal javascript code extension.

 

Thanks,

Do

How do I make Adobe doPlugins extensions load *before* the main appMeasurement code?

Silver Contributor
Silver Contributor

Thanks @do_pham - The problem turned out to be a local code error (undeclared variable) and you're right - the order *should* be tag > custom plugins code > do_plugins, so once I'd fixed that bug it worked perfectly.

 

Public