{"section":"known-issues","requestedLocale":"en","requestedSlug":"applying-a-coupon-removes-initial-utm-campaign-promotion-from-cart","locale":"en","slug":"applying-a-coupon-removes-initial-utm-campaign-promotion-from-cart","path":"docs/en/known-issues/Pricing & Promotions/applying-a-coupon-removes-initial-utm-campaign-promotion-from-cart.md","branch":"main","content":"## Summary\n\n\nThere is a bug where applying a coupon triggers a conflict with a promotion associated with a `utm_campaign`. When a promotion is activated by a specific `utm_campaign` and a coupon (which also has its own `utm_campaign` configuration) is added, the coupon removes the initial promotion. Despite the initial `utm_campaign` remaining in the `orderForm`, the initial promotion is no longer applied. The second promotion is triggered by the coupon, not by the UTM.\n\n\n#### Simulation\n\n\nTo reproduce this behavior, follow these steps:\n\n1. **Create Promotions:**\n\n  - **First Promotion:** Set up a promotion for free shipping that is triggered by a specific `utm_campaign`. This promotion should be configured to activate based on the UTM parameter without requiring a coupon.\n  - **Second Promotion:** Set up a promotion that provides a percentage discount and is associated with a different `utm_campaign`. This promotion should be configured to require a coupon for activation.\n2. **Reproduce the Bug:**\n\n  1. Access the store using a link with the `utm_campaign` parameter that matches the first promotion (e.g., `utm_campaign=FREE_SHIPPING`).\n  2. Add products to the cart.\n  3. Enter a postal code in the cart.\n  4. Verify that the free shipping promotion (first promotion) is applied.\n  5. Apply a coupon that triggers the second promotion (e.g., `DISCOUNT20`).\n  6. Observe that the initial free shipping promotion is removed from the cart after applying the coupon, even though the initial `utm_campaign` remains in the `orderForm`.\n\n\n#### Workaround\n\n\nIf the second promotion (triggered by the coupon) is configured with a `utm_source` instead of `utm_campaign`, the bug can be circumvented. In this case, both promotions will be applied successfully without any conflict."}