Jump to content

Custom Code: Promotional Pop Up targeted to specific countries?

Recommended Posts

I'm thinking this could be done with a Mutation Observer. When the pop up appears make a couple of calls to ipify to get the ip and then the location. Then if not in Canada suppress the pop up perhaps by display none.

This isn't an easy piece of code but I think doable.

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

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.