Enhancing Trigger Logic for Tags

Hi,

It would be helpful if the logic of triggers for tags could be enhanced so that it mirrors more closely that of filtering in reports.

I have a use case where I want to do both AND/OR logic on a tag but at the moment the logic is just stacked OR commands so I’m unable to accomplish this and have to achieve this through custom code implementation which can get messy.
We’re trying to define a metric for ‘engagement’ in our instance of Piwik and currently it’s quite difficult to implement.

We’re looking to do the following trigger combination:

  • If a user has been on a page longer than a minute AND (clicked off to an internal link OR scrolled to 75%) = engaged user
  • If a user has been on a page longer than a minute AND leaves the site (without doing the previous conditions) = non-engaged user
  • If a user has been on a page less than a minute AND leaves the site = non-engaged user

It sounds a lot but that’s the business requirement for engagement.
I have it somewhat working with javascript/custom code work around but it would be ideal if we could do various combinations of AND/OR in the triggers for tags to accomplish this.

Also, if anyone has any suggestions on a better way to achieve the above - it’s appreciated! :slight_smile:

Hi!

Thank you for your feedback! I forwarded this to our team :slight_smile:

Unfortunately, for now, workarounds for achieving this will probably all require some custom code and custom work done, as we don’t have a general way of doing this. If there are any specifics or if you run into any troubles with getting this to work in the future - feel free to let us know :slight_smile: