react-native-matomo icon indicating copy to clipboard operation
react-native-matomo copied to clipboard

[question] pros and cons to use matomo javascript client vs react-native-matomo

Open gasolin opened this issue 6 years ago • 5 comments

I have a RN project that works in managed expo environment, so its not possible to use react-native-matomo without eject.

But I found matomo support tracking http API https://developer.matomo.org/api-reference/tracking-api

and provided the js client https://developer.matomo.org/guides/tracking-javascript-guide https://github.com/matomo-org/matomo-nodejs-tracker

  1. How do you think if its possible to use matomo javascript client in RN/Expo?
  2. What's the pros and cons to use the js client directly vs use react-native-matomo ?

gasolin avatar May 16 '19 03:05 gasolin

It's a good question ! Can somebody advise ?

arnaudambro avatar Mar 10 '20 13:03 arnaudambro

@gasolin I found out, that this is connected to your issue here: https://github.com/matomo-org/matomo-nodejs-tracker/issues/59

Did you manage to implement Matomo in your Expo app successfully?

donni106 avatar Sep 18 '20 12:09 donni106

@donni106 ...alas we end up use the GA instead

gasolin avatar Oct 16 '20 07:10 gasolin

Alright @gasolin, thx for the answer. I am currently working on a package to make Matomo tracking available in Expo apps. I will let you know.

donni106 avatar Oct 20 '20 15:10 donni106

I have started a package to be able to track from Expo project: https://github.com/donni106/matomo-tracker-react-native

A very first integration works with manually firing the tracking of actions.

Feel free to use it and create feature requests.

donni106 avatar Oct 21 '20 12:10 donni106