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!
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024