search

Home  >  Q&A  >  body text

How to get the Firebase Analytics application instance ID of a web application

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粉647449444P粉647449444325 days ago494

reply all(1)I'll reply

  • P粉792673958

    P粉7926739582024-01-02 15:42:36

    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< /a> Sending events via gtag

    reply
    0
  • Cancelreply