Expand my Community achievements bar.

Join us for an upcoming in-person Adobe Target Skill Builders event ~~> We're hosting these live learning opportunities to equip you with the knowledge and skills to leverage Target successfully. Learn more to see if we'll be coming to a city near you!
SOLVED

AB Test Custom Code Not Showing in Preview or Live

Avatar

Level 1

I created an AB test and created a modal to appear as visitors first enter site on homepage using the code editor. The variations appear as they should in the editor and the browse function, but do not appear in the preview links or live on the site when the test is active. I recreated the test in a new activity and was more specific on the audience, but the variations still do not appear in the preview or live. Is this an mbox issue, a coding on the site issue, or a code editor issue?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi Alex,

It looks like you are trying to load Target on that page with Adobe's DTM; however, your script reference to DTM is returning a 404 error. Consequently, Target is not loading on this page. Which explains your issue of never getting into a test via preview links or otherwise. Please check your DTM tag on the page. You can find it by looking for the script pointing to "//assets.adobedtm.com/...". If you can update that so it correctly points to your DTM instance, and verify Target is implemented via DTM you should start seeing your test with the preview links.

View solution in original post

6 Replies

Avatar

Employee Advisor

Hi Alex,

Hard to say exactly what might be going on, I've seen varying cases. Here's what I'd check:

  1. Can you see the expected code returned in the mbox request call? View it in the network tab of the dev tool for your browser. Chrome provides a "preview" mode for looking at response bodies. This is nice for JSON responses. Do you see the custom code you added in the test coming back to the page?
  2. If the code isn't coming back, then it's possibly a preview link issue. Are your preview links for the correct experience? Try to "renew" the preview links and check again.
  3. If it is coming back, I'd check your custom code. If it's JS then you can run it in the console of the dev tool to verify it works on the page.

Hope that helps. Let us know if you have additional details.

Avatar

Level 1

I checked the dev tool and couldn't see the mbox or the custom code, and I performed this action with the test activated. 

I tried refreshing the preview links and they are still not showing the test.

I tried running a more simple test with rearranging some menu bar buttons and that is not appearing either.

Is this an issue with the Adobe Target code embedded on to the site?

Avatar

Employee Advisor

Okay, if you aren't seeing the mbox request fired from the page (a call to *.tt.omtrdc.net/) then it is likely an implementation issue. If you add "?mboxDebug=1" to the end of your URL and reload the page you should get a pop up (if using mbox.js) or console logs (if using at.js) are you getting any error message there?

If you are able to share the URL I'm happy to take a look at it to provide any additional suggestions.

Avatar

Level 1

I cannot see the the mbox request nor the popup error message when adding the debug to my URL.  I the website URL is: http://www.mfgtechshow.com/mts17/public/enter.aspx

Avatar

Correct answer by
Employee Advisor

Hi Alex,

It looks like you are trying to load Target on that page with Adobe's DTM; however, your script reference to DTM is returning a 404 error. Consequently, Target is not loading on this page. Which explains your issue of never getting into a test via preview links or otherwise. Please check your DTM tag on the page. You can find it by looking for the script pointing to "//assets.adobedtm.com/...". If you can update that so it correctly points to your DTM instance, and verify Target is implemented via DTM you should start seeing your test with the preview links.

Avatar

Level 10

Hi Alex,

I hope the above inputs from Ryan helps to resolve the issue. If not. Please do let us know so that we can further help you with the same.

Thanks & Regards

Parit Mittal