SocialGouv / matomo-next

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

Disable default trackPageView with the document title on route change #106

Open CaioSilvaDti opened 1 year ago

CaioSilvaDti commented 1 year ago

Since I've configured my own page views, I want to disable this lib's default behavior of registering trackPageView with the document title on route change. How can I do that? It's affecting our reports.

revolunet commented 1 year ago

there's no option to disable it at the moment, its the default behaviour. One could add a trackPageViews option to disable it by configuration

CaioSilvaDti commented 1 year ago

Could I do that? Because I think it is a simple implementation.

revolunet commented 1 year ago

Yes you can 💪 Open to pull request. The trackPageViews should be on by default

CaioSilvaDti commented 1 year ago

Here is my PR: https://github.com/SocialGouv/matomo-next/pull/107

Can you review it?