Initial load of page cant be tracked


So I encountered this issues in my console log. Which of these issues would likely be the cause of Matomo not being able to track my pages on the initial load?

Error that I currently face: Matomo only track my page only when page is reloaded. And is there a possible fix to the issue? Thank you.

Hi @D4R1U5
Are you sure the errors are thrown because of Matomo code?
Are you sure the Matomo bootstrap for page tracking is well executed at first page display?

Note that CSP are set by your server (the one that serves the page)

Hi @D4R1U5
Did you find any solution?
I suggest you test a page on your server with only the matomo trackinf code (just initialization and page view). Check also the same CSP are set!
If this still block the Matomo tracking code, then act as described in the error message: "by adding unsafe-eval as an allowed source in a script-src directive.