Expand my Community achievements bar.

JOIN US Next Wednesday, 12/6/23 @ 8am PT for the next Community Q&A Coffee Break! Bring your Machine Learning, AI Reporting & Analysis Questions to the chat. Experts Brent Kostak, Cristinel Anastasoaie, & Drew Burns of the Adobe Target Product Team will be providing deep insights and useful tips
SOLVED

scripts

Avatar

Level 2

Is it possible to create a profile script to qualify users for a campaign if an HTML DOM is present on the page?

 

Typically the script to get an element id would be:

var x = document.getElementById("myAnchor").id;

Has anyone done something where they check if an id is present and based an audience off that?  

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi ,

Profile script uses Server side "Javascript Rhino Engine" Hence Scripts are executed on back end and there is no access to DOM elements on the page.

Thanks & Regards

Parit Mittal

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi ,

Profile script uses Server side "Javascript Rhino Engine" Hence Scripts are executed on back end and there is no access to DOM elements on the page.

Thanks & Regards

Parit Mittal

Avatar

Level 3

does it mean its not possible?

We can not launch an activity based on the existence of the DOM element?