When all parameters are properly set, you need to configure the setup to match your paywall type. It should be an editorial decision whether you want or not to track visits if the paywall element appears on the page because anonymous users can't read much of the content.
1. The first option is to track all visits, regardless of the fact that full article content may not be loaded for anonymous visitors i.e. those that don't have full (premium) access.
if (PAYWALL) {
// do not load CI tracking code
_ain.trackauto = false;
}
Please note that the PAYWALL is an arbitrarily named variable that you should replace according to your paywall settings.
Considering this, there are only three options of interest:
// 1) anonymous user reads a free article:
_ain.access_level = "free";
_ain.reader_type = "anonymous";
// 2) subscribed/registered user reads a free article:
_ain.access_level = "free";
_ain.reader_type = "subscribed"; //or "registered"
// 3) subscribed/registered user reads a paid article:
_ain.access_level = "paid";
_ain.reader_type = "subscribed"; //or "registered"
You probably have some variables that can be used to set a condition for the proper access_level and reader_type values.
You are free to modify or find another solution of your choice.
If you have any questions or doubts please contact our Support team: support@smartocto.com