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
Use the name of a trigger to populate an event / use it as variable #146
Comments
Actually, I haven't tested but I reckon it should be doable by using eg a DataLayer Variable that reads We could possibly also add the name of the trigger to the dataLayer (name of trigger that was last triggered) but I'm actually not sure we expose the actual trigger name... we might be only exposing a hash... not sure |
I just double checked we only add the actual trigger name to the preview release for debugging purposes but otherwise set the |
Was there any evolution to use the name of the trigger to feed events? Indeed this would avoid redundancy in the creation of tags, and ensure the wording, in my case, of the visible elements on a page. |
Another suggestion (also copied-pasted in the forum), Then it could be possible to create a trigger on CSS selector |
+1 for being able to use the trigger name that triggered a certain tag as a variable. @heurteph-ei - this is another issue. What you're trying to achieve is already possible (however, it is a bit complex):
But I agree with the idea of making this more handy - having this in a more automated manner would be great for another feature. |
This would really be a good feature. This keeps the tags clean without the need of multiple tags basically doing the same thing just with different names. |
This issue has been mentioned on Matomo forums. There might be relevant details there: https://forum.matomo.org/t/use-trigger-name-as-eventname-in-tag/45743/2 |
See https://forum.matomo.org/t/using-trigger-values-in-matomo-analytics-event/31092
I can see how this can be useful. At the same time not sure if it is possible to implement and how much it makes sense from the bigger picture meaning variables are used in various places not really only related to tags/triggers. We would need to look into it.
The text was updated successfully, but these errors were encountered: