FYI, In our application we are using UserId feature.
I am setting below attributes when user clicks on logout button in our Application.
But, when the user logs back new visit is not created for the user with same UserId.
Please let me know, what is wrong here?
Since Matomo 3.12 or 3.13 a reset or login of the userId no longer creates a new visit since it is technically not a new visit.
You may be able to create new visit by calling this:
_paq.push(['appendToTrackingUrl', 'new_visit=1']); // (1) forces a new visit _paq.push(["deleteCookies"]); // (2) deletes existing tracking cookies to start the new visit // the two lines must be above the call to track* function _paq.push(["trackPageView"]);
Thanks for the quick reply.
Created a PR 👍
I need one more information from you.
Suppose user is under a particular 'Menu' in our website, how to track what actions he is performing under that particular menu?.