• vdl

    (@dellalibera)


    I was able to configure my plugin, I can see the user id in GA User Explorer, but is there any way for me to know who the users are, if the username or email can be displayed there, only from logged in users.

    Congratulations for the great work, it was very easy to use your plugin and also the documentation on your site helped me understand what gtm is for.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    The terms of conditions of Google Analytics prohibits you to store any personal data like the name or email address of the user. If you would setup any tracking that adds those data in your GA reports, you would risk your property to be deleted by Google.

    What you could do is to track the User ID itself and the use your WP admin to see which user ID belongs to which user in WooCommerce using two browser tabs.

    A more advanced approach would be to you the Google Analytics reporting API and the WooCommerce REST API to combine both sources into one report for example in Google Sheets.

    Thread Starter vdl

    (@dellalibera)

    Hi Tomi, this sounds like a great idea!
    I found my user’s user_id on wordpress but it is not the same as what appears on google analytics.

    Do you have any tips on what I could do?

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Yo should check what variable you are using on your Google Analytics settings variable or in your Google Analytics tags to populate the user ID field with data.

    Thread Starter vdl

    (@dellalibera)

    I am using your plugin’s default variable, but when I compare my user_id with the id that is on google they are very different. If I want to do this as you suggested, then I won’t be able to use your plugin?

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Normally the visitId variable in the data layer should be the ID of the customer ID next to your order. If you see a difference then this could be either a bug or some conflict with any other plugin

    Thread Starter vdl

    (@dellalibera)

    Hi Tomi,

    for example, I see a wordpress user is id 195, but on google the customer id in user explorer is something like 313212312.12474619101

    Am I looking in the wrong place? Are there any essential features of your plugin that must be checked in order for this id to be passed to analytics?

    I have no other plugins interacting with analytics, only yours.

    Tnks

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    I guess you are mixing together two different dimensions.

    195 is the user ID, it is not ID generated by WordPress, your own “CMS”. This ID can be added to your GA tracking so that you can have cross device reports:
    https://support.google.com/tagmanager/answer/4565987?hl=en

    313212312.12474619101 in the user explorer report is the so called client ID. This is an ID generated by your Google Analytics tracking code to identify your visitors once they get back to your site. It is not the same as your user ID

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Display username or email in GA ?’ is closed to new replies.