server-side-google-analytics icon indicating copy to clipboard operation
server-side-google-analytics copied to clipboard

tracking USER_ID

Open UsmanJ opened this issue 9 years ago • 1 comments

I want to be able to push the user id to ga (so ga can distinguish between new and old visitors).

Normally in JS it would be along the lines of

 ga('create', 'UA-XXXXXX-Y', {'userId': USER_ID});
  ga('send', 'pageview');

How can I modify the constructor to be able to do this?

UsmanJ avatar Apr 01 '16 13:04 UsmanJ

Also looking to do custom variables server side. Any insight would be much appreciated

abmultimedia avatar Feb 01 '17 16:02 abmultimedia