- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
02-02-2022 02:15 AM
02-07-2022 02:42 AM
The best way to prevent a tag from firing would be to adjust the loadrules to only be met for specific events.
Typically you would only have a "view" event fire once per page, there are some exceptions - but it may be worth confirming if you want to be using "utag.view" instead of "utag.link"
If the event data being sent for both of your view events is identical - and there isn't and easy way to be able to identify whether this is the second event on the page or not - You could look to add some functionality in one of a few places
b.has_xxx_fired = utag.data.has_xxx_fired || false;
You can change out the variable name "has_xxx_fired" with anything you like!
When the tag fires for the first time, we set has_xxx_fired in utag.data, which we then read on subsequent events, and we dont let the tag fire a second time.
Those options are a bit more work - And it would be easier if you already have something in your event to play from though.
Copyright All Rights Reserved © 2008-2023