SpiceGems Knowledge Base
All AppsContact Us
GeoIP Country Redirect
GeoIP Country Redirect
  • 📖Overview
  • Getting Started
  • Country Redirect
    • Create Redirect Rule
    • Create Exception-Based Redirect Rule
    • Bypass the Redirection
    • Redirect Templates (Popup/Banner)
      • Customize Redirect Templates
    • Dynamic Flags
    • FAQs
      • How to redirect visitor forcefully?
      • How to add Flags with the countries in the switcher?
      • What is Same-domain?
      • Can the app perform instant redirection before the page load?
      • How to setup different redirection type on different rules
      • How to Create Popups in Multiple Languages
      • Can the app remember the user's selection when displaying a pop-up/banner
      • How can i test the redirect rules
      • Can I prevent the redirection for specific redirect rule
      • How to forward existing parameters while redirection
  • Country Blocker
    • Create Blocker Rule
    • Create an Exception Based Rule
    • Customize Blocker Template
    • Country Blocker Whitelist Settings
    • Bypass Blocker Rules
    • FAQs
      • How to block certain countries to access my store?
      • How to block certain visitors by IPs
      • How to Bypass from Blocker Rules
      • Can I set a custom message for blocked visitors?
      • Can I allow some users from the block location to access the store?
      • My analytics are showing discrepancies.
  • General Settings
    • Relative Redirect
    • Language Consideration with Relative Redirect
    • Whitelist (Rule based)
    • UTM Parameters
    • Page-Specific Redirection
    • URL Mapping
    • Alpha-2 country codes
  • GeoMarket Redirect
    • GeoLocation Popup
    • Geolocation Popup Editor
    • Auto-Redirect
  • GeoIP Switcher
    • Shopify Market Switcher
    • Manual Switcher
    • Preserve Path
    • Language Consideration
    • Customize switcher template
  • GDPR Info Bar
  • Global Whitelist Settings
  • General FAQs
    • How to disable the app?
    • Can I use the app on multiple stores in the same browser?
    • Foundation of a Redirect Rule
    • Understanding the App functionality
    • Login Issues
    • Disable Prevent Cross-Site Tracking in Safari on Mac
  • App Pricing
Powered by GitBook
On this page
  • Step-1: General Settings
  • Step-2: Redirect Settings
  • Step-3: Redirect Type
  • Step-4: Whitelist
  • Step-5: Advanced Settings
  1. Country Redirect

Create Redirect Rule

PreviousCountry RedirectNextCreate Exception-Based Redirect Rule

Last updated 10 days ago

Let us understand the step-by-step process of creating rules in the app.

  • Open the GeoIP App and click on the 'Create Rule' - Country Redirect option.

Step-1: General Settings

Add the rule name and countries.

Step-2: Redirect Settings

  • Add a destination URL (on which you want to redirect visitors) and Store Name

  • Configure the Relative redirect with the required option (if needed)

If you want to redirect to the same destination URL/path, activate the "Relative Redirect" setting.

Click here to learn more about Relative Redirect and Language Consideration with Relative Redirect.

Note: When you create a destination rule using the same domain URL, the redirect will occur only once per browser session.

For example, if you have a subfolder for the United States market (/en-us) and configure a rule in the app with the destination URL demo-492.myshopify.com/en-us to redirect US visitors accordingly, the redirect will trigger only once during the current session.

Step-3: Redirect Type

Choose a redirect type from Display-based redirection or Auto-redirection

  • Display Based Redirection: A popup will be displayed to visitors choosing to redirect or stay on the primary store.

  • Auto Redirection: It will redirect users forcefully to the destination store without any choice

If you choose "Display Based Redirection" then you can choose the existing template or create a new template from here.

How to create, clone and delete a template?

Step-4: Whitelist

Exclude specific IP addresses (only Public IPv4 supported) or URLs from redirection.

Click here to learn more about rule-based whitelisting

If you want to whitelist for all rules, you need to enable the global whitelist setting and add the required IP addresses or URLs in the global whitelist setting

Go to Settings → Global Whitelist Settings

Step-5: Advanced Settings

This setting consists of 3 functionalities:

  • UTM Parameters: You can add the parameters manually in the app for tracking or activate the Enable UTM Forward to forward existing custom parameters (e.g., tracking parameters from ads) to the destination store.

  • Page Specific Redirection: With this feature, you can activate the page-specific redirection to trigger redirection from specific pages in the store.

  • URL Mapping: With this feature, you can redirect users from an old URL to a New URL, if the old URL page is not available in the store.

The rule is now created in the app and is ready for use.

In case of any queries, please feel free to reach out to help@spicegems.com