-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tag firing section: "Only fire this tag if VARIABLE_NAME = XYZ" #892
Comments
@Stan-vw A DOM Ready trigger with below filter can solve the problem of firing a tag for a sepcific variable |
@AltamashShaikh yes, I believe that's what I described:
*I'll update the title, since the original title might be slightly inaccurate |
As a reference, it sounds like the "Perimeters" feature of Tag Commander (TMS from commander act). The main point is to use and reuse some generic triggers for different context without having to create one trigger per context. Not to confuse with group of triggers that is an existing GTM feature (and the subject of an existing github ticket), which is more of a "wait for all triggers" trigger (ex : event + consent change, again just an example of many uses). |
As far as implementation, we might be able to use the same meetsConditions function that triggers use in the tag's _doFire method. |
Currently, firing logic for Tags is a combination of:
However, you cannot configure the tag to trigger:
This could be handy for managing logic like "only fire when consent is given", or "only fire for specific audiences".
This logic is available in the trigger configuration, but this can result in having duplicate triggers with slight variable differences, rather than having a single generic trigger and adding the nuance to the specific tags that require it.
Related conversation: #761 (comment)
The text was updated successfully, but these errors were encountered: