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

  • Lucy

    Member
    24 June 2023 at 4:28 am

    The issue you’re encountering has to do with the format of the ‘app_instance_id’ you’re attempting to retrieve from Firebase. This ID needs to be a 32-digit hexadecimal number, but the ID you’re receiving is a 22-digit number. Firebase’s ‘installations’ service provides an ID, but it seems that this ID isn’t suitable for use as an ‘app_instance_id’ in the ga4 API. You need to find a different method to obtain the ‘app_instance_id’. The Firebase SDK documentation or Google Analytics documentation may have more information on how you can correctly obtain this ID.