Hi,
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 user@email.com)
4 - User@email navigate to contact page
*** At this point, I tried to call:
setUserId, âuser@email.comâ
and
trackPageView
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:
User: 1111111
Navigate between pages
User: user@email
Navigate to contact Page.
Is wrong use the âtrackPageViewâ to UPDATE the currently unknown UserId?