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

Setup the app for redirection

PreviousGetting StartedNextInterpretation of a Redirect Rule

Last updated 6 months ago

Let’s start understanding how to setup the app to redirect visitors from one store to another store/domain/URLs.

If you have two stores, one for Canada (Local store) and one for the USA (Global store)

and you want to manage the traffic on both stores as mentioned below:

  1. Only Canadian visitors can access the local store and all visitors except Canadians would be redirected to the global store.

  2. If Canadian visitors land on the global store then they would be redirect on the Local store.

In this case, you need to install our app on both stores as you want to manage the traffic from both stores and setup the redirection rules as mentioned below on both stores:

Setup app on Global store:

"If Canadian visitors land on the global store then they would be redirect on the Local store."

To manage the Canadian traffic on the global store we need to create only one rule in the app

Redirect rule: Redirect Canadian visitors to the local store.

Here is the interpretation of the rule:

  • Rule Name: Local Rule (you can use any name as per your need)

  • Visitors Country: Add the Canada

  • Redirect To Store URL: Local store URL (we are taking "sg-localapp.myshopify.com")

  • Store Name: SG LocalApp Canada (you can use name as per you need)

  • Redirection Type: Auto Redirection

Setup app on Local store:

"Only Canadian visitors can access the local store and all visitors except Canadians would be redirected to the global store."

We have two requirements to manage the traffic on the Local store

  1. Only Canadian visitors can access this store

  2. All visitors except Canadians should be redirected on the Global store.

Both requirements can be achieved by creating just one redirect rule

Redirect rule: redirect all visitors except Canadians on the Global store.

Here is the interpretation of the rule:

  1. Rule Name: Global Rule (you can use any name as per your need)

  2. Visitors Country: Add all countries except Canada

  3. Redirect To Store URL: Global store URL (we are taking "line-item.myshopify.com")

  4. Store Name: Line Item USA (you can use the name as per your need)

  5. Redirection Type: Display-based redirection (we are using pop-up for the redirection)

It is recommended to review the before moving on to creating redirect rules.

interpretation of the redirect rule
Create Redirect Rule
Create Exception-Based Redirect Rule