So let's say I have a website which doesn't require login but I want to be able to track the user's activity based on what they click on my website, and display data accordingly. For example, if they keep looking at children's books to buy, I would recommend similar children's books. Is this possible in javascript? The only solution I can come up with is cookies, is there a more efficient way? Thank you. I hope this is an acceptable question to post on here, as it is not code related
2 Answers
You could use HTML local or session storage. These are both easier to use than cookies. You can also use Modernizr for browsers that do not support HTML5.
1 Comment
Anderson Green
The first link in this answer appears to be broken. Is an up-to-date link available?
html5 websockets might be of help.
1 Comment
marcoo
Thank you, although this is not exactly what I was looking for, still helpful!