Learn business growth with Google Analytics 4 Forums Google Analytics 4 Retrieving App Instance ID and Client ID from Firebase SDK for Web: Sending Google Analytics Events via API Reply To: Retrieving App Instance ID and Client ID from Firebase SDK for Web: Sending Google Analytics Events via API

  • Sofia

    Member
    23 June 2023 at 9:45 am

    Sure, so essentially the error you’re seeing is because the ID you’re getting from Firebase isn’t in the right format. The ID should be a 32-digit hex number, but the one you have is only 22 digits.

    So, what you can do is firstly, in Firebase, allow streaming into BigQuery tables. Find the app_instance_id or client_id there – they’re under labels that say ‘user_pseudo_id’ and ‘user_id’ respectively.

    If that doesn’t work, you could use a proxy, like Charles or mitm, to get the exact logs from your app and find the ids there.

    A third option is to use Android’s ‘adb’ tool. This lets you dig into logs while your device is connected to your PC. You can search the logs there to find the correct ids.

    Basically, there are multiple ways to get these IDs – you just need to figure out which one works best for you.