samedi 20 décembre 2014

How do I test script on my website that detects country location?

I have a website that is hosted with Adobe Business Catalyst. I have the following liquid code that checks for country location and redirects the user accordingly:



<script> window.location =
{% if globals.visitor.country == 'AU' %}
"/au"
{% elsif globals.visitor.country == 'US' %}
"/us"
{% elsif globals.visitor.country == 'GB' %}
"/gb"
{% else %}
"/store-unavailable"
{% endif %}
</script>


I am located in Australia, so I can only check the country location for Australia. How would I test the script for the other countries?


Thanks


Aucun commentaire:

Enregistrer un commentaire