I am doing my own client ID on the Chrome screen.
I was able to display a number like that, but I don't know if it is my client ID.
I searched for how to check the client ID of myself (Google chrome that I am using)
I couldn't meet a good site.

Console logs&alerts with the following code
123456789.1234567891 and their threshold numbers were displayed. (← numbers are temporary)
Can I get my own client ID?
How can I check my client ID?

<!-Global site tag (gtag.js)-Google Analytics->
<script async src = "https://www.googletagmanager.com/gtag/js?id=UA-********-*"></script>
  window.dataLayer = window.dataLayer || [];
  function gtag () {dataLayer.push (arguments);}
  gtag ('js', new Date ());
  gtag ('config', 'UA-********-*');
<!-Google Analytics->
window.ga = window.ga || function () {(ga.q = ga.q || []). push (arguments)};ga.l = + new Date;
ga ('create', 'UA-********-*', 'auto');
    ga (function (tracker) {
var tracker = ga.getAll () [0];
var cid = tracker.get ('clientId');
console.log (cid);
alert (cid);
ga ('send', 'pageview');
<script async src = 'https: //www.google-analytics.com/analytics.js'></script>
<!-End Google Analytics->
  • Answer # 1

    Analog solution,
    Enter the code on a private page and access it
    Check the client ID of the user who accessed the private page on Google Analytics.

    It was confirmed that it is the same string as the one displayed in alert in the page.

Related articles