Can I set an eVar in one rule and use it in another rule
Can I set an eVar in one rule and use it in another rule?
Rule 1:
set eVar1 = something
Rule 2:
if (eVar1 = something) {
return true
} else {
return false
}
How do I do this?
Can I set an eVar in one rule and use it in another rule?
Rule 1:
set eVar1 = something
Rule 2:
if (eVar1 = something) {
return true
} else {
return false
}
How do I do this?
Or, are you talking about in Launch? Actually tagging the site based on values that have been set?
This is actually easy, but you wouldn't do it at the "eVar" level, but at the "Data Element" level...
Data Element "X"
set the value to something
Data Element "Y"
(Custom Code)
var myVariable = false;
if (_satellite.getVar('X') === "something"){
myVariable = true;
}
return myVariable;
I just shortened the code by setting the default value to false, so I didn't need all the "else" code.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.