-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save the result in the cookies #29
Comments
+1 PS: From a privacy p.o.v., storing the choices is maybe not the best idea, e.g. if the computer is used by multiple persons (risk could be reduced if cookie timeout is short, and only stored as long as browser is open). Probably also a cookie banner is then required. Therefore probably a better approach would be to avoid somehow that the answers will be lost, as long as the page stays open. |
Maybe store the result in the SessionStorage? - I mean this will work until the user opens a new tab of the website or closes it. And if the user want to go back to the result page via the back button or browser history, we could check if the an item is in storage and use this data to display the results. Another method would be to give an option to send the results as an email to a given user-mail. This is probably a bit more complicated to implement. |
Another Idea is also to have the answers in the query string, that way it wouldn't be stored - we just would need to make sure that the query string is stripped from the url when the pageView is tracked in our Matomo instance. That way someone visiting VoteSwiper from the same computer in the same sessions, he wouldn't see an old result. |
I like the idea with saving the result in the query string. I will have a look on how we could implement the feature in the next days. As soon as I got a suggested solution, I write a comment here. |
Hey
I just finished the wahlswiper, tabt out of the webpage on the smartphone and the result is gone, would be really cool if this gets saved in the cookies.
The text was updated successfully, but these errors were encountered: