SocialGouv / matomo-next

Matomo for Next.js applications
Apache License 2.0
152 stars 22 forks source link

Run on localhost #129

Open Mattyy94 opened 4 months ago

Mattyy94 commented 4 months ago

Maybe not really an issue but I want to run this locally to test the Matomo intergration, but I can't get passed the setup of the tracking code within Matamo.

Some context: I've Matomo running locally with docker on port 8080, and my nextJs frontend on port 3000, I've picked the "install with JavaScript code" option in matamo, is this the correct one for this NextJs intergration or should I do this differently?

Since when i press the button "Test Installation" this will fail, the correct page (localhost:3000) will open and close after 10 second but Matomo gives an error.