简体   繁体   中英

Detect if mobile user and desktop is same

I want to detect users coming on my website and check the repeated users. So, if a user access my website from desktop browser and then let's suppose next day same user access my site from mobile browser. How do i know that this mobile user is same that came yesterday through desktop, so that i can increase number of visit of user instead of creating a new user?

Browsers don't share the cookie id , so using cookie id will not work i guess.

Thanks,

Does your website require users to sign in? - If yes, then it is simply to store an incremental number of visits, and increase it each time an user access your site. - If no, it's not possible.

Have a simple login functionality in your website. If not possible, you can have a modal kinda thing that takes the email of the user and check if the email (or any other information) exists in your database and you can increment the number of visits. Keep localStorage so that Next time he/she logs in from the same device the modal need not pop up.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM