Closed sergical closed 7 years ago
Good question! It looks like we don't have a guide for that, if the setup is different. Let's add that to the README when we figure it out.
For now, I'm not sure if it does worth with React Router v4. Someone else here should be able to help soon.
@416serg v3+ of this package is router agnostic. It will work with any router (including react router v4+) and by default it uses the document.title
as the page name for reporting to your analytics service.
You can follow a similar approach as suggested in the Readme, or use React Helmet which is what we have been using with React Router v4.
I made a PR to add this to the documentat. @416serg Does this help?
Can't seem to figure out how to set it up 😢