• Resolved William Álvarez

    (@williamalvarez)


    Hi,
    I’m trying to collect User ID as per Google Analytics guidelines by it doesn’t work.

    In the plugin I checked “Logged in user ID” under Visitors. Is the VisitorId in the dataLayer the same variable known as User ID?, or are they two different things?

    Another method that I used was this other one (https://www.simoahava.com/gtm-tips/once-userid-always-userid/), but the userId shows as ‘undefined’ in the debugging/preview tool.

    Thanks in advance!

    William

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

    (@duracelltomi)

    Hi William,

    VisitorId in the dataLayer IS the user id, you can use this to read the value into a Data Layer Variable on the GTM UI. Have you done this? Have you added the newly created GTM variable to your GA tags in the “Fields to set” section?

    Thomas Geiger

    Thread Starter William Álvarez

    (@williamalvarez)

    Thank you!
    Yes, I did all that already.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘userId or VisitorID?’ is closed to new replies.