User Consent And Identify Visitor
how to identify a visitor
By default, Loglib tries to track users using their IP address. But, we know you're smart enough to know relying on IP addresses isn't the most reliable way to identify unique users. So, if you want to track better, here's what you can do:
Step 1
Display a fancy cookie message on your website. (we'll leave the design up to you but might provide something in the future)
Step 2
Once your users click that "Accept" button, trigger the Loglib consent function. This will use local storage to assign a unique identifier to each of your users.
NOTE: If you don't want to show cookie message, but still want to track using user consent, you can set the consent to "granted" by default.
Identify User
To identify a user, you can use the
identify