terveystalo / react-native-matomo-sdk

Matomo SDK for React Native
https://www.npmjs.com/package/react-native-matomo-sdk
MIT License
11 stars 9 forks source link

fix: make sure tracking calls cross the bridge in intended order #21

Closed jozan closed 4 years ago

jozan commented 4 years ago

If Matomo is initialized in module scope calls across the bridge are not called in intended order. For example trackView was called before trackEvent.

This is more obvious if you set custom dimensions or similar data during initialization that data could get lost or attached to wrong tracking events. Note that custom dimensions are yet to be implemented.