title: Unable to find visitor's location in Liquid code, Shopify
body: <p>I've been trying to filter my products as per the country by tweaking the liquid code of my Shopify theme. But, I'm facing a problem, I want to access the visitor's country in my Liquid code but unable to do that.</p>
  
  <p>I can use AJAX/JQuery to fetch the location but that runs on client side and till then, liquid is already processed on the server side which makes filtering impossible.</p>
  
  <p>I have successfully tried fetching the location using AJAX but don't know how to use it in Liquid code.</p>
  
  <pre><code>$.getJSON("https://ipinfo.io", function(data) {
      console.log(data.country);
  });
  </code></pre>