P
P
Para_Lapok2021-06-04 10:40:30
JavaScript
Para_Lapok, 2021-06-04 10:40:30

How to track 2 clicks on the button and then not show the element until the next visit to the site?

The site has a roulette that appears automatically when the user goes to the site. This roulette should appear only 2 times - on the initial page and on any other when you go. When the user leaves the site and enters again, the algorithm for the appearance of the roulette wheel is the same. How to do it?
I wanted to do something like this: the roulette appears until the user clicks on the cross (close the roulette) 2 times. But how to track a user? By cookie or session? Everything is done through js.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question