• Resolved dorgs04

    (@dorgs04)


    Hi,

    Im trying to send WordPress UserID to GA using %%userid%%. Do I just need to copy and paste this into Custom GA Code box?

    My current source view GA code looks like this:

    <script async src=”https://www.googletagmanager.com/gtag/js?id=UA-hiddenxxxx”></script&gt;
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());
    gtag(‘config’, ‘UA-hiddenxxxx’);
    1′
    </script>

    Any help would be appreciated.
    Many thanks

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

    (@specialk)

    Glad to help:

    “Do I just need to copy and paste this into Custom GA Code box?”

    Yes that is correct. But understand that WP is aonly able to provide the user ID *if* the user is logged into your site. Otherwise there will be no ID to report.

    Let me know if I can provide any further infos, glad to help.

Viewing 1 replies (of 1 total)

The topic ‘How to use %%userid%%’ is closed to new replies.