Jump to content

Custom Code: Promotional Pop Up targeted to specific countries?

Recommended Posts

  • Replies 1
  • Views 614
  • Created
  • Last Reply

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 the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Archived

This topic is now archived and is closed to further replies.


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