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
  • 1. UTM Forward
  • 2. Custom UTM parameters
  • Scenarios of UTM Forwarding and Custom Parameters
  • 1. UTM Forwarding enabled and used with Custom Parameters
  • 2. UTM Forwarding Enabled used without Custom Parameters
  1. General Settings

UTM Parameters

PreviousWhitelist (Rule based)NextPage-Specific Redirection

Last updated 1 month ago

UTM parameters are specific tracking codes that you can add to URLs to track them when users access those URLs. With the GeoIP app, you can utilize the UTM parameters functionality to forward the existing UTM parameters with the URL or add custom parameters in the app to forward with the URL.

Let's understand the UTM parameters with the help of an example:

  1. This URL is clean and has no parameters: https://spicegems.com

  2. This is the URL with the UTM parameters: https://spicegems.com?utm_source=GeoIP_Country_Redirect&utm_medium=US_Redirect_Rule&utm_campaign=popup

These are the initials of the UTM parameters in the URL:

  • utm_source

  • utm_medium

  • utm_campaign

  • utm_term

  • utm_content

1. UTM Forward

UTM Forwarding ensures that any custom tracking parameters added to links (outside the app) are forwarded to the destination store after redirection.

How It Works:

  • When a visitor arrives with UTM parameters (e.g., ?utm_source=google&utm_campaign=spring_sale), enabling UTM Forwarding ensures these parameters are preserved after redirection.

  • This helps maintain accurate tracking in marketing tools like Google Analytics and Facebook Ads.

If the UTM forward is disabled, only the UTM parameters defined in the app will add in URL while redirection.

2. Custom UTM parameters

In the custom UTM parameters, you can add the custom parameters within the app. There are five fields in this block.

  • UTM Source

  • UTM Medium

  • UTM Campaign

  • UTM Term

  • UTM Content

You can create the required UTM parameters to forward them with the URL to the destination store for tracking.

Scenarios of UTM Forwarding and Custom Parameters

Functioning of UTM forwarding when used with or without Custom Parameters:

1. UTM Forwarding enabled and used with Custom Parameters

UTM forwarding is enabled, and we have added the custom UTM parameters in the rule:

  • An existing UTM campaign runs on the source store (line-item.myshopify.com) with the following UTM parameters.

  1. utm_campaign=spring_sale

  2. utn_medium=web

  3. utm_source= google

We have added the following Custom UTM parameters in the redirect rule:

  • UTM Source - NA

  • UTM Medium - NA

  • UTM Campaign - NA

  • UTM Term = roger

  • UTM Content = louis

This is the URL with existing UTM parameters

https://line-item.myshopify.com?utm_source=google&utm_medium=web&utm_campaign=spring_sale

  • After redirection, the app's custom UTM will merge with the existing UTM available in the URL.

  • The destination URL will look like the below URL

https://sg-localapp.myshopify.com?utm_campaign=Final_sale&utm_source=Instagram&utm_medium=autoredirect&UTM_Term=roger&UTM_Content=louis

Note: The priority of existing UTM parameters (created outside the app) will be higher than the custom parameters created in the app.

In case an existing UTM (for example, utm_campaign=Final_sale) is missing in the URL but created in the app (utm_campaign=advertisement), the app will add and forward the custom UTM to the destination store with the URL.

2. UTM Forwarding Enabled used without Custom Parameters

If UTM forwarding is enabled and no custom parameters are added in the app:

  • An existing UTM campaign runs on the source store (line-item.myshopify.com).

  1. utm_campaign=spring_sale

  2. utn_medium=web

  3. utm_source= google

Original URL: https://line-item.myshopify.com?utm_source=google&utm_medium=web&utm_campaign=spring_sale

  • After redirection, the destination URL maintains the existing UTM parameters:

Redirected to: https://sg-localapp.myshopify.com?utm_source=google&utm_medium=web&utm_campaign=spring_sale

If you need any help, please contact us at help@spicegems.com