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

add optional proxy function argument to .connectToHistory #40

Closed joernroeder closed 7 years ago

joernroeder commented 7 years ago

As i proposed in #39 i'd like to add a second (optional) argument to the .connectToHistory method. The optional function should act like a proxy and allows the modification of the given location object from the history before it gets passed down to the .track method.