Audience Information via JS | Community
Skip to main content
April 17, 2025
Question

Audience Information via JS

  • April 17, 2025
  • 2 replies
  • 426 views

Does anyone know a way to get the audience information of a running test in the Chrome console using javascript.

 

What I want to be able to figure out is what criteria were met in the audience for the test to trigger. This isn't for debugging but going to be used for tagging information. The test is currently replacing some analytics tags and the only place I can see to find the information that is being lost is in the audience but I don't know how to get that audience information using Javascript.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

RaghavAggarwal
Level 2
April 21, 2025

Hi @asher_trager 

 

Adobe Target doesn’t directly expose audience information through JavaScript in the console. But you can implement custom logic to capture and store the necessary audience data, making it accessible in the console or for further tracking/tagging. Using localStorage, sessionStorage, or cookies will give you a way to persist the information across sessions.

Level 4
April 24, 2025

HI @asher_trager ,

 

To get all the audience-related information for a running AT activity using JS, first load the page where the activity is expected to trigger. Open the Chrome network tab and inspect the Target network response to identify the activity ID, experience name, and other metadata.

 

Since Adobe Target doesn’t expose audience logic directly, maintain a separate mapping between activity IDs and their associated audience names for reference. If your implementation uses targetPageParamsAll(), you can extract audience-related parameters directly through JavaScript to see which audience was matched.

 

Let me know if it works or you need more help.

Thanks.