How to get the IP addresses of visitors on your Shopify store?

In this blog, you’ll learn how to retrieve the user IP easily using some tricks. We are using a service from jsonip.Com (JSonIP) to get the IP address of visitors.How to get the IP addresses of visitors on your Shopify store?

<script>
      $.getJSON('https://jsonip.com/?callback=?').done(function(data) {
        var ip_address = window.JSON.parse(JSON.stringify(data, null, 2));
        ip_address = ip_address.ip;

        //Execute Your Code
        alert(ip_address);
      });
</script>

This Javascript code helps you get the IP address of the visitors.

How to get the IP addresses of visitors on your Shopify store?expoundsofttechsolution How to get the IP addresses of visitors on your Shopify store?

If you get any trouble please leave your queries in the comment box.