Can I use trigger groups (as is possible in GTM)?

We’re test-driving Piwik PRO and are looking to migrate away from Google Analytics and Tag Manager. One of the things I can’t really figure out is if it is possible in Piwik’s tag manager to create trigger groups.

One of the use cases would be firing an event on 25% page scroll and 15 seconds page dwell, which to me would indicate a ‘qualitative’ visit.

1 Like

There are no trigger groups, but I think this case can be solved by:

  1. Create a tag that will set a variable A and push ‘check_visit’ event on data layer. Fire this tag using scroll trigger set to 25%
  2. Create a tag that will set a variable B and push ‘check_visit’ event on data layer. Fire this tag using timer trigger set to 15 seconds
  3. Create the actual tag you want to fire on ‘qualitative visit’. Fire this tag using data layer trigger on ‘check_visit’ event. Add conditions to this trigger to fire it only when variable A & B are set.

Let me know if this helps, if you get stuck, we’ll try to come up with code examples for that implementation :slight_smile:

Thanks for your help, @maciej!

A code example would be helpful, not entirely sure how to do this myself… :wink:

Hi @michiel
Here you can find the implementation example which you can import directly to your website. (If you don’t want to lose your current setup, try importing it on another website).
Go to Tag Manager → Settings → Import from file
2022-02-03 13-06-55 - Trigger groups (a873389d-987b-4f0b-a884-bd77f270882a).json (9.5 KB)
The most important thing is to create a data layer trigger for your actual tag based on two variables (scroll & time). See the screenshot below.

Thanks, @Pawel! I imported the implementation example on a test domain and copied the tags, triggers and variables to my the main website. I can’t seem to get it right. Could it be that the timer trigger only fires once per session instead of at every pageview?

@michiel have you tried to test it in debug mode? What’s the exact problem? “The actual tag” is not firing at all or it works differently than expected?

Yes, I tested it in debug mode and from what I see:

  1. The 25% scroll tag fires on scroll = 25%,
  2. The 15 sec. timer tag doesn’t fire, but I do see the stg.timer for 15 sec. in the event log,
  3. In the event log I do see the dwell_time_conf event, but no tags are fired.

I can share an export of my tag manager if that helps?

@michiel sure, you can share the export file, so we can check it

On the other hand, timer tag would fire only once per session, so If you testing it you should delete your cookies each time.

I assume that your goal is to measure qualitative visit (not qualitative page view) = so triggering once per session shouldn’t be a problem.

Hi @Pawel,
Sorry I didn’t get back to you sooner, but I finally figured it out. :wink: Thanks for your help!

1 Like