React-ga: Getting client ID

Created on 19 Apr 2017  路  1Comment  路  Source: react-ga/react-ga

Is it possible to get the client ID from the tracker cookie using react-ga?

I'm trying to follow this - https://developers.google.com/analytics/devguides/collection/analyticsjs/cookies-user-id#getClientId

Most helpful comment

It's very easy - I had an adblocker preventing me from doing so.

    ReactGA.ga((tracker) => {
      console.log(tracker.get('clientId'))
    });

>All comments

It's very easy - I had an adblocker preventing me from doing so.

    ReactGA.ga((tracker) => {
      console.log(tracker.get('clientId'))
    });
Was this page helpful?
0 / 5 - 0 ratings

Related issues

amcinerneynewf picture amcinerneynewf  路  4Comments

velchevski picture velchevski  路  3Comments

HcwXd picture HcwXd  路  4Comments

achhranitesh picture achhranitesh  路  3Comments

olalonde picture olalonde  路  3Comments