Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I am currently facing a challenge with integrating UTM tracking parameters and an automatic discount code in a single URL for my Shopify store.
The goal is to track the effectiveness of a specific marketing campaign using UTM parameters, while also automatically applying the discount code 'LIZFENWICK20' for customers who visit through this link.
While the URL https://www.leatherhoney.com/discount/LIZFENWICK20 successfully applies the discount when used alone, it doesn't work when I combine it with UTM parameters for tracking, as in https://www.leatherhoney.com/products/leather-care-kit?utm_source=tracking&utm_medium=redirect&utm_c....
This leads to the discount not being applied automatically when the full URL is used. I need guidance on how to structure a URL that allows both the UTM tracking and the automatic application of the discount code within Shopify's system.
Thank you!
Solved! Go to the solution
This is an accepted solution.
To anyone looking for an answer to the proper formatting, here it is below! This should work to track your campaigns as well as appy an automatic discount:
This is an accepted solution.
To anyone looking for an answer to the proper formatting, here it is below! This should work to track your campaigns as well as appy an automatic discount:
I'm attempting exactly the same and it's not working. I've tried putting the UTM parameters like you have them, and I've also tried putting them in the redirect URL, url encoded and neither works.
I don't see the UTM parameters passing through either redirect. Do you see them on the final landing page URL? I don't. I only see a variant parameter.
This was 5 months ago. Is it still working for you?
thanks for the help!
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025