scripts

Avatar

Avatar

melissae6854041

Avatar

melissae6854041

melissae6854041

09-05-2016

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?  

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

ParitMittal

Avatar

ParitMittal

ParitMittal

15-05-2016

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

Answers (1)

Answers (1)

Avatar

Avatar

sabahatu1546489

Avatar

sabahatu1546489

sabahatu1546489

20-09-2017

does it mean its not possible?

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