Expand my Community achievements bar.

Join us WEDNESDAY, 6/7/23 @8am PT for the next Adobe Target Community Q&A Coffee Break! Bill Ozinga, John Mosbaugh, Justin Patrick, and Eric Thibeault will be taking all of your Target Recommendations questions in the chat ~ learn more and register today!

Custom Code to Execute on all the pages of a domain Adobe Target

Avatar

Level 4

Hi All,

I am completely new to Target. I have a custom jQuery code which has some conditions based on some dataLayer objects (Using data elements in DTM). I would like to push this code using Adobe Target to all the pages so that wherever this custom code condition gets satisfies, a function will be called internally which is there within the custom code.

Please guide me on how to do this and which activity would suit best for this.

Thanks

This is how the code may look like...

if ((_satellite.getVar('ABC') == 'blog') &&  (_satellite.getVar('DEF') == 'page'))

{

function sun(){

--------

----------

--------

}

else

{

return false;

}

0 Replies