3

In website (desktop or mobile), GA generates client_id and stores in _ga cookie. This I can easily retrieve using gtag.

For mobile app, do we have to generate & set client_id ourselves ? Because I cannot find related documentation for this. If we have to generate ourselves, can we use any uuid or Firebase app_instance_id as ga client id.

2
  • maybe this will help you: tatvic.com/blog/… Commented Oct 3, 2022 at 5:00
  • If I generate myself and use it as client id , will it work still ? @EvyatarCohen
    – Yusuf
    Commented Oct 3, 2022 at 9:47

1 Answer 1

2

client id in gtag is equivalent to app instance id in firebase tracking id in gtag is equivalent to app id (or project id, idk) in firebase

So answer is we can use app instance id of firebase as equivalent of client id.

Similarity between two:

  • client id indicates a particular install (not technically) of a website. It remains unchanged for 2 years unless that website is hard-refreshed
  • app instance id also indicates a particular install of an app on phone and remains same till app in uninstalled

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.