# User Subscriber Status

Compass can track subscribed users separately from unknown users. It can also make the difference between paying users and free registrations, depending on your paywall configuration.

As the user logs in, tell Compass about it:

To track free logged-in users, add this line to your JavaScript when they log in:

window.marfeel.cmd.push(['compass', function(compass) {
	compass.setUserType('logged');
}]);

To track paying readers, add this line to your JavaScript when they log in:

window.marfeel.cmd.push(['compass', function(compass) {
	compass.setUserType('paid');
}]);

You can also customize the user journey to your business needs. Via the User journey section, add the stages you need to track your users' journey. Using the stage identifier, track users by using the code snippets provided for each stage.

For instance, if you define a stage called Platinium, which is given the ID 3, add the following code to track such users.

window.marfeel.cmd.push(['compass', function(compass) {
    compass.setUserType(3);
}]);

You can get the appropriate snippet for each stage from the User journey section.

Later, in the Overview, data for those user types will be shown.

image

# Device unification

Compass can recognize logged-in users even if they use different devices. If you want a reader to be recognized across all their devices, send a user ID to Compass as you track logging in:

window.marfeel.cmd.push(['compass', function(compass) {
	compass.setSiteUserId(1);
}]);

Replace 1 with the specific user ID you use in the format of your choosing.