Expand my Community achievements bar.

SOLVED

Javascript code injected not displaying

Avatar

Level 2

Hello!

I am new using adobe target. I am doing a Test AB. Experience A is the control (default Page) and Experience B is what I want to change. I do not have access to the new Librarie so I wrote an extra code to inject it.

 

When I inject my code in the console I can see the changes on the website. When I inject the code in Adobe Target I can see it in Edict Activity (where I write my new code in the custom code) and in the URL given by Activity QA. 

 

When I change the Test status to Active,  I can still see it in Edict Activity and Activity QA. But It is not displaying when I enter into my regular url (like an user would do it)

 

Anyone knows what can I do? What could be my error?

 

 

 

Thank You!!! 

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hey miguel,

Check in response token whether you are falling in exp A or exp B (on live URL)

If you are falling into exp A you will not see any changes as it's an default experience.

If you are falling into experience B and still not able to see any changes, there might be some issues with code. As target library might getting fired before the element which you are trying to edit. Which is causing failure. 

You can try putting ur code in setTimeout() or setInterval() function which may help you to work this out

View solution in original post

6 Replies

Avatar

Correct answer by
Employee Advisor

Hey miguel,

Check in response token whether you are falling in exp A or exp B (on live URL)

If you are falling into exp A you will not see any changes as it's an default experience.

If you are falling into experience B and still not able to see any changes, there might be some issues with code. As target library might getting fired before the element which you are trying to edit. Which is causing failure. 

You can try putting ur code in setTimeout() or setInterval() function which may help you to work this out

Avatar

Level 2
We put the traffic to 100% to test B (Where the changes are)

Avatar

Employee Advisor
In case when you try to convert AB into XT by converting experience B to 100% it takes lot of time to convert all traffic into exp B maybe @MihneaD would able to explain more in detail about it

Avatar

Employee Advisor
Also try putting your code into setTimeout() function

Avatar

Administrator

Hi @miguelb82821298

 

Our next Adobe Target Skill Builder Webinar is right around the corner on May 5th, and will be presented by Adobe Target Product Management on migrating Adobe Target’s mbox.js to At.js. Check out this community discussion to register today. Hope you can make it!
 
Warmly,
Amelia