Two tags with opposite rule firing at the same time

Bronze Contributor
Bronze Contributor
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

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?

Two tags with opposite rule firing at the same time

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

Two tags with opposite rule firing at the same time

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

Two tags with opposite rule firing at the same time

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