UTM Parameters
Last updated
Last updated
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:
This URL is clean and has no parameters: https://spicegems.com
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
UTM Forwarding ensures that any custom tracking parameters added to links (outside the app) are forwarded to the destination store after redirection.
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.
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.
Functioning of UTM forwarding when used with or without 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.
utm_campaign=spring_sale
utn_medium=web
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
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.
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
).
utm_campaign=spring_sale
utn_medium=web
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