okgrow / analytics

UNMAINTAINED! - Complete Google Analytics, Mixpanel, KISSmetrics (and more) integration for Meteor
https://atmospherejs.com/okgrow/analytics
MIT License
213 stars 61 forks source link

Does this work with React Router v4? #190

Closed sergical closed 7 years ago

sergical commented 7 years ago

Can't seem to figure out how to set it up 😢

RichardLitt commented 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.

cfnelson commented 7 years ago

@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.

RichardLitt commented 7 years ago

I made a PR to add this to the documentat. @416serg Does this help?