joernroeder / piwik-react-router

Piwik analytics component for react-router
https://www.npmjs.org/package/piwik-react-router
MIT License
61 stars 22 forks source link

React Router v4 Support #58

Open leadhkr opened 6 years ago

leadhkr commented 6 years ago

Is there an appetite for adding react router 4 (or 2/3) support? Not many apps are still on v1. If not is there an alternative to using Matomo with react?

smitch88 commented 6 years ago

@sagarpatel8384 Did you find any alternatives? I may just fork this code and make it work for my needs and may PR back in but my implementation might end up being too specific to my needs in the short term.

joernroeder commented 6 years ago

i would love to see a fork + pull request as i dont have the resources to take care of this repo at the moment. sry 😔

koupeng commented 5 years ago

I need it too.......

ghost commented 5 years ago

Found this repo on Motomos website. Bummer that v4 isn't supported.

Findus23 commented 5 years ago

Hi everyone,

I have now removed this integration from the Matomo website.

If this has been resolved or anyone knows another Matomo react integration that should be featured, please contact us.

dimitar-nikovski commented 5 years ago

I use this package with react-router 5.0.0

import { createBrowserHistory } from "history";
import { Router } from 'react-router';
import MatomoTracker from 'piwik-react-router';

const history = MatomoTracker.connectToHistory(createBrowserHistory());

const App = () => {
 return <Router history={history} children={AppRoutes} />
}