SocialGouv / matomo-next

Matomo for Next.js applications
Apache License 2.0
155 stars 22 forks source link

New visitor profile is created after call push(["setUserId", userData.email]); #105

Open nogamenofun98 opened 1 year ago

nogamenofun98 commented 1 year ago

I have an ecommerce platform written in nextjs, and everything seems fine when using it, visitor profile is created as usual. However, after the user is logged in to the website, a new visitor profile is created (different visitor profile ID) and the old visitor profile record is not merge together. The number of visit count is lost.

I didnt set the enable_userid_overwrites_visitorid = 0 config (meaning my current config is set to 1), so everything is in default mode, I enabled archive cronjob and disabled web trigger archive.

revolunet commented 11 months ago

Hi, did you solve this ?