- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Printer Friendly Page
tracking user_ID
May 2015
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Email to a Friend
- Report Abuse
I am trying to implement user_ID tracking in analytics under the ".js" feature. Sorry I am no programmer. Can someone help with assigning a "unique, persistent, and non-personally identifiable string ID" to an existing authorised user of my google site.
1. how and where do i assign this string to the authorised user's email address? can i do it simply through 'custom definitions'? what would the script be for such a definition?
e.g.
user1: email1@email1.com - USER_ID: 00001
user2: email2@email2.com - USER_ID: 00002
2. would the tracker then look like this?:
ga('create', 'UA-XXXX-Y', { 'userId': '00001' });
ga('create', 'UA-XXXX-Y', { 'userId': '00002' });
ga('send', 'pageview');
3. what would the updated tracking code look like and how do i then upload it onto the google servers? Could I do it through the analytics site again, like 'customs definitions' without php implementation.?
Many thanks in advance
Re: tracking user_ID
May 2015
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Email to a Friend
- Report Abuse
https://developers.google.com/analytics/devguides/collection/analyticsjs/user-id
1. You can use email as userid.
2. No, you can use userid of a logined person - only 1 userid can be at one time.
3. To place your user to tracking code you need to know programming by the way.
Re: tracking user_ID
[ Edited ]May 2015 - last edited May 2015
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Email to a Friend
- Report Abuse
Thank you Darts,
I understand that if one used the email as USER_ID, it would be a violation of terms and conditions.
So how and where do i assign a USRR_ID unique string to the email, then please? Can one use "custom definitions" and how? Thank you
Re: tracking user_ID
May 2015
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Email to a Friend
- Report Abuse