How to get the Firebase Analytics application instance ID of a web application
P粉647449444
P粉647449444 2024-01-01 23:40:16
0
1
419

I'm trying to log purchase events via the Google Analytics 4 measurement protocol. If I read the documentation, it is said that I must have app_instance_id so that I can send data from our backend to the GA4 server.

We are using Vue and Firebase Nuxt for our web app, but unfortunately, as shown in the image below, I can't find a way to get the app_instance_id

So how do I get the app_instance_id for a web application in Firebase for web application? Not available yet? please help

P粉647449444
P粉647449444

reply all(1)
P粉792673958

Unfortunately, currently app_instance_id does not work on the web. Read the full instructions from the Firebase Analytics repository maintainer on Github here

Currently, from the Event Builder Measurement Protocol Web, it appears that we cannot use Firebase with the web client, we must use gtags. Firebase is only available on mobile devices. If you send the event via gtag or Firebase, the JSON body and query parameters will be different

https://ga-dev-tools.google/ga4/event-builder/

This is Documentation Sending events via gtag

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!