Retrieving the partner's coupon code on the landing page can be used in a number of different ways, including:
- Using it to pass to the ecommerce store to automatically apply the discount
- Displaying it on the page in order to make the user aware of it
- Passing it onto your email platform in order to create automations with it
How to Retrieve the Partner's Coupon Code
Use the following code to retrieve the partner's coupon code:
<script>
if (typeof window.Inflektion === 'object' && typeof window.Inflektion.getCouponCode === 'function') {
console.log(window.Inflektion.getCouponCode());
}
</script>
Provide this code to your web developer to integrate into the business logic of your website, based on the desired goals.