Jump to content

Unique link based on IP address

Recommended Posts

  • 2 months later...
  • Replies 1
  • Views 376
  • Created
  • Last Reply
On 1/22/2021 at 10:04 PM, DBRIEL said:

Site URL: https://www.mountain-goats.com

Is it possible to provide a link based on a users IP address?
We have a 'merch’ link and we have multiple stores for that link based on location; US/NA, EU/UK, etc, and want the link to direct to proper store via IP.

It can be achieved using javascript, I had created snippet that change the book's amazon store url based on user ip. You can look up user location using this service


BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!


Link to comment


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.