{"id":19914,"date":"2025-07-12T11:15:56","date_gmt":"2025-07-12T09:15:56","guid":{"rendered":"https:\/\/www.welaunch.io\/en\/?post_type=faq&#038;p=19914"},"modified":"2025-07-12T11:18:17","modified_gmt":"2025-07-12T09:18:17","slug":"country-selector-debugging","status":"publish","type":"faq","link":"https:\/\/www.welaunch.io\/en\/knowledge-base\/faq\/country-selector-debugging\/","title":{"rendered":"Country Selector Debugging"},"content":{"rendered":"<article class=\"text-token-text-primary w-full\" dir=\"auto\" data-testid=\"conversation-turn-8\" data-scroll-anchor=\"true\">\n<p data-start=\"662\" data-end=\"686\">Sometimes your users country may not match your current country. In this case use this guide to find out why the wrong country was detected in our wp country selector plugin.<\/p>\n<h2 data-start=\"662\" data-end=\"686\">Step-by-step guide<\/h2>\n<ol data-start=\"688\" data-end=\"1374\">\n<li style=\"list-style-type: none;\">\n<ol data-start=\"688\" data-end=\"1374\">\n<li data-start=\"688\" data-end=\"895\"><strong>Launch Chrome DevTools<br \/>\n<\/strong>Windows \/ Linux: F12 or Ctrl + Shift + I<br \/>\nmacOS: \u2325 Option + \u2318 Cmd + I<\/li>\n<li data-start=\"688\" data-end=\"895\">\n<p data-start=\"691\" data-end=\"810\"><strong data-start=\"691\" data-end=\"722\">Open your page in debug mode<\/strong><br data-start=\"722\" data-end=\"725\" \/>Open your domain with the extra parameter <strong>?country=debug<\/strong> into the address bar and press <strong data-start=\"798\" data-end=\"807\">Enter<\/strong>:<\/p>\n<p><code class=\"whitespace-pre!\">https:\/\/yourdomain.com<strong>?country=<span class=\"hljs-built_in\">debug<\/span><br \/>\n<\/strong><\/code><\/li>\n<li data-start=\"1025\" data-end=\"1210\">\n<p data-start=\"1028\" data-end=\"1054\"><strong data-start=\"1028\" data-end=\"1052\">View the JSON output<\/strong><\/p>\n<ul data-start=\"1058\" data-end=\"1210\">\n<li data-start=\"1058\" data-end=\"1092\">\n<p data-start=\"1060\" data-end=\"1092\">Switch to the <strong data-start=\"1074\" data-end=\"1085\">Console<\/strong> tab.<\/p>\n<\/li>\n<li data-start=\"1096\" data-end=\"1141\">\n<p data-start=\"1098\" data-end=\"1141\">Reload the page (<code data-start=\"1115\" data-end=\"1119\">F5<\/code> or <code data-start=\"1123\" data-end=\"1137\">Ctrl \/ \u2318 + R<\/code>).<\/p>\n<\/li>\n<li data-start=\"1145\" data-end=\"1210\">\n<p data-start=\"1147\" data-end=\"1210\">The plugin prints one formatted JSON object\u2014the debugging data.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<ol data-start=\"688\" data-end=\"1374\">\n<li data-start=\"1212\" data-end=\"1374\">\n<p data-start=\"1215\" data-end=\"1374\"><strong data-start=\"1215\" data-end=\"1237\">Alternative method<\/strong><br data-start=\"1237\" data-end=\"1240\" \/>In <strong data-start=\"1246\" data-end=\"1268\">DevTools &gt; Network<\/strong>, select the page request, then open the <strong data-start=\"1309\" data-end=\"1320\">Preview<\/strong> or <strong data-start=\"1324\" data-end=\"1336\">Response<\/strong> sub-tab to see the same JSON payload.<\/p>\n<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-19915\" src=\"https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2025\/07\/example-country-selector-debug-data-in-console-1024x958.png\" alt=\"\" width=\"1020\" height=\"954\" srcset=\"https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2025\/07\/example-country-selector-debug-data-in-console-1024x958.png 1024w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2025\/07\/example-country-selector-debug-data-in-console-300x281.png 300w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2025\/07\/example-country-selector-debug-data-in-console-768x718.png 768w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2025\/07\/example-country-selector-debug-data-in-console-600x561.png 600w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2025\/07\/example-country-selector-debug-data-in-console-510x477.png 510w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2025\/07\/example-country-selector-debug-data-in-console.png 1346w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><\/p>\n<hr data-start=\"1376\" data-end=\"1379\" \/>\n<h2 data-start=\"1381\" data-end=\"1427\">2 Field glossary (what each key tells you)<\/h2>\n<table class=\"w-fit min-w-(--thread-content-width)\" data-start=\"1429\" data-end=\"2479\">\n<thead data-start=\"1429\" data-end=\"1446\">\n<tr data-start=\"1429\" data-end=\"1446\">\n<th data-start=\"1429\" data-end=\"1435\" data-col-size=\"sm\">Key<\/th>\n<th data-start=\"1435\" data-end=\"1446\" data-col-size=\"md\">Meaning<\/th>\n<\/tr>\n<\/thead>\n<tbody data-start=\"1465\" data-end=\"2479\">\n<tr data-start=\"1465\" data-end=\"1519\">\n<td data-start=\"1465\" data-end=\"1479\" data-col-size=\"sm\"><code data-start=\"1467\" data-end=\"1478\">users_url<\/code><\/td>\n<td data-start=\"1479\" data-end=\"1519\" data-col-size=\"md\">The URL the visitor is currently on.<\/td>\n<\/tr>\n<tr data-start=\"1520\" data-end=\"1595\">\n<td data-start=\"1520\" data-end=\"1538\" data-col-size=\"sm\"><code data-start=\"1522\" data-end=\"1537\">users_country<\/code><\/td>\n<td data-col-size=\"md\" data-start=\"1538\" data-end=\"1595\">Two-letter ISO country code detected for the visitor.<\/td>\n<\/tr>\n<tr data-start=\"1596\" data-end=\"1663\">\n<td data-start=\"1596\" data-end=\"1615\" data-col-size=\"sm\"><code data-start=\"1598\" data-end=\"1614\">users_language<\/code><\/td>\n<td data-col-size=\"md\" data-start=\"1615\" data-end=\"1663\">Browser language of the visitor (e.g. <code data-start=\"1655\" data-end=\"1659\">de<\/code>).<\/td>\n<\/tr>\n<tr data-start=\"1664\" data-end=\"1728\">\n<td data-start=\"1664\" data-end=\"1679\" data-col-size=\"sm\"><code data-start=\"1666\" data-end=\"1678\">target_URL<\/code><\/td>\n<td data-col-size=\"md\" data-start=\"1679\" data-end=\"1728\">Destination URL the plugin would redirect to.<\/td>\n<\/tr>\n<tr data-start=\"1729\" data-end=\"1801\">\n<td data-start=\"1729\" data-end=\"1748\" data-col-size=\"sm\"><code data-start=\"1731\" data-end=\"1747\">force_redirect<\/code><\/td>\n<td data-col-size=\"md\" data-start=\"1748\" data-end=\"1801\"><code data-start=\"1750\" data-end=\"1753\">1<\/code> = immediate redirect, <code data-start=\"1776\" data-end=\"1779\">0<\/code> = show modal first.<\/td>\n<\/tr>\n<tr data-start=\"1802\" data-end=\"1890\">\n<td data-start=\"1802\" data-end=\"1829\" data-col-size=\"sm\"><code data-start=\"1804\" data-end=\"1828\">force_redirect_seconds<\/code><\/td>\n<td data-col-size=\"md\" data-start=\"1829\" data-end=\"1890\">Delay (seconds) before redirect, if <code data-start=\"1867\" data-end=\"1887\">force_redirect = 1<\/code>.<\/td>\n<\/tr>\n<tr data-start=\"1891\" data-end=\"1975\">\n<td data-start=\"1891\" data-end=\"1928\" data-col-size=\"sm\"><code data-start=\"1893\" data-end=\"1927\">force_redirect_exclude_logged_in<\/code><\/td>\n<td data-col-size=\"md\" data-start=\"1928\" data-end=\"1975\"><code data-start=\"1930\" data-end=\"1933\">1<\/code> = logged-in users are never redirected.<\/td>\n<\/tr>\n<tr data-start=\"1976\" data-end=\"2045\">\n<td data-start=\"1976\" data-end=\"1990\" data-col-size=\"sm\"><code data-start=\"1978\" data-end=\"1989\">logged_in<\/code><\/td>\n<td data-col-size=\"md\" data-start=\"1990\" data-end=\"2045\">Indicates whether the current visitor is logged in.<\/td>\n<\/tr>\n<tr data-start=\"2046\" data-end=\"2102\">\n<td data-start=\"2046\" data-end=\"2063\" data-col-size=\"sm\"><code data-start=\"2048\" data-end=\"2062\">modal_header<\/code><\/td>\n<td data-col-size=\"md\" data-start=\"2063\" data-end=\"2102\">Text shown as the modal\u201fs headline.<\/td>\n<\/tr>\n<tr data-start=\"2103\" data-end=\"2165\">\n<td data-start=\"2103\" data-end=\"2118\" data-col-size=\"sm\"><code data-start=\"2105\" data-end=\"2117\">modal_text<\/code><\/td>\n<td data-col-size=\"md\" data-start=\"2118\" data-end=\"2165\">Body HTML of the modal (localised message).<\/td>\n<\/tr>\n<tr data-start=\"2166\" data-end=\"2246\">\n<td data-start=\"2166\" data-end=\"2184\" data-col-size=\"sm\"><code data-start=\"2168\" data-end=\"2183\">modal_buttons<\/code><\/td>\n<td data-col-size=\"md\" data-start=\"2184\" data-end=\"2246\">Full HTML for the \u201cGo to country\u201d and \u201cStay here\u201d buttons.<\/td>\n<\/tr>\n<tr data-start=\"2247\" data-end=\"2341\">\n<td data-start=\"2247\" data-end=\"2267\" data-col-size=\"sm\"><code data-start=\"2249\" data-end=\"2266\">modal_countries<\/code><\/td>\n<td data-col-size=\"md\" data-start=\"2267\" data-end=\"2341\">Optional custom list of countries in the modal (blank = default list).<\/td>\n<\/tr>\n<tr data-start=\"2342\" data-end=\"2400\">\n<td data-start=\"2342\" data-end=\"2357\" data-col-size=\"sm\"><code data-start=\"2344\" data-end=\"2356\">show_popup<\/code><\/td>\n<td data-col-size=\"md\" data-start=\"2357\" data-end=\"2400\"><code data-start=\"2359\" data-end=\"2362\">1<\/code> = show modal, <code data-start=\"2377\" data-end=\"2380\">0<\/code> = suppress modal.<\/td>\n<\/tr>\n<tr data-start=\"2401\" data-end=\"2479\">\n<td data-start=\"2401\" data-end=\"2416\" data-col-size=\"sm\"><code data-start=\"2403\" data-end=\"2415\">is_default<\/code><\/td>\n<td data-col-size=\"md\" data-start=\"2416\" data-end=\"2479\"><code data-start=\"2418\" data-end=\"2424\">true<\/code> if this market configuration is the global fallback.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr data-start=\"2481\" data-end=\"2484\" \/>\n<h2 data-start=\"2486\" data-end=\"2507\">3 Troubleshooting<\/h2>\n<table class=\"w-fit min-w-(--thread-content-width)\" data-start=\"2509\" data-end=\"3305\">\n<thead data-start=\"2509\" data-end=\"2541\">\n<tr data-start=\"2509\" data-end=\"2541\">\n<th data-start=\"2509\" data-end=\"2519\" data-col-size=\"md\">Symptom<\/th>\n<th data-start=\"2519\" data-end=\"2534\" data-col-size=\"sm\">Likely cause<\/th>\n<th data-start=\"2534\" data-end=\"2541\" data-col-size=\"lg\">Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody data-start=\"2575\" data-end=\"3305\">\n<tr data-start=\"2575\" data-end=\"2745\">\n<td data-start=\"2575\" data-end=\"2597\" data-col-size=\"md\"><strong data-start=\"2577\" data-end=\"2596\">No JSON appears<\/strong><\/td>\n<td data-col-size=\"sm\" data-start=\"2597\" data-end=\"2629\">Wrong URL or parameter cached<\/td>\n<td data-col-size=\"lg\" data-start=\"2629\" data-end=\"2745\">Clear the browser cache or use an incognito window; double-check <code data-start=\"2696\" data-end=\"2712\">?country=debug<\/code> is at the very end of the URL.<\/td>\n<\/tr>\n<tr data-start=\"2746\" data-end=\"2970\">\n<td data-start=\"2746\" data-end=\"2796\" data-col-size=\"md\"><strong data-start=\"2748\" data-end=\"2795\">Redirect fires before you can open DevTools<\/strong><\/td>\n<td data-col-size=\"sm\" data-start=\"2796\" data-end=\"2833\"><code data-start=\"2798\" data-end=\"2818\">force_redirect = 1<\/code> without delay<\/td>\n<td data-col-size=\"lg\" data-start=\"2833\" data-end=\"2970\">Temporarily set <code data-start=\"2851\" data-end=\"2867\">force_redirect<\/code> to <code data-start=\"2871\" data-end=\"2874\">0<\/code> in the plugin settings, or quickly hit <code data-start=\"2914\" data-end=\"2919\">Esc<\/code> to stop the page, then open DevTools and reload.<\/td>\n<\/tr>\n<tr data-start=\"2971\" data-end=\"3102\">\n<td data-start=\"2971\" data-end=\"3007\" data-col-size=\"md\"><strong data-start=\"2973\" data-end=\"3006\">Output truncated or minimised<\/strong><\/td>\n<td data-col-size=\"sm\" data-start=\"3007\" data-end=\"3039\">Chrome collapses long objects<\/td>\n<td data-col-size=\"lg\" data-start=\"3039\" data-end=\"3102\">Click the small \u25b6 triangle next to the object to expand it.<\/td>\n<\/tr>\n<tr data-start=\"3103\" data-end=\"3305\">\n<td data-start=\"3103\" data-end=\"3164\" data-col-size=\"md\"><strong data-start=\"3105\" data-end=\"3163\">Security \/ optimisation plugin strips the query string<\/strong><\/td>\n<td data-col-size=\"sm\" data-start=\"3164\" data-end=\"3198\">Server-side caching or firewall<\/td>\n<td data-col-size=\"lg\" data-start=\"3198\" data-end=\"3305\">Add <code data-start=\"3204\" data-end=\"3219\">country=debug<\/code> to the cache-exception list, or disable optimisation plugins briefly while testing.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr data-start=\"3307\" data-end=\"3310\" \/>\n<p data-start=\"3312\" data-end=\"3496\" data-is-last-node=\"\" data-is-only-node=\"\"><strong data-start=\"3312\" data-end=\"3320\">Tip:<\/strong> Once you have the raw JSON, you can copy it from the console and paste it into a JSON formatter (e.g. jsonlint.com) for prettier inspection or share it with your support team.<\/p>\n<\/article>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","product_cat":[],"class_list":["post-19914","faq","type-faq","status-publish","hentry","faq_topics-country-selector","faq_topics-country-selector-faq"],"_links":{"self":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/19914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/comments?post=19914"}],"version-history":[{"count":4,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/19914\/revisions"}],"predecessor-version":[{"id":19919,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/19914\/revisions\/19919"}],"wp:attachment":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/media?parent=19914"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/product_cat?post=19914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}