ScreenSteps 5

How to use a javascript object to track individuals if you are using an analytics service

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 = ScreenStepsViewer.email;
    var name = ScreenStepsViewer.name;
    var login = ScreenStepsViewer.login;
}

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

Previous Article How to track searches in Google Analytics
Next Article How to Navigate to Reports in ScreenSteps