Izzy2222 Posted October 30, 2021 Share Posted October 30, 2021 Hi there, I am creating a wine sales website and I need a pop up to come up every time a user clicks on the wines sales page. I have created an age restricting pop up using the promotional pop up in squarespace but the problem is the frequency. Once a user has clicked it once, then it doesn't come back again. I have found this code: <script> window.localStorage.setItem('test', '0'); window.localStorage.setItem('squarespace-popup-overlay', '0'); </script> from another forum but when I insert the code - the pop up doesn't go away after the agree button is selected. Could someone please help solve this? Cheers, Izzy Link to comment
Solution paul2009 Posted October 30, 2021 Solution Share Posted October 30, 2021 8 hours ago, Izzy2222 said: I have created an age restricting pop up using the promotional pop up in squarespace but the problem is the frequency. Once a user has clicked it once, then it doesn't come back again. The code (shared earlier here) will cause the promotional pop-up to continuously appear. Every time the user returns to the page (for example from the cart page) it will appear again, which is likely to discourage potential customers. There are a number of other issues with using the promotional pop-up as an age-gate solution, aside from the obvious issue that you'll no longer be able to use it for promotions! The popup can also be dismissed easily by clicking just about anything, including the X (close) button or anywhere outside the popup. This means that underage users are not clicking a specific element to consent, they are simply clicking anywhere to reach the age-restricted content. Nothing will return them to "safety" either. As you've noted, if you don't add code it also won't reappear until the next day - something that can be an issue in some territories. If you're looking for a low-cost solution (one-off payment) that doesn't have these issues, take a look at our Age Verification Popup. You'll find more information on the product page but if you'd like more information you can get in touch and we'll be happy to answer your questions. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
Izzy2222 Posted November 24, 2021 Author Share Posted November 24, 2021 Are you able to make the pop up come up only on a particular tab? Beyondspace 1 Link to comment
paul2009 Posted November 25, 2021 Share Posted November 25, 2021 Yes, our age verification popup can be used on a single page if required. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment