track order discount title

Alexandre4
Shopify Partner
1 0 0

Hi there, 

I am front of an issue to track the name of the discount code use by my client on the order confirmation page.

I would like reward instragramer influencers on discount code provided on my sales. 

To do that, my affilaite marketing software, taged my order confirmation page (additionnals scripts checkout) with this iframe to collect the discount name in the voucher variable:

<iframe src="https://affiliatenetwork.com/?key=5b954389e7c1b72426f09ac2-5b954068e7c1b72426f091be&id={{ order_number }}&amount={{ subtotal_price | money_without_currency }}&voucher={{ discount.title }}" frameborder="0" width="1" height="1"></iframe>


in reference with: https://help.shopify.com/en/themes/liquid/objects/discount

But, the tag is perfertly call except on the voucher variable who returns no information... I have try also with {{ discount.code}} and no match too.

Could you help me please?

0 Likes
Victor_Nizeyima
New Member
3 0 0

Hi Alexandre,

You can send me your website. My email is: me@mrclarify.com

Thank you,

Victor Nizeyimana

0 Likes