This is discussed in the follow issue: https://github.com/matomo-org/matomo/issues/16942
When I for example hardcode the PageViewId, I get multiple PageViews. Even if they have the same PageViewId!
When two or multiple tracked PageViews have the same PageViewId, they should only be counted as one visit.
Every tracked PageView gets counted as an individual PageView, even having the same PageViewId.
Count PageViews with the same PageViewID as one PageView.
... _paq.push(['setPageViewId', "563adi"]); _paq.push(['trackPageView']); ...
Reload page multiple times.
@JE4GLE from our side this is currently expected behaviour. The same page view ID can be tracked multiple times currently. Defining the pageview ID was mostly meant for being also able to track performance client side while you track the page view server side.
In your tracking code you probably will want to remove "trackPageView" call and replace it by
enableHeartBeatTimer. This should probably make it work for your use case to track the page view server side, and the "ping" request from the heart beat timer should eventually send the performance data.
I will try removing trackPageView to track the performance, thank you! Does this also track plugin information?