I’ve been working on this issue for a few days now and I’m getting desperate.
I have a single page application, in which I would like to track after successful login (without a new reload of the page) via Matomo. For privacy reasons, the page should not be tracked before login.
How could something like this be implemented?
I have already tried various possibilities without success.
I thought of integrating the tracking code quasi deactivated and on it, after login to activate the tracking, unfortunately I find nothing helpful in the API.
My tracking code currently looks like this.
I am looking forward to ideas and suggestions!