Open 2fersen opened 1 year ago
+1 Happened to me also, when I clicked on the "other donations" link on the results page :-(
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.