3

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 2

2

You could use HTML local or session storage. These are both easier to use than cookies. You can also use Mod­ern­izr for browsers that do not support HTML5.

Sign up to request clarification or add additional context in comments.

1 Comment

The first link in this answer appears to be broken. Is an up-to-date link available?
1

html5 websockets might be of help.

1 Comment

Thank you, although this is not exactly what I was looking for, still helpful!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.