Exclude not logged in users from tracking

Hi,

I’m using the matomo plugin for a wordpress site. The main content of the site is only for logged in users. To prevent privacy issues, I want to track only logged in users with matomo.
Is there a way to exclude not logged in users from tracking?

Thanks in advance
Jakob

You just need to call Matomo tracking code if the user is logged…
Or else just call Matomo tracking code on pages visible only to logged people…

Thank you for your answer.
I placed the Matomo tracking code in an if-condition directly in the Matomo plugin options.
Now it seems to work.

1 Like