CLICK HERE TO TRY AUTOMATIC DISCOUNT FOR SHOPIFY

Facebook Dynamic Retargeting UTM discount

QUESTION FROM MERCHANT

We are running multiple Dynamic Retargeting on Facebook and we have 100's of products. What we want to do is simple:
- Only apply a specific discount to customers who click on the dynamic retargeting ad.

What is the problem?
- The problem is the dynamic retargeting ad contains 100's of URL's and this app only provides a static automatic discount link. We need to be able to apply the discount link to all products.

The solution?
- We need to add the discount link code at the UTM parameter so that it automatically recognizes the discount link.

How do we do that?

SOLUTION 

The idea is, you need to set up a script which probably already is in place that sets a cookie for the people coming from the ad like:
UTM_SOURCE = 'this_id' 
You most probably already have this in place
Next step would be to create an automatic discount rule  and select the "advanced javascript rule" (https://gyazo.com/9aadecaa8724472cbd8cbbea05463c82) and to define a very simple rule like:
return (cookie['utm'] === "what you need")
You can make multiple of said rules and apply different discounts for each campaign
facebook-dynamic-retargeting-utm-discount