How to track individual users on your site

Updated on

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 =;
    var name =;
    var login = ScreenStepsViewer.login;
Click to copy

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


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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Previous Article How to track searches in Google Analytics
Next Article How to Find Article Views from within the Article Preview
Still Need Help? Contact Us