Reputation: 10879
I would like to track my application's revenue with Firebase Analytics. The nature of the revenue events are extremely different to how revenue is generally generated in an e-commerce environment.
*EDIT I guess I should be more specific. I need to track revenue events for users that are independent of application usage, or any particular direct user action. Short of using another analytics platform that supports REST events, I think i may be out of luck.
The obvious solution would be to use google measurement protocol from the backend when these event occur, but it looks like Firebase does not support this API.
Other than that, the only creative alternative I can think of is sending silent pushes to the device in order to trigger the even client side. This is obviously suboptimal and will most definitely not end up being accurate.
Is there another creative workaround i'm missing?
Upvotes: 0
Views: 134
Reputation: 4037
You can send custom events since all the automatically collected Firebase events operate when the app is in foreground. Your custom events would be logged when the app is in the background (as I suppose with your requirements). Please note that, this won't be accounted as session or engagement time events in the reports.
Unless you are not tracking PII and the app's tracking mechanism complies with that of Legal polices, everything is OK.
Upvotes: 1
Reputation: 493
As long as your app is running you should be able to trigger the event regardless of user interaction, no? You could probably bundle all the data you need in the event parameters.
Am I missing something?
Upvotes: 0