I want that if any visitor closes this exit-intent box then it should not come for 7 days. Because it is installed in all the pages so that it comes again and again.
Please help me with this.
Note: I don't want to use HubSpot's exit-intent, because it doesn't have tracking.
@Sameer, you could also set custom cookies in visitors' browsers, calculating and adding an expiration date a week from the current time with a JavaScript Date object.
You could then add JavaScript to your custom module which checks for the presence of this cookie and only renders the pop-up when it is absent.
If you're operating under GDPR, you may also wish to consider binding the cookie to your HubSpot privacy policy consent banner with this method. In such a scenario, there may be no way to avoid displaying the pop-up to visitors who do not consent to be tracked.