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
-
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.