How to Limit the Frequency of Pop-Ups Made By Shopify Forms?

Hello. I was using Shopify Forms as a way for customers to subscribe to my store’s mailing list. However, the app does not have a frequency setting, and it’s quite annoying to have the pop-up constantly displaying. Is there a code I can input to limit the frequency of pop-ups made by Shopify Forms? For example, I want to have the pop-up display only twice per day if the visitor has not subscribed to our mailing list.

2 Likes

Hello @ButterflyV
Yes! You can use local storage in JavaScript to limit the Shopify Forms pop-up frequency. This method ensures that the pop-up is shown only twice per day per visitor if they haven’t subscribed.

Great, thank you for this! Do you know what the code should look like and where I should place it in my theme?

I have the same issue. Would be great if there was a setting within the Shopify Forms App.

Were you able to fix it? Can you please share your solution.

Hi @vaf ,

I wasn’t able to fix the issue because I couldn’t figure out how to use local storage with JavaScript. I ended up using a different pop-up app called EcomSend Popups to limit frequency. Customizing this new app to match the appearance of the Shopify form I preferred took quite a bit of time and was frustrating to say the least. I hope we can receive a detailed response on how to implement the JavaScript changes soon and eventually have this implemented in the Forms app itself.

@devcoders Hello. I wanted to follow up on this. Can you please let me know how to implement this change? I’m not too familiar with using local storage or JavaScript.