Creating instant alert when customer logged in

I need to create the real time alert to send mail when the customer is logged in how can i do this in matomo


I don’t think you can do this with the CustomAlerts plugin as it only looks at the regular reports and sends an alert if they change.

But writing a custom tracker plugin that does anything if a tracking request matches a specific rule (e.g. user id is some value) should not be that hard.

Iam new to matomo, Please suggest to work on custom plugin and iam working in magento iam trying to set the custom variables in my Js file but it is adding i can’t see any response i had searched but i can’t get any code samples can you help on this @Lukas


You can check for a general guide on how Matomo plugins work and as an example of a plugin that acts on tracking requests.