Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Analytics to Google Analytics, how to retrieve the Client ID?

we are planning to move from the GA SDK to the Firebase SDK. Within the GA SDK there were options to retrieve the google analytics client ID (https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#cid). This was fundamental since we transferred this value to the WebView (within the app), so that the customers tracking across native/webview was possible.

Does anybody know how to retrieve this client ID within firebase analytics SDK (iOS & Android)?

Thanks!

like image 476
Fahim Avatar asked Aug 22 '16 14:08

Fahim


1 Answers

The short answer is no - the client ID equivalent (app instance ID) is not currently accessible through an SDK API.

The longer answer :

Firebase Analytics currently only supports logging events from native code. And so, the js code in your webview would call native code to log events and you don't need access to the app instance ID.

like image 145
Steve Ganem Avatar answered Nov 04 '22 22:11

Steve Ganem