• Resolved lorajb

    (@lorajb)


    Just wondering how to add multiple tracking IDs using the plugin. I can see the Custom GA Code section and assuming I add it there. But I’m not sure what to write along with it.

    Should I do something like this?
    ga(‘create’, ‘UA-XXXXX-Y’, ‘auto’);
    ga(‘create’, ‘UA-XXXXX-Z’, ‘auto’, ‘clientTracker’);

    Or something like this?
    %%UA-XXXXX-Z%%

    Or can I just add the tracking code on it’s own?

    Thanks!
    Lora

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

    (@specialk)

    The free version only adds one tracking code, but yes you can add any other code under the setting “Custom Code”. But you will need to add the entire tracking script, not just the ID.

    Thread Starter lorajb

    (@lorajb)

    Is this what I’d add, with the new user ID?

    <!– Google Analytics –>
    <script>
    (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,’script’,’https://www.google-analytics.com/analytics.js&#8217;,’ga’);

    ga(‘create’, ‘UA-XXXXX-Y’, ‘auto’);
    ga(‘send’, ‘pageview’);
    </script>
    <!– End Google Analytics –>

    Plugin Author Jeff Starr

    (@specialk)

    Yeah something like that, it looks correct like a complete tracking code. But you want to make sure by comparing with whatever code Google tells you to add.

    Thread Starter lorajb

    (@lorajb)

    Ok awesome. Thank you! Very helpful and so quick to respond. Yeesh!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multiple Users’ is closed to new replies.