I’m stuck with a custom event trigger in Matomo Tag Manager (5.1.2, self-hosted) that’s not firing right for form submits on my WordPress site. It works in debug mode, but in production, it misses about a third of the submissions.
Setup: Running Matomo 5.1.2 on Ubuntu 22.04 with PHP 8.2 and MySQL 8.0, tied to WordPress 6.7.1. I set up a trigger for a form_submit dataLayer event, but logs say “Trigger condition not met” even though the dataLayer push shows up in Chrome’s console.
What I Tried: Cleared caches, republished the container, tested in Edge, and checked dataLayer timing. No JS errors. I saw a 2024 thread about a similar issue, but no fix there.
Question: Has anyone got custom event triggers working smoothly in 5.1.2? Any settings I might’ve missed or debug tricks to try? Appreciate any pointers!
Thanks for the detailed fix! I’ll try the 100ms delay, check my JS push, and exclude Matomo’s JS from caching. Will test in Debug mode and report back. Appreciate it!