Expand my Community achievements bar.

SOLVED

Adobe Target not Working

Avatar

Level 2

I am working on builing couple of components using Adobe Target, but it is acting weird, especially, with JS code. All changes I am doing, I can see them in Target, but not when I am using QA links. 

 

Any thoughts?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 5

Hi @SoufianeLa,

Sorry to hear you are having issues. This could be due to several reasons, but here are the ones I believe to be the most common:

  1. Caching Issues: Sometimes, browsers cache the old page version, preventing new changes from appearing.
    Solution: Clear your browser cache or use an incognito/private browsing window.
  2. JavaScript Errors: If your JS code contains an error, it might work in the Target editor but fail on the actual page.
    Solution: Open the browser’s developer console to check for JavaScript errors. Ensure your code is error-free and compatible with the site’s existing scripts.
  3. Order of Scripts Loading: Your JS code might execute before the necessary elements are available in the DOM.
    Solution: Wrap your JS code in a DOMContentLoaded or window.onload event listener to ensure it runs at the right time.
  4. Adobe Target Libraries Not Loading: Sometimes, target libraries can be blocked on your browser. It can sometimes relate to geo-location or consent settings.
    Solution: Ensure that the Adobe Target libraries are correctly implemented on your environment and are not being blocked.

 

I hope that helps!

 

Matthew Ravlich | ACG Digital



View solution in original post

2 Replies

Avatar

Correct answer by
Level 5

Hi @SoufianeLa,

Sorry to hear you are having issues. This could be due to several reasons, but here are the ones I believe to be the most common:

  1. Caching Issues: Sometimes, browsers cache the old page version, preventing new changes from appearing.
    Solution: Clear your browser cache or use an incognito/private browsing window.
  2. JavaScript Errors: If your JS code contains an error, it might work in the Target editor but fail on the actual page.
    Solution: Open the browser’s developer console to check for JavaScript errors. Ensure your code is error-free and compatible with the site’s existing scripts.
  3. Order of Scripts Loading: Your JS code might execute before the necessary elements are available in the DOM.
    Solution: Wrap your JS code in a DOMContentLoaded or window.onload event listener to ensure it runs at the right time.
  4. Adobe Target Libraries Not Loading: Sometimes, target libraries can be blocked on your browser. It can sometimes relate to geo-location or consent settings.
    Solution: Ensure that the Adobe Target libraries are correctly implemented on your environment and are not being blocked.

 

I hope that helps!

 

Matthew Ravlich | ACG Digital



Avatar

Level 8

@SoufianeLa  consider using Adobe Experience debugger chrome extension and debug  for network call and console error in regards to Target