feat(insights): expose internal client through eventTracker#150
Conversation
bf6bb80 to
35edc75
Compare
|
The issue with exposing (and using) the client directly is that it doesn't handle the offline case. That's why the insights flutter package exists. |
|
Thanks @aallam for the feedback! From what I understand, the better way to handle the gap we're facing it to update all of the insights helper types and methods to handle the missing event types and subtypes. Until we have the resources to comprehensively address it, do you think this PR work as a stop-gap measure if we ensure users understand that by directly accessing the insights client they don't benefit from the offline capability? |
Yeah, sure it could be. It is also possible for users to instantiate their own instance of the client if they wish. |
Describe your change
This exposes the Insights client created within the
algolia_insightshelper so it can be used to push events that are unsupported by the helper at this time.Example usage