matomo-next icon indicating copy to clipboard operation
matomo-next copied to clipboard

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

Open nogamenofun98 opened this issue 1 year ago • 1 comments

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.

nogamenofun98 avatar Jun 27 '23 10:06 nogamenofun98