SpiceGems Knowledge Base
All AppsContact Us
GeoIP Country Redirect (Legacy)
GeoIP Country Redirect (Legacy)
  • Overview
  • Getting Started
  • Setup the app for redirection
  • Interpretation of a Redirect Rule
  • Create Redirect Rule
  • Create Exception-Based Redirect Rule
  • Relative-Redirect
  • UTM Parameters in the GeoIP Country Redirect
  • Configuring the Display Settings
  • Auto Redirect
  • Remember Customer’s Choice Settings
  • Whitelist Settings
  • Bypass the Redirection
  • Setup the app for GDPR
  • FAQs
    • How to disable the app?
    • How to redirect visitor automatically without asking for user permission?
    • How to add countries in bulk in redirection rule
    • How to customize the Popup/Banner
    • How to exclude some IPs and URLs from redirection
    • How to test the app & redirect rules
    • Can I use the app on multiple stores in the same browser?
    • Disable Prevent Cross-Site Tracking in Safari on Mac
  • Alpha-2 country codes
  • Customization gallery
Powered by GitBook
On this page
  • 1. General Settings Configuration
  • 2. Advanced Settings (Optional)
  • 3. Save the Rule

Create Exception-Based Redirect Rule

An Exception-Based Redirect Rule allows you to redirect visitors from all countries except specific ones. For example, if you want to redirect all visitors except those from Canada, this type of rule makes it easy to manage.

Here’s a step-by-step guide to creating an exception-based redirect rule.

Steps to Create an Exception-Based Redirect Rule

1. General Settings Configuration

Follow these steps to configure your rule:

  • Enter Redirect Rule Name Provide a unique name for the redirect rule.

  • Select Visitor Countries Add all countries to the "Select Visitor Countries" field except Canada.

Quick Tip to Save Time:

  • Instead of selecting countries one by one, use comma-separated alpha-2 country codes (e.g., US, UK, FR, DE).

  • You can find the alpha-2 codes for all countries here.

  • Copy the list, remove Canada’s code (CA), and paste the rest into the field.

  • Redirect To Store URL Enter the URL of the store or page to which visitors from the selected country should be redirected.

  • Enter Store Name Specify the store name associated with this redirect rule

  • Enable Redirect Rule Check this box to activate the redirect rule immediately.

  • Enable Relative Redirect If enabled, visitors will be redirected to the same relative page on the new domain. For example, if a visitor is on /products/xyz in the main store, they will be redirected to /products/xyz in the target store.

2. Advanced Settings (Optional)

Expand the Advance Settings section to configure UTM parameters for tracking campaigns:

  • UTM Source, UTM Medium, UTM Campaign Add UTM parameters to track the performance of your redirects in analytics tools. For example:

    • UTM Source:

    • UTM Medium:

    • UTM Campaign:

  • Enable UTM Forward Toggle this option to forward the UTM parameters with the redirect.

3. Save the Rule

Once everything is configured, click the Save button to finalize the rule.

PreviousCreate Redirect RuleNextRelative-Redirect

Last updated 6 months ago