Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

As we're quickly taking off into 2023, our Adobe Target Product teams want to hear your top interest areas for learning opportunities and value realization with Adobe Target ~ to fill out the survey with your suggestions, experience, and feedback, follow the link to the right.

Exclude from Activity after page loads


Level 2

Is there a way to exclude a visitor from an activity after a page loads?  I have this scenario:

- On initial load I have body class ="classA"

- After about a second, the page gets updated with body class "ClassB" added. 

Is there a way for me to exclude this visitor from the activity once "ClassB" is added?

1 Reply


Level 4

Target can't interact with the DOM to determine what HTML selector is present. You'd have to pass a parameter through the mbox to be able to Target. You could use a simple javascript function to check the DOM if the class exists and if it does pass a parameter into the mbox. Then you could build and audience with the class value.

Another option would be to insert the javascript in your offer that would look at the DOM, once loaded, and then call another mbox in the offer.

If you have more details of what you are attempting to do. Their might be some other solutions.