• Resolved Brendan Shanahan

    (@brendanshanahan)


    I am trying to generate analytics report to differentiate between guests and members on my website. I have added the code below to the ‘custom GA code’ section, however this still sets a value of 0 for guests, however Google instructions for sending user ID say that no value should be passed for guests. Is there a way to use the Custom Code option to only send this value if it is not 0?

    Don’t send a user ID when a user isn’t signed in. If a user isn’t signed in, don’t pass the user ID parameter, or leave the value as undefined. Don’t set a custom value, like?"empty"?or?"NA". Setting the same value for all sessions without a user signed in causes issues with the accuracy of your reporting.”

    gtag(‘set’, ‘userId’, ‘%%userid%%’);

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Hi Brendan, it’s not something the plugin can do currently, but I will take a closer look for the next plugin update and see what’s possible. I’m thinking that replacing 0 with nothing/empty should be do-able. Thank you for the bringing this to my attention.

    Thread Starter Brendan Shanahan

    (@brendanshanahan)

    Thanks Jeff

    Plugin Author Jeff Starr

    (@specialk)

    Hey Brendan, just to follow up with this, the requested change is implemented in version 20241019. Should be available later today. Thanks again for reporting this, much appreciated.

    Thread Starter Brendan Shanahan

    (@brendanshanahan)

    Amazing, thank you Jeff for the quick update.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.