guillaumeparis2000 / react-piwik

Library that allow to connect piwik with the react-router and track custom events
31 stars 17 forks source link

How to manually track a page or add (push) an item #4

Closed chrisdrackett closed 7 years ago

chrisdrackett commented 7 years ago

I'm unclear how to manually track a page. I'm trying to use:

ReactPiwik.push(['enableHeartBeatTimer']);

or

ReactPiwik.track('/')

but without any luck, are these methods suppose to be available? also, if I want to do these on other pages than where ReactPiwik is initialized do I need to add ReactPiwik as a global?