Add Firebase Log Events (Analytics) in dotnet core

Viewed 284

I have android and iOS mobile mobile applications where am able to use Firebase Log Events(Analytics). The same way need to add some more Event logs from backend using dotnet core. Is there way to use Firebase Log Events(Analytics) in dotnet core?

2 Answers

There is currently no SDK for working with Firebase analytics and .net

Now this form for Firebase analytics appears to use Google analytics GA4 which means that you could do this your self and go though the measurement protocol for GA4

Its just a HTTP Post call

POST /mp/collect HTTP/1.1
HOST: www.google-analytics.com
Content-Type: application/json
<payload_data>

I have experience with Firebase regarding OTP verification and I achieved it by client side scripting i.e. Adding Firebase in a JS file and adding it into my razor views. So in my perspective Firebase does not provide any support for dotNet for most of its tools. You can make a way around by using JS and add it into your views. If you need to save analytics into your Db or you want to process it, make an API endpoint which will help you to achieve that.

Related