Kady Posted November 10, 2020 Share Posted November 10, 2020 Site URL: https://www.janerhyan.com/ Hello! Does anyone know how to use custom code to enhance the Promotional Pup up option on Squarespace? I am specifically wanting to target the Pop-up to only appear to visitors within Canada. Thanks in advance. Link to comment
creedon Posted November 10, 2020 Share Posted November 10, 2020 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.