![]() Make sure you include links to your Privacy policy and terms of use on all pages that use tracking. _utma: Google Analytics tracking cookie.We will use the following keys on both okie and window.localStorage: In order to utilize tracking ids you need to add them to both your privacy policy and your terms of use preferably under the sub-heading Tracking. To implement this I will use the browsers caching mechanism ( RFC), WebStorage API ( MDN) and browser cookies ( RFC, Google Analytics). It will not however survive the user deleting both their cookies and their browsing cache. This is data which will automagically recreate itself even if the user deletes his cookies or updates his browser. I will track the session by using what is known as a forever cookie. I don't think I can cover them all I'll just list my favorite which would make this an opinionated answer. There are many ways of implementing this. If a user is not logged in, then they will use a guest session which will be invalidated if user deletes cookies and browser cache. Sessions expire if user is not logged in.If this is a problem you can stop reading here. If a user uses 2 different browsers it will result in 2 different sessions. Sessions are browser based and not computer based.Even if several people use the same computer (ie cybercafe) you can track them separately if they log in.You can still track guest users using sessionID.For logged in users, you can always generate the same session id from the users username / password / email.By tracking the session, your database schema will look like this: sesssion: With session tracking you try to track the browsing session instead of the computer visiting your site. ![]() I might not be able to give you an answer to the question you asked but I can show you how to implement session tracking. If you really need to track something based on a computer you will have to write a native application (Apple Store / Android Store / Windows Program / etc). You need to guard against spoofing, session hijacking, etc.Įven if there are ways to track a computer without using cookies there will always be a way to bypass it and software that will do this automatically. Unless you have a way to recreate thisĭata which is unique for each and every machine then your stuck. This data can beĭeleted by the user any time. You will need to save data on the users computer.I don't know if there is or ever will be a way to uniquely identify machines using a browser alone. ![]()
0 Comments
Leave a Reply. |