Jump to content

Promotional Pop Up Custom Frequency

Go to solution Solved by paul2009,

Recommended Posts

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
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
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.

age-verification-extension-tile.thumb.png.61e94bf2aed35c362f1a33ef48ba2f4c.png

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
  • 4 weeks later...

Yes, our age verification popup can be used on a single page if required. 

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.