Hi @heyboy789,
Thanks for posting!
There isn’t a built-in way to limit the exact number of times someone views a popup. You’d need to write custom code to do that.
You can also use our Advanced Targeting Conditions (ATC) premium extension in combination with custom JavaScript to reduce the custom code you’d need to write. I.e., Makes it more convenient.
For example, ATC lets you run a custom JavaScript function before trying to display your popup. You just need to add the name of your function to your popup’s targeting settings.
Then before that popup displays, Popup Maker will call your function.
With ATC, you only need to write code to keep track of the number of opens and set a cookie after 3 opens.
Basically, your custom JS function would do the following:
1) Use browser storage to keep a count of how many times your popup opens for your visitor.
2) Create a cookie that expires in an hour once your popup count gets to 3.
3) Prevent the popup from opening until the cookie expires.
If it helps or maybe as an alternative, we have a Scheduling extension where you can display a popup for a specific duration of time.
You can view our extensions here.
https://wppopupmaker.com/extensions/
We hope we understood your question. If you need to follow up, please submit a help request
https://wppopupmaker.com/support/#submit-a-support-ticket
Have a great day ??