• Resolved ssalustri

    (@ssalustri)


    Hi,
    I have activated Visitor ID option in plugin settings, then, I’ve created a new Data Layer Variable called {{User Id}}. The variable read the visitorId variable from the datalayer.

    I also updated my Universal analytics tag with the userId field and assigned the previously created Data Layer Variable to this field.

    But in my GA User Id view i have no data even if, with the GTM preview tool, I correctly see the visitorId field (in the data layer).

    Where am I wrong?

    Stefano

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

    (@duracelltomi)

    Hi Stefano,

    Please post the URL of your website, without this, I am not able to help as there can be several reasons for this kind of issue.

    Thanks,
    Thomas Geiger

    Hi duracelltomi,

    I’ve got the same problem here with this site. Any advice?

    Thank you,

    H.

    Thread Starter ssalustri

    (@ssalustri)

    Hi duracelltomi,
    my website is: http://www.turismoumbria.net.

    Thanks in advance.

    Stefano

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi Everyone,

    @ssalustri
    You are using a cache solution that moves some JS codes of my plugin into a separate .js file. With this, the initial dataLayer.push() command is delayed after the GTM container loads. You should modify your GA tag to fire on all DOM ready events. In that case your GA tag will get the visitorId value.

    @honza Felt
    I checked your site and it seems to me that GTM is passing visitorId correctly to the GA tag and Analytics.js sends this info to Google.

    Have a great day,
    Thomas Geiger

    Thread Starter ssalustri

    (@ssalustri)

    @duracelltomi Hi duracelltomi
    you were right, there was a problem with the caching system of my website. Now the userid tracking works fine.

    Thanks a lot

    Stefano

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

The topic ‘Problem with User Id tracking’ is closed to new replies.