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.
There are no trigger groups, but I think this case can be solved by:
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%
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
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
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?