Support » Plugin: Inpsyde Google Tag Manager » Set visitor variable to undefined

  • In the admin view you can set the user role for visitors but when I leave the field empty it still uses "visitor" as value for user.role. I think the best value would be undefined (not a string!) or just don’t push this variable. It would help to set things up in GTM, where the undefined value can be used e.g. to send no value to Analytics.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Christina Fuchs

    (@vanvox)

    Hi xokko,

    thanks a lot for your feedback. We are preparing a new release where your suggestion will be included.

    Cheers

    Thread Starter xokko

    (@xokko)

    Thanks!
    While you work on it, here an other suggestion:
    – Sometimes it is best not to include the GTM at all, e.g. if you use a visual builder. Maybe an option to exclude logged in users from integrating the script would be nice?
    – A bit more advanced feature would be to exclude other things in javascript, like Google Page Speed. Something like:

    if(navigator.userAgent.indexOf("Speed Insights") == -1) and (!dataLayer.user.isLoggedIn)
     { /* analytics here */ }

    (Just an idea…)

    Plugin Contributor Christina Fuchs

    (@vanvox)

    @xokko

    Thanks again for your suggestions. I forwarded them to our devs, lets see what will be in the next release 🙂 Will let you know.

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set visitor variable to undefined’ is closed to new replies.