How to track individual users on your site

If you use an analytics service that allows you track individual users by name you can use the ScreenStepsViewer javascript object identify users that are logged in.

You will want to first check for the existence of the object. It will only be present for users that are logged into your ScreenSteps site.

Here is some example javascript that you will need to adapt to your own needs:

if (ScreenStepsViewer) {
    var email = ScreenStepsViewer.email;
    var name = ScreenStepsViewer.name;
    var login = ScreenStepsViewer.login;
}

You can then use these values with your analytics javascript to identify individual users.

2 Comments

Ivo van Tol

Hello Screensteps, do I need to just copy / paste the above in the google analytics code?

Please let me know.

Thanks, Ivo

Greg DeVore

@Ivo -
No, you would need to customize it to how Google Analytics identifies its users. Each tracking service does this slightly differently, but the above code will show you how to get the information you need. You then need to write javascript that will allow the library you are using to track that information.

Google Analytics does not allow you to track this type of information. It is against their terms of service. If you want user tracking then you would need to use a different analytics service.

Add your comment

E-Mail me when someone replies to this comment