Show modal only once per user's session?

How do I make an interaction trigger happen only once per user’s session?

For one of my client’s site menu items, I have an interaction set for the 1st click that triggers a modal to pop up (the animation).

The pop up has two options 1) enter the site 2) cancel

If a user clicks enter the site, navigates around the site, and clicks on the menu a second time, we don’t want the animation to get triggered a second time. How can I stop the animation from getting triggered a 2nd time?

I don’t think you can achieve this with interactions. You would have to use custom code for this.

hi @Nicholas_Grant the topic showing modal only once (per day, month, year or for user) is covered on this forum many times. The simple answer is “use cookies

Anyway the Internet is amazing place to search

feel free to find more solutions (on this forum, Made with Webflow or internet) as there is alway 100 ways to achieve identical result.

I built this as a NOCODE attributes solution some years ago as part of SA5, you can add it here.

You just tag the element you want to suppress, how long you want to suppress it for, and the button that triggers the suppression.

Note this is setup to suppress for a certain number of days, not a “session.” In Web terminology a session is a single site visit in a single tab. Opening a new tab or closing/reopening the current tab is a new session. For your situation I suspect 1 or 2 days would be the right setting.

1 Like