betaacid / expo-analytics

Google Analytics integration for use with React Native apps built on Expo
MIT License
288 stars 64 forks source link

Sending custom metrics and dimensions with custom event #2

Open tnyavdc opened 6 years ago

tnyavdc commented 6 years ago

Would it be possible to extend Event to allow for passing fieldsObject, similarly to the GA action ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]); ?

This would enable sending custom dimensions and metrics along with an Event.

Thanks!

ryanvanderpol commented 6 years ago

@tnyavdc I had already written most of the code to support custom dimensions so I just finished that up and exposed it in v1.0.6 (see the readme for how to use it). Custom metrics are still not supported, however.