How to get IP address of visitors on your Shopify store

Sell Online With Shopify
Trusted by millions of businesses worldwide
Start your Shopify 14-day free trial and save up to 25% on Shopify when you sign up for an annual, 2-year, or 3-year plan.

Detecting the IP address of your website’s users is useful for a variety of reasons. In this article you’ll learn how to retrieve the user IP easily with a couple of tricks.


We are using service from jsonip.Com (JSonIP) to get IP address of visitor.

The below Javascript to helps you get IP address of a visitor.

I hope it’s helpful for you.

Happy coding!

You may also like...

2 Responses

  1. Jay says:

    Hi, where do we post this code and view the results? Thank you

  2. Esquik says:

    Salut, ou ajouter le code donner?

Leave a Reply

Your email address will not be published.