Shopify how-to June 17, 2026 4 min read
How to Display Country-Specific Sizes Based on Visitor IP
Auto-show US/UK/EU sizes by visitor country. Shopify Markets (no code) or IP API (custom).
Method 1: Shopify Markets (No-Code)
Enable Shopify Markets. Add markets per country. Tailor Size Guide auto-detects market and shows the matching chart variant. Country detection happens at CDN level — fastest possible.
Method 2: IP Geolocation API
fetch('https://ipapi.co/json/')
.then(r => r.json())
.then(d => {
if (d.country === 'US') showChart('us');
else if (d.country === 'GB') showChart('uk');
else if (['DE','FR','IT','ES'].includes(d.country)) showChart('eu');
else showChart('default');
});FAQs
How to show sizes by IP?
Shopify Markets or IP API.
IP accuracy?
95-99% at country level.
Auto-detect country
Tailor Size Guide auto-detects visitor country and shows the right chart.