Hello and Happy New Year!
I have an issue with Matomo on a single page application website related to campaign tracking.
Here is the situation:
I land on the site with correct and valid campaign parameters. I see the the correct cookies are created and specifically, pk_ref is set. I can navigate around and my actions are bound to a single visit and correctly recorded in Matomo.
Within the same 30 minute timeframe, I revisit the site with a different campaign name. The first page view is correctly registered with these new campaign details. However, the second page view of this “visit” generates a new visit reverting back to use the values stored in the pk_ref cookie from the first visit.
Ideally, the behaviour I would expect is this:
The value stored in the pk_ref cookie should be from the latest visit including the current active visit.
The campaign details of the current active visit should never be overwritten with values from the cookie
Has anyone had any experience of this? Any help would be greatly appreciated.