@Praz_Solver Do you have a Matomo Tag in the tag manager container configured? If so, it may be expected that you end up having two different visits. Ideally, we would get a URL to reproduce the issue. Usually you would be only tracking through Tag Manager or through the tracking code. Maybe you can tell us a bit more what tracking code you are using, what you have configured in the tracking code and why you are using both.
We load the mtm code on the website, cookiebot is then loaded via mtm and, depending on the user’s decision, Matomo tracking code then loaded with or without a cookie (defined via custom dimension) – which all works correctly so we don’t believe there is any duplicate code on the site
The problem only occurs sometimes, both with cookie and cookieless tracking, but never seems to occur if the browser cache has been cleared beforehand