Locking a Market with the Country URL Parameter (Early Access)
When you run campaigns, share links, or submit product feeds, you may need a URL that consistently lands customers (and crawlers) in the correct market so they see the intended currency and pricing. You can do this by adding a country code to the URL. This article explains how to add the country parameter to your URLs and provides use cases.
| Note: This feature is currently available to selected merchants only. To request early access, please contact SHOPLINE Support. |
Before You Begin
- Make sure the target market has been created in Settings > Markets.
Supported Pages
You can use the country parameter on:
- Homepage
- All Products
- All Collections
- Product Detail Page
- Product Listing Page
- Blog
- Custom pages
- It also works with standard and customized URLs
Adding a Country Parameter to Lock a Market for a Link
Add "?country=XX" to the end of a URL, where XX is an ISO 3166-1 alpha-2 country/region code (for example, US, GB).
Example:
- https://www.yourstore.com/products/good-hats3?country=US
If the URL already has parameters, use "&":
- https://www.yourstore.com/products/good-hats3?utm_source=google&country=GB
If the country code doesn’t match any market you’ve created, the page will follow your store’s default market behavior.
Market-Locked URL Examples
Example Use Case 1: Fixing Google Merchant Center (GMC) Price Mismatch
When you submit product feeds to Google Merchant Center (GMC), Google crawls the product URLs you provide in the feed and validates what it sees on the page against the feed price.
If your store uses Markets and your product pages may show different currencies or prices under different visitor contexts (for example, based on region/market detection), GMC may flag a price mismatch. For example, your feed may submit UK-market pricing, but the crawler lands on a page view that shows a different market’s currency or price.
Example
UK feed link:
https://www.yourstore.com/products/good-hats3?country=GB
As long as GB (United Kingdom) is included in a Market you created, this link locks the page to that Market.
US feed link:
https://www.yourstore.com/products/good-hats3?country=US
As long as US (United States) is included in a Market you created, this link locks the page to that Market.
| Note: To learn more about this setup, refer to our guide on "Creating a Supplemental Data Source in Google Merchant Center" and "Connecting Google Merchant Center to Google Ads." |
Example Use Case 2: Locking Ad Landing Pages to a Specific Market
If you run ads targeting a specific country, you can append "country=XX" to the landing page URL to keep the landing experience aligned with that market.