I want update the User Id After some form post in my website, for example:
1 - Unknown User enters in my web site ( trigger matomo to register a new visitor, generated random string userid like as 11111111)
2 - Unknown User Navigates in my website (Generate all data and send to matomo, using id 11111111)
3 - Unknown User Registrate into my newsletter form (name & email) *, (I call setUserId again passing the email, now userId should be email@example.com)
4 - User@email navigate to contact page
*** At this point, I tried to call:
But it generates a new visitor/action in matomo, uncoupled from random id used before (111111).
And in matomo, I have a wrong situation, it shows:
Navigate between pages
Navigate to contact Page.
Is wrong use the ‘trackPageView’ to UPDATE the currently unknown UserId?