Highlighted

Two tags with opposite rule firing at the same time

Not applicable
I want to fire tags for a vendor distinguishing the client in new and returning. So this is what I have done: - create two tags: one is fired when the value of a cookie is "firstpurchase", another when the value of a cookie is not "firstpurchase"; - create a JS extension that creates the cookie, and fire it in a pre-loader mode If I understand correctly, the JS is executed, so the cookie is created/modified, and then the load rule of the tags is evaluated. In this case, only one tag of the two must be fired. Instead I find that both tags are fired. Thank you Alessandro
4 REPLIES 4
Highlighted

Two tags with opposite rule firing at the same time

Employee Emeritus
Hi Alessandro, In abstract what you've laid out should work but we would need a little more detail to answer your question properly. So if I may, - What tag are you trying to fire for first-time purchasers? - What tag are you trying to fire for return-purchasers? - What logic are you using when setting your cookie in the Pre-Loader extension (code example would be helpful)? - What logic are you using for your load rules?
Highlighted

Two tags with opposite rule firing at the same time

Employee Emeritus
I might also ask for screenshots of both loadrules.
Highlighted

Two tags with opposite rule firing at the same time

Not applicable
Solved thanks! There was a silly mistake in a variavble declaration. Thank you for the quick feedback and support. Alessandro
Highlighted

Two tags with opposite rule firing at the same time

Employee Emeritus
Excellent Allesandro -- glad that you were able to sort it out!