# Discount codes > Attach a Shopify discount code to a notification so clicking applies it automatically at checkout without typing. Supported message types, rules, and edge cases. Source: https://docs.pinglane.com/campaigns/discount-codes/ You can attach a Shopify discount code directly to a notification so shoppers never have to remember or copy-paste a promo code. When the shopper clicks the notification, Shopify saves the discount into their browser session and applies it automatically when they reach checkout. ## Where discounts work (and why) | Message type | Discount picker supported? | | ---------------------------------------------------- | -------------------------- | | **Notifications (campaigns)** | Yes | | **Reminders** | Yes | | **Welcome Notifications** | Yes (per step) | | **Cart Recovery** | Yes (per step) | | **Browse Reminder, Price Drop Alert, Back in Stock** | No | | **Shopify Flow** | No | **Why discounts are intentionally left off Browse Reminder, Price Drop, and Back in Stock.** Offering coupons simply for viewing a product trains shoppers to browse and wait for a discount instead of buying. Price Drop Alert and Back in Stock already deliver news shoppers explicitly asked for (a lower price or fresh inventory), while Shopify Flow messages typically notify customers about orders already placed. In **Cart Recovery**, a common strategy is to keep step 1 discount-free and reserve a small discount for step 2 or step 3 so full-price buyers convert on their own first. ## How automatic discount links work 1. In the notification editor, open the **Discount** picker and search by code or title. PingLane lists your store’s **active discount codes**, including percentage, fixed-amount, free shipping, Buy X Get Y, and discount codes created by third-party Shopify apps. (Automatic Shopify discounts that have no code, or scheduled discounts that have not started yet, are not listed because they cannot be applied via a discount link.) 2. When you save and send, PingLane routes the main notification click through Shopify’s built-in discount redirect on your store domain (`https://yourstore.com/discount/CODE?redirect=/your-landing-page`). 3. Clicking the notification stores the discount in the shopper’s browser session and immediately forwards them to your landing page. 4. When they check out in that browser, Shopify applies the discount automatically if the cart meets the discount’s rules. PingLane preserves your [UTM tracking parameters](/web-push/fields/utm-tracking/) across both the discount link and the final landing page, so Shopify Analytics and Google Analytics still credit the visit to your notification. ## Rules you should know * **Your Landing URL must be on your store domain** (either your custom primary domain or your `myshopify.com` domain). Shopify’s `/discount/CODE` redirect works only on your store itself. The editor warns you if you enter an external URL, and if the landing URL is still off-store at send time, PingLane drops the discount wrapper and opens the URL directly. * **Discounts attach to the main notification click only.** Chrome/Edge [action buttons](/web-push/fields/action-buttons/) open their own configured URLs without applying the discount. If you include buttons on a discount campaign, keep your main offer on the notification body click, or mention the code in the text for shoppers who tap a button. * **Shopify still enforces all discount conditions.** Minimum spend, eligible collections/products, one-use-per-customer limits, start/end dates, and discount combination settings are all checked by Shopify at checkout. PingLane never modifies or extends your discounts. ## Edge cases * **The discount expires before the shopper clicks.** Because devices can stay offline for days, a shopper might click after the promo ended. The link still opens your landing page cleanly, and Shopify simply ignores the expired code. Match your notification’s [expiration time](/web-push/fields/expiration/) to your sale’s end time so late notifications do not frustrate shoppers. * **The shopper clicks on mobile and checks out on desktop.** Shopify saves the discount in the browser session where the click occurred, so it will not carry over to a different device. * **The discount hits its total usage limit in Shopify.** Shopify stops applying it at checkout, while the notification itself continues opening your landing page. * **You delete or rename the discount code in Shopify after sending.** The sent notification still points to the old code string, so Shopify will not apply it. * **The shopper already had another code in their cart session.** Shopify decides whether both combine or which takes precedence based on your Shopify discount combination rules. Tip Mention the offer clearly in the notification title or message (for example, `"15% off your cart, applied at checkout"`). Shoppers are far more likely to click when they know a real discount awaits without typing a code.