user id tracking in google analytics

Using this feature:
https://developers.google.com/analytics/devguides/collection/analyticsjs/user-id

we add the user id if they are logged in for future analytics tracking.