• Resolved startsmartnow

    (@startsmartnow)


    Hello,

    I have successfully installed GTM (GA in container) using Site Kit. GA tag is working, but I am trying to setup a trigger to block logged-in admin users (a very common thing to do).

    The visitorLoginState data layer variable is working as expected. It shows logged-in or logged-out.

    I added the visitorType data layer variable, so I could only block wp admins.

    However, the visitorType value keeps showing “undefined” whether I am logged-in or logged-out.

    Can you tell me why this data layer variable isn’t working?

    • This topic was modified 6 years, 4 months ago by startsmartnow.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    @startsmartnow For blocking reporting on WordPress admins have you tried using the “Excluded from Analytics” feature from the Analytics module settings (Site Kit > Settings > Connected Services > Analytics Edit > Excluded from Analytics)?

    Thread Starter startsmartnow

    (@startsmartnow)

    I don’t think that works when you put Google Analytics in your GTM container. Also, for membership websites, you don’t want to block logged in users. You want to block logged in admin users. Thanks for the tip! That will work for clients or other folks who don’t have membership websites.

    I found a work around using the DOM element and body class.

    • This reply was modified 6 years, 3 months ago by startsmartnow.
    Plugin Support James Osborne

    (@jamesosborne)

    @startsmartnow Good to know you found a workaround, thanks for the update.

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

The topic ‘GTM – visitorType undefined’ is closed to new replies.