# Post-purchase best practices Source: https://docs.aftersell.com/aftersell/best_practices A complete strategy guide for building, optimizing, and scaling your post-purchase upsell funnels in Aftersell # Post-purchase best practices This guide covers everything you need to build a high-performing post-purchase upsell strategy in Aftersell - from funnel architecture and product selection to discount strategy, copy and design, industry-specific playbooks, and testing. Whether you are setting up your first funnel or optimizing an existing setup, these best practices are based on patterns from top-performing Aftersell merchants. > [!TIP] > > Want real-world examples from top brands? [Download our Upsell Playbook](https://www.aftersell.com/upsell-playbook) for proven strategies and case studies you can apply to your store today. > [!NOTE] > > Looking for checkout widget best practices? See [Checkout Best Practices](/aftersell/checkout_best_practices). *** ## Funnel architecture Your funnel architecture determines which customers see which offers, and in what order. Getting this right is the single biggest lever for post-purchase revenue. ### How the post-purchase funnel flow works Before building funnels, make sure you understand how the offer flow works. For a full walkthrough, see [Post-purchase Overview](/aftersell/post_purchase_overview). In short: after checkout, Upsell #1 is shown. If the customer accepts, Upsell #2 is shown as a follow-up. If the customer declines, a Downsell is shown instead. After all offers are completed, the customer lands on the Thank You Page. > [!WARNING] > > Shopify limits customers to a maximum of 3 accepted post-purchase offers per order. Only one product can be selected per upsell step. Plan your funnel depth with these limits in mind. ### Start with your hero products Build dedicated funnels for your 3 to 6 highest-volume products first. These are the items that generate 60 to 80% of your store's revenue, and targeting them ensures your highest-traffic orders always see a relevant, optimized upsell. Traits of a hero product: * High sales volume and strong contribution to profitability * Market leadership in their category * Broad customer appeal and positive reviews * Receives dedicated marketing efforts and promotion ### Set up a catch-all funnel A catch-all funnel ensures that every order - even those that do not match your hero product funnels - still sees an upsell offer. This is one of the most commonly missed steps, and skipping it means leaving revenue on the table. How to set it up: 1. Set the trigger to "Show for All Customers" 2. Assign it the **lowest priority** so it only fires when no other funnel matches 3. Include Thank You Page upsells in this funnel for full post-purchase coverage You can adjust funnel priority by clicking the **Manage Priority** button at the top right of the funnel table. ### Use Smart Funnel as your first layer [Smart Funnel](/aftersell/smart_funnel) uses Rokt's AI and machine learning models to automatically select the most relevant upsell offer for each customer. It evaluates at Priority 0 (before all manual funnels), making it a powerful first layer in your strategy. We recommend enabling Smart Funnel alongside your manual funnels. It handles the dynamic targeting automatically while your manual funnels cover specific use cases, Thank You Page offers, and edge cases Smart Funnel does not reach. > [!NOTE] > > Smart Funnel shows offers in the shopper's checkout language and supports the same [32 languages](/aftersell/smart_funnel_reference#supported-languages) as post-purchase offers. Shoppers who check out in any other language skip Smart Funnel and go to your manual funnels, so keep a catch-all funnel live to cover them. ### Add follow-up offers to your funnel Do not stop at the first offer. A well-structured funnel includes offers on both the accept and decline paths: * **Upsell #1** - Your primary offer (highest-margin or most complementary product) * **Upsell #2** (accept path) - Shown when Upsell #1 is accepted. Use this for an additional complementary product or a related add-on * **Downsell #1** (decline path) - Shown when Upsell #1 is declined. Use this for a lower-price alternative or a smaller version of the original offer * **Thank You Page offers** - Product recommendations and upsells on the order confirmation page, shown to every customer regardless of what happened on the post-purchase page This means every customer sees at least two offers (one on the accept or decline path, plus the Thank You Page), and customers who engage see even more. > [!TIP] > > Use AI-powered product recommendation widgets on the Thank You Page to keep engagement high. These widgets automatically surface relevant products based on what the customer purchased, without any manual configuration required. ### Manage funnel priority intentionally When multiple funnels match the same order, Aftersell uses the priority order to determine which one fires. Review your priority list regularly: * Hero product funnels should have higher priority than your catch-all * Smart Funnel always evaluates at Priority 0 (highest) * Seasonal or promotional funnels should be temporarily elevated during campaigns *** ## Product selection Choosing the right products to upsell has a direct impact on conversion rate. The goal is relevance - customers are far more likely to accept an offer that feels like a natural extension of what they just bought. ### Complementary products outperform same-product offers Upselling a complementary product (for example, sandals with a dress, a phone case with a phone, a serum with a moisturizer) consistently outperforms offering the same product the customer just purchased. The exception is consumable or replenishable products where buying a second unit makes sense. ### Strategic product placement across the funnel Since the funnel flow is based on accept and decline actions, think strategically about what goes where: * **Upsell #1:** Your strongest, most complementary offer with the highest expected conversion rate * **Upsell #2 (accept path):** The customer just said yes - they are engaged. Show a second complementary item or a related add-on. This is a warm audience * **Downsell #1 (decline path):** The customer said no to the first offer. Show a lower-price alternative, a smaller size, or a different product category. Reduce the commitment level to recover the conversion ### AI recommendations vs. manual selection Aftersell supports both AI-powered and manually selected product offers: * **AI recommendations (automatic upsells)** use Shopify's Recommendation API to suggest complementary products based on the customer's order. The recommendations consider factors like purchase correlation, order frequency, and product affinity. For stores with very few orders or recently added products, Shopify may not have enough data to generate recommendations - in that case, you can manually add related products in the Shopify Search & Discovery app. You can exclude products from automatic upsells by selecting collections under **Settings > Automatic upsells > Excluded products** - products in the selected collections are not used. * **Manual selection** gives you full control over exactly which products appear. This is best for curated campaigns, seasonal promotions, or when you know your catalog deeply. > [!TIP] > > When using automatic upsells (AI recommendations), you can enable a setting to skip the offer if the product already exists in the original order. In Smart Funnel, this is the "Skip Products in Original Order" toggle. In regular funnels, this is in the Product Details widget settings. We recommend keeping this enabled to avoid offering the customer a product they just purchased. This setting does not apply to the Most Expensive or Least Expensive in Cart product types, which are designed to re-offer items from the original order. We recommend A/B testing AI vs. manual to see which performs better for your store. Many merchants find that AI outperforms manual selection for high-traffic, diverse catalogs, while manual selection wins for stores with a smaller, curated product line. ### Quantity defaults For lower-cost or consumable products, test offering a default quantity of 2 instead of 1. If the x2 offer is accepted more often, it means increased revenue with no extra effort. This works especially well for supplements, food items, skincare, and other replenishable goods. *** ## Discount strategy Discounts are one of the strongest levers for post-purchase conversion, but the approach matters more than the amount. ### Always offer a discount on post-purchase upsells Post-purchase offers convert significantly better with a discount than without one. The customer has already committed to a purchase and is in a buying mindset - a discount at this moment feels like a reward, not a sales tactic. > [!NOTE] > > For best performance, set a non-zero Max Discount for Smart Funnel. Smart Funnel templates do not dynamically adjust based on the discount field value, so a non-zero Max Discount tends to convert best. ### Use compare-at pricing Enable compare-at pricing to visually emphasize the value of your upsell offer. Displaying a higher "compare at" price alongside a lower discounted price makes the deal feel more compelling, even with a smaller actual discount. Example: * Regular price: \$20 * Compare at price: \$25 * Customer sees: ~~\$25~~ \$20 > [!WARNING] > > The visible discount percentage may differ from what you set in upsell settings when "Use Compare at Price" is enabled, since the compare-at price can inflate the perceived discount. Always double-check how it renders on the page by placing a test order. ### Round your discount percentages Always round to the nearest 5th - for example, offer 25% or 30% instead of 27%. Round numbers look more intentional and can boost conversion rates. ### Finding the right discount level A/B test different discount levels to find the sweet spot for your store. The goal is to determine how low you can set the discount without hurting your conversion rate. Common starting points by category: * **Fashion and apparel:** 10-20% off * **Supplements and health:** 15-25% off * **Beauty and skincare:** 10-20% off * **Food and beverage:** 15-25% off * **Electronics and accessories:** 5-15% off * **Home goods:** 10-20% off These are starting ranges for testing - your optimal discount depends on your margins, product pricing, and customer behavior. ### Discount strategy across the funnel Consider varying your discount by funnel position: * **Upsell #1:** Your standard discount (for example, 15% off) * **Upsell #2 (accept path):** Can be the same or slightly lower - the customer is already engaged and buying * **Downsell #1 (decline path):** Consider a slightly higher discount to recover the customer who just said no. A bigger discount on a lower-price item can be very effective here ### When to use percentage vs. fixed dollar discounts * **Percentage discounts** work better for higher-priced items where the dollar savings feel significant (for example, "20% off" on a \$100 item = \$20 saved) * **Fixed dollar discounts** work better for lower-priced items where a percentage feels small (for example, "\$5 off" feels better than "10% off" on a \$50 item) A/B test both formats to see which resonates with your customers. *** ## Copy and design First impressions are crucial on post-purchase pages. Customers make snap judgments, so your value proposition needs to be impossible to miss. ### Emphasize key points with bold text and color Draw attention to the most persuasive elements of your upsell page. Phrases worth highlighting: * The discount percentage or dollar amount * "LIMITED TIME" or urgency language * Countdown timers * Free shipping mentions ### Write clear, benefit-focused headlines Your headline should tell the customer exactly what they are getting and why it matters. Lead with the benefit, not the product name. * Good: "Complete your look - 20% off matching accessories" * Avoid: "You might also like these products" ### Configure your accept and decline buttons intentionally The [Buttons widget](/aftersell/post_purchase_widgets) gives you control over how the accept and decline buttons behave and appear. However, Shopify requires that the accept and decline button text follows strict guidelines - the button wording cannot be customized, only translated into a selected language. What you can configure: * **Accept button text** - Choose between "Pay Now" (displays "Pay now - Product total price") or "Accept Offer" (displays "Accept offer - Product total price") * **Button language** - Select from all supported Shopify Checkout locales to automatically translate both accept and decline button text into the customer's language * **Button layout** - Choose accept above decline, decline above accept, or side by side * **Decline button style** - Secondary or link format * **Button alignment and width** - Adjust positioning to match your offer design * **Supporting text** - Add optional text above or below the buttons with styling controls and dynamic variable support > [!WARNING] > > The accept and decline button text cannot be freely written or customized beyond the two options listed above. This is a Shopify platform restriction, not an Aftersell limitation. The decline button text is automatically set and can only be translated, not edited. ### "Require Confirmation Click to Accept" "Require Confirmation Click to Accept" is available in the Buttons widget for individual offers. This setting adds a second confirmation step before an upsell is accepted. It is worth being aware of if you are using the Most Expensive or Least Expensive in Cart product types, which re-offer items from the customer's original order. If you find that customers are reaching out about unintended purchases on these offer types, this setting can help. It is not needed for all offers, as the additional step may reduce conversion rates. [Learn more →](/aftersell/post_purchase_widgets) ### Long-form vs. short-form offer pages * **Short-form pages** offer concise information, faster load times, and a streamlined experience. They work well for lower-priced, impulse-friendly products. * **Long-form pages** provide detailed product descriptions, features, benefits, and additional images. They work better for higher-ticket products where customers need more information before committing. We generally recommend starting with short-form and testing long-form for higher-ticket items. ### Multi-step offers within a single page If you want to show multiple products on a single upsell page (for example, three accessories on Upsell #1), you can use [multi-step offers](/aftersell/how_to_create_a_multi_step_post_purchase_upsell). Multi-step splits a single page into sequential steps where each step shows a different product. If the customer declines a step, they see the next step on the same page. If they accept, they move to the next page in the funnel (for example, from Upsell #1 to Upsell #2). Multi-step is only available for multi-product upsells and supports up to 12 products per page. We recommend keeping the number of steps minimal for a smooth customer experience. *** ## Thank You Page strategy Not every order qualifies for Post-purchase upsells due to [Shopify's post-purchase restrictions](/aftersell/why_isnt_my_1_click_offer_displaying). Thank You Page upsells act as a fallback, ensuring those customers still see an offer. Unlike Post-purchase offers, Thank You Page offers work with all payment methods. ### Include Thank You Page offers in every funnel Set up Thank You Page upsells in every funnel, including your catch-all. Each funnel's Thank You Page widgets must be configured individually - there is no way to standardize them across multiple funnels. This means if you have 5 funnels, you need to configure the TYP section in each one. Step by step: 1. Open your funnel in the Aftersell admin 2. Scroll to the **Thank You Page** section 3. Click **Add Widget** and select **Product Recommendation** 4. Choose your product selection method, configure your discount, and save 5. Repeat for each funnel, including your catch-all ### Choose the right product selection method Thank You Page product recommendation widgets support three selection methods. Choose the one that fits your store: * **Automatic Upsells** - Lets Aftersell recommend products based on the customer's cart contents. This is the easiest option and tends to convert well because the recommendations are personalized to what the customer just bought. Start here if you are unsure which products to show. * **Specific Products** - Manually select up to 10 products to display. Use this when you want full control, such as promoting a specific product, clearing overstock, or running a seasonal campaign. * **Collections** - Display products from a specific Shopify collection. Use this when you want variety within a curated set (for example, showing items from the same collection the customer purchased from). > [!TIP] > > Enable **Hide product if purchased** to avoid showing items the customer already bought, and **Hide out-of-stock variants** to only display available products. Both settings are in the product recommendation widget configuration. ### Apply a discount to your TYP offers You can apply a percentage or fixed dollar discount directly within the TYP widget. We recommend always including a discount on Thank You Page upsells to give customers a reason to act. Use compare-at price display to visually show the savings. ### Set the right order handling method When a customer accepts a Thank You Page upsell, you choose how the order is processed: * **Modify original order** - Adds the upsell product to the existing order. Free shipping is automatically applied. Use this for a seamless experience where everything ships together. * **Create new draft order** - Creates a separate order for the upsell. Use this if your fulfillment workflow requires separate orders, if you want to offer free shipping only on the upsell, or if your upsells overlap with products in the original order. If your top-sellers are also your main upsell candidates, prefer **Create new draft order** - "Modify original order" silently hides upsells whose variant is already in the customer's order. Bundle products are also not supported with "Modify original order" - Shopify's order-edit API rejects them, so bundle upsells are either hidden or fulfilled as a separate draft order depending on your fallback behavior. See [Order Handling](/aftersell/thank_you_page_extensions_overview#order-handling) for the full trade-off breakdown. ### Use banner text to frame the offer Add a short banner headline above your product recommendations to give customers context. Framing like "Complete the look," "Pairs well with your order," or "Customers who bought this also loved" performs better than showing products with no context. ### Add the app block in Shopify After configuring your Thank You Page widgets in Aftersell, you must add the Aftersell TY widget app block to **both** the Thank You page **and** the Order Status page in your Shopify Editor, then enable it and save. Skipping this step will cause your Thank You Page widgets to not display for customers. > [!WARNING] > > This is one of the most common reasons Thank You Page widgets do not appear. If your TYP offers are not showing, check the Shopify Editor first before troubleshooting anything else. *** ## Upsell strategies by industry Different product categories have different upsell dynamics. For detailed playbooks tailored to your vertical - including recommended products, discount ranges, funnel triggers, and testing priorities for fashion, supplements, food and beverage, beauty, electronics, home goods, and automotive - see [Post-Purchase Strategies by Industry](/aftersell/post_purchase_strategies_by_industry). *** ## Testing A/B testing and multivariate testing are the most effective ways to improve funnel performance over time. See the full [Post-Purchase A/B Testing](/aftersell/post_purchase_a_b_testing) and [Post-Purchase Multivariate Testing](/aftersell/multivariate_testing) guides for detailed setup instructions. ### Key tests to prioritize These are the highest-impact tests based on patterns from top-performing merchants: 1. **AI (dynamic) vs. specific product (static) upsells** - Determines whether automated product matching outperforms your manual curation 2. **Default quantity 1 vs. 2** - Especially impactful for consumables and lower-cost products 3. **Long-form vs. short-form offer pages** - Tests whether customers need more information or prefer a streamlined experience 4. **Same product vs. complementary product** - Tests repurchase vs. cross-sell 5. **Single product vs. multi-product** - Tests simplicity vs. choice 6. **Varying discount percentages** - Finds the minimum discount needed to maintain conversion rate > [!NOTE] > > A/B testing for post-purchase uses Layout A through Layout E (up to 5 layouts). You cannot A/B test one funnel against another funnel - testing happens within a single funnel across layouts. A/B testing is only available for Post-purchase upsells and is not available for Thank You Page offers. For checkout widget testing, see [Checkout A/B Testing](/aftersell/checkout_a_b_testing). ### Data guidelines Before making changes to a funnel, ensure it has run for a minimum of 2 to 4 weeks or collected at least 100 to 200 impressions per layout. Changes made too early are based on insufficient data and can lead to misleading conclusions. Regularly analyze performance data to refine offers, placements, and product selections. An iterative approach helps identify high-conversion strategies while ensuring all changes are based on reliable data. Use the **Revenue per visit** metric as your primary performance indicator over time, as it accounts for unique visits rather than raw impressions. *** ## Common mistakes Avoid these pitfalls when setting up and optimizing your post-purchase funnels: ❌ **No catch-all funnel** - some orders will never see an upsell because they do not match any funnel triggers. Set up a catch-all funnel with the "Show for All Customers" trigger at the lowest priority so every order sees an offer. [Fix it →](/aftersell/quickstart_guide_to_aftersell) ❌ **No Thank You Page upsells** - orders that are ineligible for Post-purchase offers (due to Shopify payment method restrictions) go unconverted. Add Thank You Page upsells to every funnel, including your catch-all. Make sure to add the Aftersell TY widget app block to both the Thank You page and Order Status page in your Shopify Editor. [Fix it →](/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell) ❌ **No downsell configured** - if a customer declines Upsell #1 and there is no downsell on the decline path, you have missed a second chance to convert. Always configure a downsell with a lower-price alternative for the decline path. You can add a downsell in the funnel editor when building your post-purchase funnel. [Fix it →](/aftersell/post_purchase_overview) ❌ **Irrelevant upsell offers** - generic offers that do not relate to what the customer bought reduce conversions and erode trust. Use collection-based triggers and complementary product selection to match offers to what the customer purchased. [Fix it →](/aftersell/how_to_configure_post_purchase_triggers) ❌ **Underutilizing AI tools** - missing out on dynamic personalization that often outperforms manual selection, especially for stores with large or diverse catalogs. Enable Smart Funnel and test AI recommendations in your manual funnels. [Fix it →](/aftersell/smart_funnel) ❌ **Making changes too early** - optimizing before collecting enough data leads to decisions based on noise rather than signal. Wait for at least 2 to 4 weeks or 100 to 200 impressions per layout before drawing conclusions. [Fix it →](/aftersell/analytics_in_aftersell) ❌ **Not testing** - running the same offer indefinitely without testing leaves performance gains on the table. Run at least one A/B test per quarter on your highest-traffic funnels. [Fix it →](/aftersell/post_purchase_a_b_testing) *** ## Need help? If you have questions about setting up or optimizing your post-purchase upsell strategy, chat with our support team using the live chat at the bottom right of the app. # Build a Box Source: https://docs.aftersell.com/aftersell/build-a-box The Build a Box post-purchase offer: shoppers assemble a custom box from products you curate, with volume discounts that deepen as the box fills. **Build a Box** is a post-purchase offer type where the shopper assembles their own box from a set of products you curate, and buys the whole selection in one transaction. Instead of accepting or declining a single product, they choose what goes in and how many, and a volume discount can deepen as the box fills. It sits alongside the single-product and multi-product post-purchase offers, and composes with the usual offer widgets such as the heading and timer. > [!NOTE] > > Build a Box offers several different products. To sell more units of one product at tiered prices, use [Quantity upsells](/aftersell/quantity-upsells) instead. To add one, open the funnel, select **Create offer** (**Create your first offer** on an empty step), choose **Build a box**, then pick the products to start with. ## Setting up the box ### Choosing candidate products The **Product selection** section controls which products a shopper can choose from. These are called *candidates*. 1. Open the box offer in the post-purchase funnel editor. 2. Expand **Product selection**. 3. Select **Add product** and pick one or more products. Products already on the list are excluded from the picker. 4. Save. A box supports up to **12 candidates**. Drag the handle on a row to reorder — that's the order shoppers see. Use the delete icon to remove one; you can't remove the last remaining candidate, since a box needs at least one. ### Box size **Box size** sets how many items the shopper must choose: | Setting | What it does | | - | - | | **Minimum items** | The floor. Counted in items, so three of one product counts as three. | | **Maximum items (optional)** | Leave empty for no limit. Set it equal to the minimum for a fixed-size box. | With a fixed-size box, the editor notes that shoppers must choose exactly that many items and will see a "0 of N selected" counter. > [!WARNING] > > If your candidates can't collectively reach the minimum, the editor shows a critical banner titled **"This box won't be shown to shoppers"**, naming the most items your products do allow and the minimum you set. The offer is skipped entirely at serve time. > > The fix it suggests depends on the cause: > > * **A product has its quantity selector turned off**, so it can only be added once — turn one back on, add more products, or lower the minimum. > * **Otherwise** — lower the minimum, add more products, or raise a product's maximum quantity. > * **The box maximum admits no items at all** — the banner says so instead, and asks you to raise it or leave it empty. ## Discounts ### Discount tiers The **Box discount** section sets a discount that scales with how many items are in the box. Add a tier with **Add tier**, then set **Minimum items for tier N** and **Discount for tier N**. How the rate is chosen: * The shopper gets the rate of the **highest tier they reach**. If you configure 3+ items at 30% and 6+ items at 20%, a shopper with 6 items gets 20%. * The rate is evaluated at the **live item count**, not at the box minimum. A tile opens at full price and re-prices as the box fills, so the rate a shopper is quoted is always the rate their current selection actually earns. * An empty tier table is valid and means the box sells at full price. There is no box-wide discount cap: the tier table is the only thing that sets the rate. The editor shows advisory warnings for two tier shapes that look unintended. Neither blocks saving: | Warning | When it appears | | - | - | | A tier sits below the box minimum, so every box a shopper can buy already earns it | A tier's minimum is under the box floor | | Two tiers both start at the same number of items | Duplicate tier minimums | Two things do block saving the funnel: a box maximum lower than the minimum, and a free gift with an invalid setting (no product chosen, a quantity outside 1 to 20, or text over its character limit). Each shows an error on its field or row until you fix it. ### Free gifts on discount tiers Any discount tier can include a free gift, added to the order at 100% off when the shopper's box reaches that tier. To add a gift to a tier, click **Add free gift** under the tier row and choose a product. Once a gift is attached, click the gift row to expand its settings: | Setting | What it controls | | - | - | | **Gift quantity** | How many units of the gift are added, up to 20. | | **Variant choice** | One variant for the whole gift, or one per unit. Per-unit needs a quantity above 1. | | **Gift name** | Optional. Falls back to the product's own name. Supports `{quantity}` and `{value}`. | | **Price text** | The badge shown on the gift. Defaults to `FREE ~~{value}~~`. `{value}` prints the retail price; `~~text~~` strikes text through. | | **Gift image** | Optional. Replaces the product photo. | | **Locked style** | Before the tier unlocks: show a lock icon, or show the gift's image in a disabled state. | | **Locked label** | Text shown before the tier unlocks. Supports `{quantity}`, `{value}`, and all standard box variables. | | **Lock image** | Optional. Replaces the built-in lock icon (only shown when locked style is set to lock). | To change the gift product, use the replace icon on the gift row. To remove the gift, use the delete icon. The editor shows a warning if a gift is on a tier whose minimum exceeds the box maximum, since that tier can never unlock. **Gift behavior** appears once any tier has a gift and applies to the whole box: * **Give every gift the box has reached** (cumulative). The shopper receives the gift from every tier they have passed. * **Give only the highest reached tier's gift** (selected tier). Only the gift from the deepest qualifying tier is given. **Gift banner text** sets the header shown above locked gifts. Leave it empty to use the default in the offer's language. Supports `{items-to-next-gift}` and `{next-gift}`, as well as all the standard box variables. #### What shoppers see * Locked gifts are listed in a banner, each with its locked label. In the **Split columns** layout the banner sits right below the progress bar; in the other layouts it sits above the buy button. * Earned gifts appear as their own rows, with their price text badge. In **Split columns** they follow the selected products; in the other layouts they sit between the gift banner and the buy button. * Progress bar milestones whose tier carries a gift show a gift icon next to the tier label. * The default progress sentence (`{box-progress}`) names gifts as the box fills: * When the next gift unlocks before the next discount tier, or no further discount is ahead, the line reads "Add 2 more to unlock a free `{gift name}`". * When the next discount tier carries a gift, that tier's line ends with it: "Add 2 more for 20% off + a free `{gift name}`". * Once nothing is left to reach and a discount is in effect, the applied line names the earned gift ("20% off applied + a free `{gift name}`"), or counts them when 2 or more are earned ("20% off applied + 2 free gifts"). * Once nothing is left to reach and no discount is in effect, the line reads "Free `{gift name}` added", or "2 free gifts added" for 2 or more gifts. ### Per-product discounts A candidate can carry its own discount instead of following the box rate. Open the candidate, go to **Discount**, and check **Give this product its own discount**. * The override applies on that product's tile and in the box total, in place of the tier rate. * `0` is a valid override — it holds a product at full price inside an otherwise discounted box. * Leave the override off to follow the box discount. ### Editing several products at once **Edit all products** opens a bulk panel. Uncheck any candidate you want to leave out of the edit. Discount fields that differ across the selection show **Mixed**. Editing one writes your value only to selected products that already have their own discount, and leaving it alone keeps each product's value. Any other field you edit is applied to every selected product. The override checkbox shows an indeterminate state when only some have overrides. ## Per-product settings Each candidate has its own panel, covering **Badge**, **Product image badge**, **Image**, **Product details** (including review ratings, with star colours defaulting to `#fdcc0d` and `#d1d5db`), **Variant options**, **Box limits**, **Discount**, and **Already purchased**. Tile appearance is not set per candidate. It comes from the offer-level [**Layout**](#layout) setting, so every tile in a box is shaped the same way. Two settings under **Box limits** are worth calling out: * **Show quantity selector**: off for the products you pick when creating the offer, and on for products added later. When it's off, each add puts in exactly one unit and there is no per-tile stepper. Turn it on to let shoppers choose a quantity per tile. * **Maximum quantity in a box**: appears only when the quantity selector is on. Leave it empty for no limit, or set it to 1 to keep a variety box varied. The **Already purchased** section controls what happens when a shopper already has this product — bought on the current order or accepted at an earlier step in the funnel. Matched on product ID, so a different variant of a purchased product still counts. Choose one of three treatments: | Option | What it does | | - | - | | **Show normally** | The product appears in the box with no special treatment (default). | | **Show a "Your choice" badge** | The product stays in the box and a pill badge marks it as one the shopper already has. | | **Hide the product** | The product is dropped from the box entirely. Not available for most/least expensive candidates, which are resolved from the order after this setting is read. | When **Show a "Your choice" badge** is selected, three additional settings appear: * **Badge text** — the wording on the badge. Leave blank to use the default for the offer's language ("Your choice" in English). * **Badge color** — the fill color of the badge pill (hex, default `#008060`). * **Badge text color** — the text color inside the badge pill (hex, default `#ffffff`). The badge is visible in the funnel editor preview, so you can see how it looks before publishing. ## Layout **Layout**, under the box's layout settings, sets the tile shape and how many tiles share a row: | Layout | How it looks | | - | - | | **Classic** | Image beside the text, two products per row. | | **Compact grid** | Image above the text, three per row, one per row on a phone. | | **Spotlight** | The first product leads at half width, the rest follow in the compact grid. | | **Split columns** | Products on the left, with the total and the buy button in their own column on the right. | The same section sets the padding around the box. ## Progress **Box progress** controls the fill indicator: | Setting | Options | Default | | - | - | - | | **Position** | Above the products / Above the buy button / Both | Above the products | | **Show progress bar** | On / off | On | | **Bar color** | Hex | `#008060` | | **Bar position** | Above the text / below the text | Above the text | | **Top / bottom padding** | 0–10, in steps of 2 | 0 | There is no "hidden" position. To remove the progress text, clear every **Progress wording** field the editor shows. To remove the bar too, turn off **Show progress bar**. ### Progress text variables Type `{` in any of the three [progress wording](#progress-wording) editors to insert a variable. | Variable | What it shows | | - | - | | `{box-progress}` | The whole default progress sentence. It changes structure across the box's states, which no single hand-written sentence can do — see [Progress wording](#progress-wording) to reword each state instead. | | `{items-in-box}` | How many items are currently in the box. | | `{items-to-go}` | The raw remaining count to the minimum. | | `{box-minimum}` | The box minimum. | | `{box-maximum}` | The box maximum. | | `{current-discount}` | The rate currently in effect. | | `{next-discount}` | The rate unlocked by adding more items. Blank at the deepest tier. | | `{items-to-next-discount}` | How many more items are needed to reach it. Blank at the deepest tier. | | `{items-to-next-gift}` | How many more items are needed to unlock the next gift. Blank once no locked gift remains. | | `{next-gift}` | The name of the next locked gift. Blank once no locked gift remains. | | `{subtotal}` / `{total}` / `{discount}` / `{savings}` | Box prices, summed across the whole selection. Blank until a price resolves. | | `{first-name}` | The shopper's first name. | | `{timer}` / `{timer-end}` | The offer countdown. | The step-header variables available on multi-product offers have no box equivalent and are not offered here. ### Progress wording **Progress wording** is three rich text editors, one for each stage of filling the box. Type `{` in any of them to insert a [variable](#progress-text-variables). Clear a field to hide the progress line in that state. | Editor | When its line shows | | - | - | | **Before the first tier** | Until the box reaches its first tier, and while it is short of its minimum. With no tiers, shown until the minimum is reached. | | **Between tiers** | Once a tier is reached while another is still ahead. With no tiers, shown between the minimum and the maximum. | | **Last tier reached** | Once no further tier can be reached. With no tiers, shown at the maximum, or past the minimum when there is no maximum. | The editor shows only the fields your box can actually reach: * **Before the first tier** appears when the box has a minimum above zero or at least one discount tier. * **Between tiers** appears only when the box has two or more tiers, or a maximum on a box with no tiers. * **Last tier reached** always appears. Every box reaches it. Because these are rich text editors, you can bold, colour, and resize the wording, not just change the words. Changing the box **Language** re-translates any wording you haven't edited. Once you edit a field, it's left exactly as you typed it. ## Tile button text The **Tile button text** section in the Buttons panel lets you customize the wording on the Add and Remove buttons that appear on each candidate tile, for this funnel only. * **Add button text** — the label shown on a tile before the shopper adds the product to their box. Defaults to "Add to box". * **Remove button text** — the label shown on a tile after the shopper has added the product. Defaults to "Remove". Leave either field blank to use the default for the offer's language. The unavailable state label ("Unavailable") is not affected by these settings. ## Shipping The **Shipping** section sets what the box charges for delivery. The box either ships free or adds a shipping charge. When you charge, you set the amount and choose whether to multiply it by how many items are in the box, so a six-item box can cost six times a per-unit rate or one flat fee. ## Language and order tagging * **Language** sets the language used for the box copy and buttons, and for product-detail translations. * **Order tag** applies a Shopify tag to every order that accepts the box. Use it to route fulfillment or to isolate box orders in reporting. ## Limitations * **One shared accept button.** The box has a single call to action rather than per-product buttons, because Shopify caps how many accepts a post-purchase page can make. * **No replacement offers.** A box can't be used as a replacement upsell. * **The price breakdown doesn't collapse.** **Show price breakdown**, under **General settings**, turns it on or off. When it's on it is always expanded — the multi-product offer puts its breakdown behind a "Show price breakdown" link instead. ### Subscription-only products Products configured to sell only as a subscription (`requiresSellingPlan: true` in Shopify — no one-time purchase option) cannot be included in a build-a-box offer. Every item in a box is charged as a one-time purchase on the order, so Shopify rejects subscription-only products at serve time. These candidates are silently dropped on every real order, even though the funnel editor preview continues to show them. The funnel editor warns you when this situation is detected: * **Warning banner** — some candidates are subscription-only but enough non-subscription candidates survive to reach the box minimum. The banner lists the affected products by name. The offer still shows to shoppers, but with fewer products than configured. * **Critical banner** — all candidates are subscription-only, or the surviving non-subscription candidates cannot reach the box minimum. The offer is skipped entirely for every shopper. **If you see the warning banner**, the box still works — it just serves fewer products than you configured. Add more candidates that can also be bought once, so the box carries the range you intended. **If you see the critical banner**, the offer won't run at all until you fix it. Any of these clears it: * Add candidates that can also be bought once. * Lower the box minimum, so the surviving candidates are enough to reach it. * Turn off "subscription only" on the affected products in Shopify, if they should also sell as a one-time purchase. You can also remove the subscription-only candidates from the box entirely. That changes nothing for shoppers — they're already dropped on every real order — but it silences the banner and makes the editor preview match what actually serves. Subscription-**enabled** products (those offering both a one-time purchase and a subscription) aren't dropped from a box. They're simply sold as a one-time purchase, like every other box item — a box never carries a selling plan. # A/B test Aftersell Cart against another cart app Source: https://docs.aftersell.com/aftersell/cart/ab-test-against-another-cart Use Shopify Rollouts to A/B test Aftersell Cart against another cart app, split live traffic between two themes, and compare conversion and bounce rates. Shopify Rollouts lets you run a controlled experiment between two themes on your live storefront. You can use it to compare **Aftersell Cart against a different cart app** head to head: one theme runs Aftersell Cart, the other runs the other app, and Shopify splits real shopper traffic between them and reports which one converts better. This is different from an [Aftersell Cart test](/aftersell/cart/tests-overview), which compares two of your own Aftersell Cart variations against each other. Use a cart test to tune Aftersell Cart itself; use a Shopify Rollouts experiment to decide between Aftersell Cart and another app. > [!NOTE] > > Rollouts is a native Shopify feature, not an Aftersell one, and it lives in your Shopify admin under **Markets → Rollouts**. Running an **experiment** (the A/B test this page describes) requires the Shopify **Grow plan or higher**; launch-only rollouts are available on lower plans. [A/B test Aftersell Cart or Upcart against another cart app](https://www.loom.com/embed/1d5ca118b23c415f846c96cf61573464) ## How it works A Rollouts experiment has two sides: * **Control** - your currently live, published theme. You can't change which theme is the control; it is always the published one. * **Treatment** - one theme that you select. This is the variation you are testing against the control. You set how traffic is split between the two. On the scheduled start, Shopify creates a dedicated copy of the treatment theme for the experiment to run against, then splits shoppers between the control and that treatment copy and records how each side performs. An experiment is always **two themes only**: the control (your live theme) and one treatment theme. You can't add a third. ## Before you start Set up two themes so each side runs a different cart: * Your **live (published) theme** running Aftersell Cart as the control. Aftersell Cart needs **both** its app embed enabled in that theme **and a published cart** - with the embed on but no published cart, the theme serves its default cart and the comparison is invalid. See [Creating carts](/aftersell/cart/creating-carts). * A **second theme** with the **other cart app's app embed enabled** (and Aftersell Cart's embed turned off), set up to serve that app's cart. This is the treatment. App embeds are toggled per theme in **Online Store → Themes → Customize → App embeds**, so each theme can carry a different cart app. ## Set up the experiment 1. In your Shopify admin, go to **Markets → Rollouts**. 2. Create an experiment and choose your **treatment theme**. The control is your live theme and is selected for you. 3. Set the **traffic split** to divide visitors between the control and the treatment, and keep the **traffic allocation** at 100% so the whole eligible audience is in the test. 4. **Schedule a start time.** An experiment can't start immediately. You pick from 30-minute time slots, and you have to choose a slot that hasn't passed yet. 5. Confirm. On the scheduled start, Shopify duplicates your treatment theme and begins splitting traffic. > [!TIP] > > For an unbiased test, use a **50/50 traffic split** so each cart gets the same share of traffic. An uneven split skews which cart appears to win and makes the result harder to trust. > [!NOTE] > > **Allocation and split are different settings.** Allocation is the share of eligible visitors who enter the rollout; the split is how that audience divides between control and treatment. They multiply, so a 50% allocation with a 50/50 split shows the treatment to only a quarter of visitors. For a straight A/B test, keep allocation at 100% and set the split. ## Read the results Once the experiment is live, click into it again to see the share of sessions allocated to the control and the treatment, along with these metrics for each side: | Metric | What it measures | | - | - | | **Sessions** | Online store sessions that were exposed to a page where a customization has been made. | | **Conversion rate** | The share of those sessions that placed an order. | | **Reached checkout rate** | The share of sessions that reached checkout. | | **Added to cart rate** | The share of sessions where an add to cart happened. | | **Bounce rate** | The share of online store sessions with only a single page view. | Compare the two sides on the metric that matters most to you, usually conversion rate, to decide which cart performed better. ## See both versions yourself To QA both carts on your live store, you need Shopify to assign you to each side in turn. Clearing your cookies and refreshing makes Shopify re-roll which version you land on. A few things to know: * **It isn't deterministic.** Even on a 50/50 split, the experiment doesn't flip you back and forth. After you clear cookies and refresh you might land on the same theme and cart again. Repeat the clear-and-refresh until you land on the other side. * **You can clear just the one cookie.** Instead of clearing every cookie, open your browser's developer tools, go to the **Application** tab, and delete the **`_shopify_essential`** cookie. Removing it makes Shopify treat you as a new visitor and re-assign you. > [!WARNING] > > On a password-protected storefront, deleting `_shopify_essential` also clears your storefront password authorization, so you'll have to re-enter the store password. *** **Need help?** If you have questions about setting up a Rollouts experiment with Aftersell Cart, reach out to our support team via the in-app chat. # Add-to-cart interception Source: https://docs.aftersell.com/aftersell/cart/add-to-cart-interception Why Aftersell takes over add-to-cart, how to tell whether a form is intercepted, and every way to opt a form out. When a shopper clicks **Add to cart**, Aftersell usually handles the add itself instead of letting the theme do it. This page explains why, what it means for scripts you've added, and how to turn it off for one form or for all of them. Most stores never need to change any of this. Read on if a script of yours stopped firing on add-to-cart, or if an add-to-cart button behaves oddly. ## What interception does Aftersell listens for the add-to-cart submit before the theme does. When it recognizes one, it: 1. Stops the event, so nothing else on the page handles that click. 2. Sends the add to Shopify itself. 3. Opens the Aftersell Cart drawer. Step 1 is the important one, and it's the reason this page exists. ## Why it exists Without it, both carts respond to the same click. The theme adds the item and opens its own drawer, Aftersell adds it and opens ours, and the shopper sees two carts, often with the item added twice. Stopping the event is the simplest way to guarantee one add and one cart. ## What it costs Stopping the event stops it for **everyone**, not just the theme. Any other code listening to that same add-to-cart stops running: your analytics, a tracking pixel, a subscription or bundle app, a script you added yourself. It fails quietly. Nothing appears in the browser console, and the add itself still works, so the usual symptom is a number that's wrong rather than something visibly broken: * `add_to_cart` events missing from GA4, Meta, or TikTok * A subscription or bundle app that works on the product page but not through the cart * Your own `addEventListener` on the form never firing If any of that sounds familiar, this page is the cause and the fix is below. ## When Aftersell doesn't intercept Interception isn't always on. Aftersell leaves add-to-cart alone when: * **It recognizes your theme's cart.** On themes Aftersell knows how to work with, it makes the theme's own cart inert instead of blocking the event, then lets the theme perform the add normally. Your scripts run as they always did. See [Which themes](#which-themes-aftersell-recognizes) below. * **The form doesn't add a line item.** A form with no variant `id` and no `items[]` is left alone. * **You've opted out** using one of the methods below. When Aftersell doesn't perform the add, it still watches for the cart request and opens the drawer when it sees one. See [Before you choose: what changes](#before-you-choose-what-changes). ## Which themes Aftersell recognizes | Theme | | | - | - | | **Dawn** and the rest of Shopify's free family | Craft, Colorblock, Crave, Origin, Publisher, Refresh, Ride, Sense, Spotlight, Studio, Taste | | **Horizon** | Shopify's current default theme | | **Impulse** | | Aftersell matches on **how a theme is built**, not on its name, so a custom theme forked from any of these is normally recognized too, including private builds Aftersell has never seen. > [!NOTE] > > The reverse also happens: a heavily customized build can drift far enough from its parent that Aftersell no longer recognizes it, even though the theme is still called "Dawn". Being on this list makes recognition likely, not certain. ## Your options Choose the narrowest one that solves your problem. Each row gives up more than the one above it. | Option | Scope | Aftersell still opens the drawer | | - | - | - | | [`registerSkipAddToCartRule`](#per-form-a-rule-in-code) | The forms your rule picks | Yes, from the cart request | | [`aftersell-cart-skip-atc`](#per-form-a-class-in-your-theme) | One form or button | Yes, from the cart request | | [`skip_add_to_cart_interceptor`](#whole-store-turn-interception-off) | Every form on the store | Yes, from the cart request | ### Before you choose: what changes Opting out hands the add back to your theme, which raises two questions worth answering before you pick a row: whether your cart still opens, and whether the theme's cart turns up next to it. #### Will your cart still open? Usually yes, with no work on your part. Whoever performs the add, Aftersell watches for the request going to Shopify and opens the drawer when it sees one, following your normal **Open cart when an item is added** setting. You don't have to call anything yourself. Three situations break that, and all three have a fix: **The add goes somewhere other than Shopify's cart endpoints.** Aftersell watches `/cart/add`, `/cart/change`, `/cart/update` and `/cart/clear` on your own domain. An app that adds through its own endpoint and syncs the cart afterwards isn't visible to this. Open the cart yourself once that app's add finishes: ```js theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} window.aftersell.cart.actions.refresh().then(() => { window.aftersell.cart.actions.open(); }); ``` **More than about three seconds pass between the click and the request.** Aftersell treats an add that closely follows a real click or keypress as shopper-driven. Beyond that window it's considered a background add, which doesn't open the drawer unless you opt in: ```js theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} window.aftersell.cart.configure({ open_on_background_add: true }); ``` **Your cart setting says not to.** If **Open cart when an item is added** is off, or you've set `open_on_add_to_cart: 'never'`, nothing opens the drawer. That's working as configured. #### Will the theme's cart open too? This is the risk the opt-outs carry, and the answer depends on your theme. Making the theme's cart inert is **separate from interception** and happens at page load either way, so none of the opt-outs here switch it back on. On a theme from the [recognized list](#which-themes-aftersell-recognizes), the theme's own cart stays quiet and the shopper sees one cart, yours. On a theme Aftersell doesn't recognize, there's nothing holding the theme's cart back. Opting out means the theme handles the add exactly as it always did, including opening its own drawer or redirecting to `/cart`, while Aftersell opens its drawer from the request it saw. That's two carts, and it's the reason interception exists in the first place. If that happens, you have three choices: leave interception on for that form, use a narrower opt-out that doesn't cover the forms causing it, or stop the theme's own cart yourself in your theme code. > [!TIP] > > Turn an opt-out on in a test or unpublished theme first. If the theme's own cart appears where it didn't before, your theme isn't one Aftersell recognizes, and you'll want to keep interception on for those forms. > [!NOTE] > > This applies to add-to-cart only. Making the **cart icon** bypass Aftersell with the `aftersell-cart-wont-open-cart` class is different: a cart-icon click sends no request, so there's nothing for Aftersell to watch, and the drawer will not open. See below. ### Per form: a rule in code The preferred option. Register a rule that returns `true` for the forms you want left alone: ```js theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} window.aftersell.cart.hooks.registerSkipAddToCartRule((form) => form.hasAttribute('data-skip-aftersell') ); ``` Put it in **Cart settings → Custom script → Initialization**. Rules are additive: yours runs alongside any others, and any rule returning `true` skips that form. Full details in [Hooks](/aftersell/cart/sdk-hooks#registerskipaddtocartrule). ### Per form: a class in your theme If you'd rather not write a rule, add the `aftersell-cart-skip-atc` class in your theme: ```html theme={"theme":{"light":"snazzy-light","dark":"github-dark"}}
``` > [!NOTE] > > For a form submit, the class must be on the **form element itself**. A parent `div` won't work. For a button that adds to the cart without a form submit, the class can be on the button or any element around it. ### Whole store: turn interception off The blunt option. Add-to-cart behaves exactly as your theme originally did, on every form: ```js theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} window.aftersell.cart.configure({ skip_add_to_cart_interceptor: true }); ``` > [!WARNING] > > This one is read **once, when the cart loads**. It only works from your cart's **Initialization** script. Setting it later, inside `ready()` or from an event handler, does nothing and fails silently. Reach for this only when the per-form options don't fit, for example when the forms you need to exempt are created by another app and you can't identify them reliably. ## The cart icon is separate The cart icon in your header is handled by its own interceptor, with its own opt-out. Turning off add-to-cart interception does not change what the cart icon does, and the reverse is also true. Clicking the cart icon opens the Aftersell drawer instead of going to `/cart`. To leave one icon or button alone, add the `aftersell-cart-wont-open-cart` class to it, or to any element around it: ```html theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} Cart ``` That control then does whatever your theme makes it do, usually going to the cart page. Aftersell is out of the picture entirely, so **the drawer will not open**. Unlike add-to-cart there's no request to watch for, so if you want your cart to open from that control you have to say so: ```js theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} document.querySelector('#my-cart-link').addEventListener('click', (event) => { event.preventDefault(); window.aftersell.cart.actions.open(); }); ``` The same silencing problem applies here: because Aftersell stops the click, your analytics and pixels don't see cart-icon clicks either. If that's all you need to fix, keep the drawer and stop the silencing: ```js theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} window.aftersell.cart.configure({ skip_open_cart_interceptor: true }); ``` Your listeners run, the drawer still opens, and the click still doesn't navigate to `/cart`. Full details in [Configure](/aftersell/cart/sdk-configure#skip_open_cart_interceptor). > [!NOTE] > > To change *which* elements open the cart rather than turning them off, use **Cart settings → Advanced → Cart icon selector** instead of editing your theme. ## Where to go next * **[Configure](/aftersell/cart/sdk-configure)**: every SDK option, including the ones referenced here. * **[Hooks](/aftersell/cart/sdk-hooks)**: per-form and per-line control. * **[Open the drawer from a page builder](/aftersell/cart/sdk-use-case-page-builder)**: for Replo, PageFly, GemPages, and custom buttons that add to the cart their own way. # Cart analytics Source: https://docs.aftersell.com/aftersell/cart/analytics Read per-cart performance for your Aftersell Cart — revenue, impressions, conversion, and top products. The **Analytics** page reports how your published carts are performing. This page covers the **cart** view — for per-variant test metrics, see [Test analytics](/aftersell/cart/test-analytics). ## Per-cart metrics Each cart's performance is shown over a date range you choose, with a change badge comparing it to the previous equal-length period: | Metric | What it means | | - | - | | **Revenue** | Revenue added by your cart through upsells and add-ons. Subscription upgrades are counted separately below, because their value recurs. | | **Cart impressions** | How many times the cart was shown to a shopper. A shopper who opens the cart several times in one visit is counted each time. | | **Checkouts completed** | Cart sessions that went on to complete an order. | | **Conversion rate** | The share of cart impressions that led to a completed order. Sessions are divided by impressions, so a shopper who opens the cart three times in one visit counts once on top and three times underneath. | | **Subscription upgrades** | The **count** of subscription upgrades (not a revenue figure). | | **Top performing products** | Products sold through cart upsells and add-ons, ranked by the revenue they brought in. | An **overall** view also offers a **Compare** toggle to overlay the previous period. ## How the data is collected Analytics are built from your orders. When an order completes, Aftersell attributes it back to the cart and records impressions, conversions, and revenue, which roll up into the reports. Conversion rate divides converting cart sessions by cart impressions. A shopper who opens the cart multiple times in one visit contributes once to the numerator and once per opening to the denominator, so the rate reflects impressions rather than unique visitors. ## Exporting The **Revenue**, **Conversion rate**, and **Subscription upgrades** charts each have an **Export to CSV** button that downloads the displayed series (including the comparison series if Compare is on). The KPI cards and Top products don't currently export. ## A note on revenue coverage The revenue figures count **upsell** and **add-on** revenue only — every revenue query on this page filters to those two categories. Subscription upgrades are reported separately, as a conversion count rather than a revenue figure, because the value recurs. This is a subset of everything your cart earns, not a full partition of it, so these figures won't reconcile against a store-wide revenue total. # Banner block Source: https://docs.aftersell.com/aftersell/cart/banner-block The Aftersell Cart Banner block: a message banner shown inside the drawer, with an optional countdown timer. > The **Banner** block is a message strip shown inside the cart, useful for promotions, shipping messages, or urgency prompts such as a free-shipping notice, a sale announcement, or a "cart reserved" prompt. It can include a live countdown timer. ![Banner block in the Aftersell cart drawer showing a reservation countdown message](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/cart-banner-block-reservation-countdown.png?fit=max\&auto=format\&n=1Y3gBpUfxv16VGSW\&q=85\&s=8aff1b333a8ebe9005d2d70bc7f9a2cd) ## Behavior * **The countdown only runs when all three conditions are met:** the timer is enabled, the text contains the `{{timer}}` token, and the duration is greater than zero. Otherwise the banner shows as static text. * The timer counts down in `MM:SS` and is remembered for the shopper's tab (it survives navigation within your store during the session), so it doesn't restart on every page. * **When the timer reaches `00:00`, the entire banner disappears**, so shoppers never see a zeroed-out clock. * In the editor preview the timer loops and the banner never hides, so you can keep styling it. ## Settings | Setting | What it controls | Default | | - | - | - | | **Text** | The rich-text message. Include the `{{timer}}` token to show a countdown. | `Your cart is reserved for {{timer}} minutes!` | | **Countdown timer** | Turns the countdown on or off. | On | | **Minutes** / **Seconds** | How long the countdown runs. Two number fields, shown once **Countdown timer** is on and displayed as `MM:SS` where `{{timer}}` appears. | 10 minutes | The text is translatable. ## Placement and limits * **Region:** any (top, body, or bottom). * **Maximum:** 3 per cart state — the filled cart and the empty cart each get their own allowance. * **State:** both filled and empty cart. * Added to new carts by default. Not locked, so you can remove or hide it. ## Custom template Supports a [custom template](/aftersell/cart/custom-templates) from its Code tab, which replaces this block's built-in markup with your JSX. These are the props it receives. | Prop | Type | What it's for | | - | - | - | | `text` | `string` | The banner message as sanitized HTML, with the `{{timer}}` token **already replaced** by the live countdown. | | `shouldUseTimer` | `boolean` | `true` when the countdown is running for this banner. | | `isTimerExpiredAndShouldHide` | `boolean` | `true` once the countdown has reached zero. | | `isLoading` | `boolean` | Always `false` here: the block renders its built-in skeleton during load and only calls your template once the cart is ready. | There's no separate `timer` prop. The countdown is interpolated into `text` for you, so rendering `text` is enough. ```jsx theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} function CustomTemplate(props) { // The built-in banner removes itself at 00:00; a custom template must do the same. if (props.shouldUseTimer && props.isTimerExpiredAndShouldHide) return null; return (
); } ``` > [!WARNING] > > That early return matters. Without it your banner keeps rendering after the timer expires, and because the token is already substituted, shoppers see a frozen `00:00`. ## Design Style this block with its **Design** section in the settings panel. These are per-block overrides that layer on top of your global design and fall back to it when blank. ### Text The **Text** section in Design lets you control the typography of the banner message. Bold and text color are set in the Rich Text Editor above (in the Settings tab), not here. | Setting | What it controls | Default | | - | - | - | | **Font** | Font family for the banner text. | Inherits from theme | | **Size** | Font size. | `14px` | | **Line height** | Line height multiplier. | `1.4` | | **Letter spacing** | Tracking between characters. | Normal | ### Style | Setting | What it controls | Default | | - | - | - | | **Background color** | The banner's background fill. | `#000000` | | **Text color** | Fallback text color (overridden by the Rich Text Editor). | `#ffffff` | | **Border** | Whether the banner has a border — **None** (0px) or **Show** (1px). | None | | **Border color** | Color of the border when **Show** is selected. | Transparent | What are design settings? Learn more here: [Design settings](/aftersell/cart/design-settings). # How do blocks work? Source: https://docs.aftersell.com/aftersell/cart/blocks-overview Understand Aftersell Cart blocks: sections and sub-blocks, filled vs empty, limits, locked blocks, conditions, and per-block settings. Your cart's layout is a stack of **blocks**: configurable pieces you add, reorder, style, and customize in the cart editor. Which blocks you include, and in what order, is the cart shoppers see. For how blocks sit inside **states** and **sections**, see [How do carts work?](/aftersell/cart/how-carts-work). ## Blocks and sub-blocks There are two kinds of block: * **Blocks** sit directly in the cart, in one of three sections: **Header**, **Body**, or **Footer**. Each section offers a different set of blocks. * **Sub-blocks** nest inside another block. Today only [**Cart items**](/aftersell/cart/cart-items-block) hosts sub-blocks: the **Product** row (the line-item row itself), [**Subscription upgrade**](/aftersell/cart/subscription-upgrade-block), and [**Custom code**](/aftersell/cart/custom-code-blocks). ## Adding, reordering, and removing blocks * **Add** a block with the **Add block** picker. A block is greyed out if it can't go where you're adding it, or if you've reached its limit (the picker shows a `count/max` badge). * **Reorder** by dragging a block within its section. * **Remove** with the trash icon, except locked blocks (below). * **Show/hide** most blocks with the eye toggle, which hides a block from shoppers without deleting it. A few structural blocks can't be hidden: **Cart items**, **Checkout button**, and the **Product** row. ## Locked blocks Some blocks can be reordered but not deleted, so core cart behavior (for example, checking out) can't be removed by accident: * **Cart items** * **Checkout button** ## Default blocks New carts start with a working default layout: * **Filled cart:** Header, Banner, Cart items, Summary, Checkout button * **Empty cart:** Header, Empty cart block > [!NOTE] > > The **empty cart state** is the whole empty layout. The **Empty cart block** is one block inside it. See [How do carts work?](/aftersell/cart/how-carts-work) for the difference. ## How many of each block you can add Limits are counted **per cart state**, not per cart. The filled cart and the empty cart each get their own allowance, so a cart can hold three Banners in its filled layout and three more in its empty layout. Most blocks are limited to one per state. The exceptions: | Block | Maximum per cart state | | - | - | | Banner | 3 | | Image | 3 | | Product add-on | 3 | | Summary | 2 | | Custom code | Unlimited | ## Content, Design, and Code Each block is configured through up to three surfaces in the editor: * **Content**: the block's settings (text, product choices, thresholds, and so on). The **Custom code** block is the one exception: it has no Content panel because the block *is* the code. * **Design**: per-block styling that layers on top of your global [**Design settings**](/aftersell/cart/design-settings). Every block has one except **Custom code**, which has no settings panel at all. * **Code**: override the block's built-in rendering with a [**custom template**](/aftersell/cart/custom-templates). Most blocks support this; a couple don't. ## Show or hide by market, country, or currency Some blocks can show different settings, or hide entirely, based on who the buyer is. That is separate from the sidebar **eye toggle**, which turns a block on or off for everyone. | | **Eye toggle** | **Conditions** | | - | - | - | | **What it does** | Hide or show the whole block for all shoppers | Pick which settings variant a shopper sees (or nothing) | | **Based on** | Your choice in the editor | Shopify market, customer country, or customer currency | | **Where** | Sidebar eye icon on most blocks | Settings panel for blocks that support conditions | **Supported condition types today:** Shopify market, customer country, and customer currency (each with **In** or **Not in**). Cart total and cart contents are **not** condition types. Use [Rewards](/aftersell/cart/rewards-block) tier thresholds for spend/quantity progress, or the [Cart SDK](/aftersell/cart/sdk-overview) when you need a rule the editor can't express. Conditions are an ordered list: the **first matching** condition wins. Put specific rules above an **All buyers** catch-all. If nothing matches, the block renders nothing for that shopper. **In the editor today**, the full Conditions UI ships on the [**Rewards**](/aftersell/cart/rewards-block#per-market-rewards) block: different tier sets per market, country, or currency. Other blocks either use a single “all buyers” configuration or don't participate in this system yet. Editor preview does **not** evaluate the live buyer. Select a condition in the panel to preview that variant. ## All blocks **Structure** * [Header](/aftersell/cart/header-block): title, item count, logo, and close control, pinned to the top. * [Cart items](/aftersell/cart/cart-items-block): the items customers add to cart; repeats per line. * [Subscription upgrade](/aftersell/cart/subscription-upgrade-block): sub-block that offers to convert a line to a subscription. * [Summary](/aftersell/cart/summary-block): totals, savings, and applied discounts. * [Checkout button](/aftersell/cart/checkout-button-block): the primary call-to-action to checkout. * [Empty cart](/aftersell/cart/empty-cart-block): the content shown when the cart is empty. * [Express payments](/aftersell/cart/express-payments-block): accelerated checkout buttons (Shop Pay, PayPal, and so on) inside the cart. **Merchandising** * [Upsells](/aftersell/cart/upsells-block): strategy-picked product recommendations. * [Product add-on](/aftersell/cart/product-add-on-block): a single specific product offered as an add-on. * [Rewards](/aftersell/cart/rewards-block): tiered rewards such as free shipping or gifts. * [Shipping protection](/aftersell/cart/shipping-protection-block): an opt-in shipping-protection add-on. **Shopper input** * [Discount code](/aftersell/cart/discount-code-block): a field to apply a discount code. * [Notes](/aftersell/cart/notes-block): an order-notes field. **Content** * [Banner](/aftersell/cart/banner-block): a message banner, with an optional countdown timer. * [Image](/aftersell/cart/image-block): a single image or a hosted preset such as payment icons. * [Custom code](/aftersell/cart/custom-code-blocks): custom HTML or React anywhere in the cart. **Extending** * [Custom templates](/aftersell/cart/custom-templates): override how any block renders from its Code tab. ## Blocks available in each section Each section has a different set of blocks available. That keeps the layout focused and reduces clutter. | Section | Blocks available | | - | - | | **Header** | Header, Banner, Rewards, Image, Custom code | | **Body** | Banner, Notes, Discount code, Cart items, Empty cart, Custom code, Rewards, Product add-on, Shipping protection, Image, Upsells | | **Footer** | Banner, Notes, Discount code, Custom code, Rewards, Product add-on, Shipping protection, Express payments, Image, Upsells, Summary, Checkout button | Some of those blocks are state-specific (for example Empty cart only in the empty state). See [How do carts work?](/aftersell/cart/how-carts-work). ## Block validation errors If a block's settings contain an invalid value, a small red dot appears next to that block's name in the sidebar. The dot stays until you fix the problem. It isn't a dismissible notification. While any block has an error, **saving is blocked**. The **Save** button stays clickable, but selecting it shows an error toast (*"Fix the errors in your cart blocks before saving"*) and jumps to the first block with a problem, opening its settings so you can correct the highlighted field. **Publish** additionally requires no unsaved changes, so it stays unavailable until a clean save succeeds. Once the invalid field is corrected the dot disappears on its own, and saving proceeds normally. > [!NOTE] > > Hidden blocks are still validated. A block you've hidden can hold an invalid setting, show an error dot, and block saving exactly like a visible one, so if saving is blocked and every visible block looks fine, check your hidden blocks. # Cart items block Source: https://docs.aftersell.com/aftersell/cart/cart-items-block The Cart items block: the line-item list, the Product row, and the host for nested sub-blocks. > The **Cart items** block is the list of line items in the cart, rendering each product the shopper has added with its image, title, variant, price, quantity stepper, and remove control. It's a required block, and it's the container that hosts the cart's sub-blocks (the **Product** row, [**Subscription upgrade**](/aftersell/cart/subscription-upgrade-block), and [**Custom code**](/aftersell/cart/custom-code-blocks)), providing the structure that per-line sub-blocks attach to. ![Cart items block showing line items with product image, title, variant, price, quantity stepper, and remove control](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/cart-items-block-line-product-title-variant.png?fit=max\&auto=format\&n=1Y3gBpUfxv16VGSW\&q=85\&s=3c9f088b55cfd8450dcb8670dfe0728a) ## The Product row Inside Cart items sits the **Product** sub-block: the actual line-item row. It's locked and added automatically, so every Cart items block always has exactly one Product row that you can't remove; you reposition other sub-blocks around it. Its settings control how each line's pricing is displayed: | Setting | What it controls | Default | | - | - | - | | **Strike-through price** | Which price is shown struck through: **Compare-at or pre-discount, whichever is higher**, **Compare-at price**, **Pre-discount price**, or **No strike-through**. | Compare-at or pre-discount, whichever is higher | | **Strike-through price for subscriptions** | The same choice for subscription lines, with two differences: an extra **Subscription compare-at price** option, and **Compare-at price** renamed **Product compare-at, then subscription compare-at**. | Compare-at or pre-discount, whichever is higher | | **Savings label** | Whether savings show as an **Amount**, a **Percentage**, or are **Hidden**. | Amount | | **Bundle price** | How the displayed price is calculated for bundle lines. **Automatic** shows the total of all items in the bundle (or the main item's price when the other items are free). **Main item price only** shows only the main (anchor) item's price. This is a display label only — Shopify's cart total is always authoritative. | Automatic | | **Savings text** | The savings label. Supports the `{{value}}` token. | `Save {{value}}` | The row itself renders the product image (linking to the product page when available), title, variant, price and any struck compare-at price, a quantity stepper, and a remove button. Bundle lines show a disclosure list of their components. ### Text styling The Product row includes a **Text** section in its Design settings. Use it to control the typography of individual text elements in each line item. Select a text element from the picker to adjust its settings: | Setting | What it controls | | - | - | | **Text color** | Color of the selected text element. | | **Font** | **Theme font** (inherits your theme's font) or **Custom font** (enter the name of a font your theme already loads). Available for **Product title** only. | | **Size** | Font size in pixels. | | **Weight** | Font weight: Light, Regular, Medium, Semibold, or Bold. | | **Line height** | Line height as a multiplier of the font size (for example, `1.4`). | | **Letter spacing** | Letter spacing in pixels. Negative values tighten the text. | The text elements you can style are grouped by category: **Product** * **Product title** — the product name on each line. Also supports a custom font family. * **Variant** — the variant label (for example, *Size: Medium*). * **Subscription plan** — the read-only plan label shown on subscription lines. **Pricing** * **Price** — the line's current price. * **Compare-at price** — the struck-through original price. * **Savings** — the savings label (for example, *Save \$5.00*). Size and line height only — bold and color are set in the Rich Text Editor above. **Bundle** * **Bundle toggle** — the disclosure header that expands a bundle's component list. * **Bundle item title** — the title of each component inside a bundle. * **Bundle item variant** — the variant label for each bundle component. Leaving any field blank keeps the element's default value. > [!TIP] > > Clicking a text element directly in the cart preview highlights it and opens its controls in the panel automatically. ### Discount tags design The Product row includes a **Discount tags** section in its Design settings. Use it to style the discount tag pills that appear on each line item: | Setting | What it controls | Default | | - | - | - | | **Background color** | Fill color of the discount tag pill. | `#F1F1F1` | | **Text color** | Text color inside the discount tag pill. | `#585858` | | **Border radius** | Corner rounding of the discount tag pill. | `6px` | These settings apply only to line-item discount tags in the Cart items block. Discount code tags in the [Summary block](/aftersell/cart/summary-block) are styled separately. ## Sub-blocks and how they position Cart items is the only block that hosts sub-blocks. **Sub-blocks render once per line, inside every product row**, positioned relative to the pinned Product row: * Sub-blocks ordered **before** the Product row appear **above** the product content in each line. * Sub-blocks ordered **after** the Product row appear **below** the product content in each line. So a [Subscription upgrade](/aftersell/cart/subscription-upgrade-block) placed after the Product row shows beneath each eligible line, not once at the bottom of the whole list. ## Behavior * When the cart has no items, the drawer switches to the empty state and this block isn't shown. * **One cart change runs at a time.** While a quantity update or removal is in flight, the row's controls are disabled to keep the cart consistent, then re-enabled once the change settles. * Lowering a line's quantity below 1 removes it. A quantity the store rejects (for example, beyond available stock) re-syncs to the last valid value. * **Bundles change as a unit.** Adjusting the quantity on a bundle's anchor line scales the whole bundle in one operation — if a child is included at 3 per anchor, taking the anchor from 1 to 2 takes that child to 6. Removing the anchor removes every member of the bundle at once. * **Some bundles can't be re-quantified.** If any of a bundle's children is included at a fractional rate (1.5 per anchor, say), the quantity stepper on that bundle is locked: the +/− buttons and the quantity field are both disabled, and typed quantities aren't accepted. The bundle can still be removed. * **Subscription lines show their plan.** When a line has a selling plan and the [Subscription upgrade](/aftersell/cart/subscription-upgrade-block) sub-block is turned off or not added, the Product row shows a read-only plan label beneath the variant — for example, *Delivers every month (save 30%)*. When that sub-block is enabled it presents the plan in its own picker, so the read-only label is suppressed rather than duplicated. ## Placement and limits * **Region:** body. * **Maximum:** 1 per cart state. * **State:** filled cart only. * **Locked and added by default.** Cart items can't be removed or hidden, only repositioned. ## Custom template Supports a [custom template](/aftersell/cart/custom-templates) from its Code tab, which replaces this block's built-in markup with your JSX. These are the props it receives. The **Cart items** container has no custom template. The **Product** row inside it does, and it's the richest surface in the cart: your template renders once per line. ### Line content | Prop | Type | What it's for | | - | - | - | | `title` | `string` | Product title, as plain text. | | `variantTitle` | `string \| null` | Variant label. `null` for single-variant products and native bundles. | | `url` | `string \| null` | Product page URL. `null` when the line shouldn't link out. | | `imageUrl` | `string \| null` | Line image. `null` when the product has none. | | `quantity` | `number` | Current quantity on the line. | | `price` | `string` | Line price, **already formatted**. | | `compareAtPrice` | `string \| null` | The struck-through "was" price, already formatted. `null` when there's nothing to strike. | | `savingsHtml` | `string \| null` | Savings label as sanitized HTML. `null` when hidden or there's no saving. | | `discountTags` | `string[]` | Titles of discounts on this line, e.g. `['Spring Sale']`. `[]` when none. | | `sellingPlanLabel` | `string \| null` | Read-only subscription plan name. `null` when it's a one-time line, or when the [Subscription upgrade](/aftersell/cart/subscription-upgrade-block#custom-template) sub-block is rendering the plan UI instead. | | `bundle` | `object \| null` | [Bundle](/aftersell/cart/sdk-cart-object#bundles) view model on an anchor line. `null` otherwise. | | `productId` | `number` | Shopify product ID. | | `variantId` | `number` | Shopify variant ID. | | `line` | `AftersellCartLine` | The full [cart line](/aftersell/cart/sdk-cart-object#cart-lines), for anything the props above don't cover. | | `formatMoney` | `(cents: number) => string` | Formats a minor-unit amount. Use it for prices you read off `line`. | > [!WARNING] > > **`price` and `compareAtPrice` are formatted strings; everything on `line` is in cents.** Don't do arithmetic on `price`. Compute from `line.finalLinePrice` and friends, then run the result through `formatMoney`. ### Quantity and removal | Prop | Type | What it's for | | - | - | - | | `increment` | `() => void` | Adds one to the line. | | `decrement` | `() => void` | Removes one from the line. | | `remove` | `() => void` | Removes the line entirely. | | `quantityInput` | `string` | Current value for a controlled quantity ``. A string, so mid-typing states survive. | | `onQuantityInput` | `(event: Event) => void` | `onInput` handler for that field. | | `commitQuantity` | `() => void` | Applies the typed quantity. Wire to `onBlur`. | | `onQuantityKeyDown` | `(event: KeyboardEvent) => void` | `onKeyDown` handler, so Enter commits. | | `busy` | `boolean` | `true` while any cart mutation is in flight. Disable your controls on this. | | `pending` | `'increment' \| 'decrement' \| 'remove' \| null` | Which action is currently in flight, for a targeted spinner. | | `stepperLocked` | `boolean` | `true` when quantity can't be changed, because the line is a bundle anchor with a child included at a fractional per-anchor rate. Hide or disable the stepper — the built-in handlers already reject changes while it's set. | ```jsx theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} function CustomTemplate(props) { return (
{props.imageUrl && }
{props.url ? {props.title} : {props.title}} {props.variantTitle &&
{props.variantTitle}
} {props.sellingPlanLabel &&
{props.sellingPlanLabel}
} {props.discountTags.map((tag) => ( {tag} ))} {!props.stepperLocked && (
)}
{props.price}
{props.compareAtPrice && {props.compareAtPrice}} {props.savingsHtml &&
}
); } ``` ### Rendering a bundle On a bundle's anchor line, `bundle.children` holds its contents. Children never appear as their own rows, so if you don't render them the shopper won't see what's in the bundle: ```jsx theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} function CustomTemplate(props) { return (
{props.title} {props.price}
{props.bundle && (
    {props.bundle.children.map((child, i) => (
  • {child.quantity} × {child.title}
  • ))}
)}
); } ``` A child's `key` is `null` for a Shopify native bundle component, so fall back to the index as above. ## Design Style this block with its **Design** section in the settings panel. These are per-block overrides that layer on top of your global design and fall back to it when blank. What are design settings? Learn more here: [Design settings](/aftersell/cart/design-settings). # Cart settings Source: https://docs.aftersell.com/aftersell/cart/cart-settings Behavior settings for the Aftersell Cart — when the drawer opens and the theme selectors that keep your storefront in sync. Beyond [styling](/aftersell/cart/design-settings), the cart has a few **behavior** settings that control how it interacts with your storefront — when the drawer opens, and which theme elements Aftersell keeps in sync with the cart. ## Where to find these In the cart editor, open **Cart settings**. The options below are grouped under **Behavior** and **Custom selector**. ## Open the cart when an item is added **Open cart when an item is added** controls whether the drawer pops open automatically each time a shopper adds a product. It's on by default. Turn it off if you'd rather the cart stay closed until the shopper opens it themselves. ## Theme selectors Aftersell hooks into your storefront through CSS selectors — for example, to know which element opens the cart, or which cart-icon count to keep in sync. Built-in detection covers the most popular Shopify themes (Dawn, Sense, Crave, Debut, Impulse, Horizon, and many others), so **most stores never need to touch these**. Adjust a selector only if something isn't wiring up correctly on your theme. ### Selector modes Each selector offers the same three modes: | Mode | What it does | | - | - | | **Default** | Uses Aftersell's built-in detection for supported themes. | | **Default + custom** | Keeps the built-in detection and adds your own selector on top — use this when the default mostly works but misses an element (for example, a separate mobile icon). | | **Custom only** | Ignores the built-in detection and uses only your selector — use this when the default targets the wrong element or conflicts with your theme. | The selector input is enabled only for the **Default + custom** and **Custom only** modes. ### The three selectors | Selector | What it targets | Example | | - | - | - | | **Open cart selector** | The element(s) that should open the cart drawer. | `.header__cart-toggle` | | **Add to cart selector** | The add-to-cart button(s) Aftersell should hook into. | `.product-form__add-button` | | **Cart count selector** | The element on your theme's cart icon that displays the item count, so it stays in sync with the drawer. | `.header__cart-count span` | ### How to find a selector 1. Open your storefront in a browser (Chrome recommended). 2. Right-click the element you want to target — your cart icon, the count number, or the add-to-cart button — and choose **Inspect**. 3. In the panel that opens, find the element that represents it (the count is often a `span` inside the cart icon). 4. Note its class (starts with `.`) or ID (starts with `#`) — for example `.header__cart-count span` or `#CartCount`. 5. Back in **Cart settings**, set the selector to **Default + custom** or **Custom only** and paste it in. 6. Save, then test on both desktop and mobile. > [!TIP] > > Start with **Default** — it works for most themes with no setup. Reach for **Default + custom** when only one of several icons updates (say, desktop works but mobile doesn't), and **Custom only** when the default is targeting the wrong element. If you're unsure which selector to use, your theme developer can point it out — you don't need to write any code, just copy and paste. # Carts are files Source: https://docs.aftersell.com/aftersell/cart/carts-as-files Every Aftersell Cart is one portable file. Build it in the app, with no theme code, then copy, back up, move, or generate it like any other file. An Aftersell Cart isn't code spread across your theme. **Each cart is one self-contained file** that holds everything about it: its layout, blocks, design, custom CSS, and custom scripts. The cart editor is a visual way to edit that file, and the [app embed](/aftersell/cart/creating-carts) renders it on your storefront. Because a cart is just a file, you never edit theme code, and anything you can do with a file, you can do with a cart: copy it, back it up, move it to another store, or have an AI write it. ## Why this matters | With a theme-coded cart | With an Aftersell Cart | | - | - | | Edits live in theme files (Liquid, JS, CSS) | Edits happen in the Aftersell app | | A theme update or theme switch can break or wipe the cart | The cart lives in Aftersell, separate from your theme | | Copying a cart to another store means a developer re-implements it | [Export](/aftersell/cart/import-export) the file, import it on the other store | | Rolling back means digging through theme history | Keep an exported file, or a [draft](/aftersell/cart/having-multiple-carts), and restore it | | Trying a new design risks the live cart | Build a draft, [preview](/aftersell/cart/previewing-carts) it, or [A/B test](/aftersell/cart/tests-overview) it | ## What you can do with a cart file ### Duplicate it Start a new cart from an existing one with **Duplicate** on the Carts page. It's the fastest way to build a seasonal or campaign variant without touching the live cart. ### Back it up and restore it [Export](/aftersell/cart/import-export#exporting-a-cart) a cart before a big change. If you want the old version back, import the file and publish it. ### Move it between stores Export from one store and [import](/aftersell/cart/import-export#importing-a-cart) into another, for example from a staging store to production, or across the stores in a brand portfolio. The layout, blocks, design, custom CSS, and custom scripts all carry over. Store-specific references are handled for you: * **Same store**: product, variant, image, and upsell strategy references are kept as-is. * **Different store**: those references are cleared, since they point at the other store's catalog. The upsells block gets a fresh upsell strategy on the new store, and a product add-on block is turned off until you pick a product. The import preview lists everything to reconfigure. Imported carts always arrive as **drafts**, so nothing changes on your storefront until you publish. ### Generate it with AI Because a cart is a well-defined file, an AI assistant can write one: 1. On the **Carts** page, click **Download AI prompt**. 2. Give that file to an AI assistant with a description of the cart you want, or a screenshot of a cart you like. To change an existing cart instead, attach its exported file too. 3. The AI returns a cart file. [Import](/aftersell/cart/import-export#importing-a-cart) it, review the preview, then refine it in the editor. ## Next steps * [How do carts work?](/aftersell/cart/how-carts-work) * [Importing and exporting carts](/aftersell/cart/import-export) * [Create a cart](/aftersell/cart/creating-carts) # Checkout button block Source: https://docs.aftersell.com/aftersell/cart/checkout-button-block The Aftersell Cart Checkout button block: the required footer CTA that sends shoppers to checkout. > The **Checkout button** block is the primary call-to-action in the cart footer that takes shoppers to checkout, giving them a clear, prominent path from the cart to checkout. It's a required block. ## Behavior * The button resolves a **localized, market-correct checkout URL**, so shoppers land in the right market's checkout. If that can't be resolved, it falls back to the standard `/checkout` link. * With **Go to cart page instead of checkout** enabled, the button links to `/cart` instead. * Clicking navigates via JavaScript so a theme's own cart handling can't intercept it, while still respecting new-tab intents (Cmd/Ctrl-click, middle-click). * The click emits the SDK [`checkout` event](/aftersell/cart/sdk-events), which you can subscribe to. ## Settings | Setting | What it controls | Default | | - | - | - | | **Button label** | Plain-text label entered in a text area. Supports `{{total_price}}`. | `Checkout • {{total_price}}` | | **Go to cart page instead of checkout** | Sends shoppers to your `/cart` page instead of straight to checkout. | Off | ## Placement and limits * **Region:** bottom. * **Maximum:** 1 per cart state. * **State:** filled cart only. * **Locked and added by default.** The Checkout button can't be removed or hidden, only repositioned within the footer. ## Custom template Supports a [custom template](/aftersell/cart/custom-templates) from its Code tab, which replaces this block's built-in markup with your JSX. These are the props it receives. | Prop | Type | What it's for | | - | - | - | | `label` | `string` | The button label as sanitized HTML, with `{{total_price}}` resolved. | | `href` | `string \| undefined` | The checkout URL. `undefined` in the editor preview, where there's nothing to navigate to. | | `isLoading` | `boolean` | Always `false` here: the block renders its built-in skeleton during load and only calls your template once the cart is ready. | > [!WARNING] > > **A custom checkout button loses checkout tracking.** The built-in button attaches a click handler that emits the SDK [`checkout` event](/aftersell/cart/sdk-events#checkout) and records the conversion for [cart analytics](/aftersell/cart/analytics). That handler is not passed to custom templates, so navigating via `href` alone skips both. > > If you need the event, emit it yourself from an `onClick` before navigation. Attribution reporting still can't be recovered this way, so prefer restyling the built-in button with [design settings](/aftersell/cart/design-settings) or [custom CSS](/aftersell/cart/custom-css) unless you truly need different markup. Render `href` as-is rather than defaulting it. An `` with no `href` is inert, which is the correct behavior in the editor. ## Design Style this block with its **Design** section in the settings panel. These are per-block overrides that layer on top of your global design and fall back to it when blank. What are design settings? Learn more here: [Design settings](/aftersell/cart/design-settings). # Creating carts Source: https://docs.aftersell.com/aftersell/cart/creating-carts Create a new Aftersell Cart, name it, save it as a draft, and publish it to your storefront. A **cart** in Aftersell is a configurable cart-drawer experience made up of [blocks](/aftersell/cart/blocks-overview). This page walks through creating your first cart and getting it live. ## Create a cart From the **Carts** page, click **Create cart**. Aftersell creates a new cart — named *Untitled cart 1*, *Untitled cart 2*, and so on, so each new one gets a distinct name — pre-seeded with a working default layout, and opens it in the cart editor. ## Create a cart with AI On the **Carts** page, click **Download AI prompt**. This downloads a guide file you can give to an AI (Claude, ChatGPT, or similar) along with a description of the cart you want. The AI returns a cart JSON file you can import directly. 1. Click **Download AI prompt** on the Carts page. 2. Open an AI session and attach the downloaded file. 3. Describe the cart you want — in prose, as a list, or as a screenshot. 4. The AI returns a `.json` file. Save it. 5. Click **Import cart** on the Carts page and upload the file. You can also attach an exported cart file alongside the prompt. The AI edits that cart rather than starting from scratch, keeping your existing blocks, upsells, and settings. The default cart contains **Header → Banner → Cart items → Summary → Checkout button** for the filled state, and **Header → Empty cart** for the empty state (the empty state's Header is titled *Cart*). From there you [add, remove, and reorder blocks](/aftersell/cart/blocks-overview) to build the cart you want. > [!NOTE] > > New carts always start from this blank default layout. To start from an existing cart instead, use the **Duplicate** action on a cart in the Carts list. ## Name the cart Rename the cart inline from the editor's left sidebar — click the name and type. The name **saves immediately** on its own (it doesn't wait for the Save button). Blank or whitespace-only names are rejected and revert to the previous name. ## Draft and publish * Every new cart is a **draft**. Drafts aren't shown to shoppers — you can build and preview them freely. Use **Save** in the editor to persist your edits. * **Publish** makes the cart live. Because only one cart can be live at a time, **publishing a cart moves your current live cart back to draft** (see [Having multiple carts](/aftersell/cart/having-multiple-carts)). * **Unpublish** sets a live cart back to draft. With no live cart, the Aftersell Cart is disabled for shoppers until you publish another. Publishing to your storefront requires the **Complete plan**. If your plan doesn't include it, the Publish button shows a lock badge and a "Requires Complete plan" tooltip. Click **Upgrade to Complete** to change your plan. ## Grant required permissions Before you can publish or serve a cart, Aftersell Cart needs a set of additional permissions from your Shopify store. If these haven't been granted yet, a banner appears at the top of the **Carts** page: > **Finish enabling your cart** — AfterSell Cart needs a few additional permissions to publish and serve carts on your storefront. Enable them to get started. Click **Update App** in the banner to open the permissions dialog and approve the request. The banner disappears automatically once all permissions are granted. > [!TIP] > > If you arrive at the Carts page through an onboarding link, the permissions dialog may open automatically so you can approve in one step. ## Turn on the app embed For a published cart to actually render on your storefront, the **Aftersell Cart app embed must be enabled** in your theme. If it's off, the cart won't show even when published, and the Carts page flags the cart with an "App embed off" badge. The in-app setup guide walks you through the three steps: enable the app embed, create a cart, and publish it. ## Next steps * [Preview your cart](/aftersell/cart/previewing-carts) before publishing. * [Customize the look](/aftersell/cart/design-settings) with design settings. * [Add blocks](/aftersell/cart/blocks-overview) for upsells, rewards, and more. # Custom code blocks Source: https://docs.aftersell.com/aftersell/cart/custom-code-blocks The Aftersell Cart Custom code block: add your own HTML or React anywhere in the drawer, including inside Cart items. > The **Custom code** block adds your own HTML or React to the cart. Put it in any section of the drawer, or nest it inside [**Cart items**](/aftersell/cart/cart-items-block) as a sub-block so it repeats for each line. Unlike other blocks, it has no Content settings and no Design section: the block *is* the code, so you work entirely in its **Code** tab. ![Animated preview of adding and turning on a Custom code block in the Aftersell Cart editor](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/cart-custom-code-block-add-and-enable.gif?s=6717cc64a8765b0c06b65990f99e12ff) ## Add and turn on a Custom code block 1. Add a **Custom code** block to any section, or as a sub-block under **Cart items**. 2. Select it and open the **Code** tab. 3. Choose **HTML** or **React component**. New blocks default to HTML. 4. Write your code. 5. If you chose React, click Compile. 6. Turn on **"Use custom template"**. For this block, that switch means “show my custom code”, and it defaults off, so nothing renders until you enable it. 7. Keep the sidebar eye toggle on so the block stays visible to shoppers. Both the eye toggle and **"Use custom template"** must be on for the block to appear. ## Behavior * The block renders nothing until the cart has loaded. * It also renders nothing when the sidebar eye is off, **"Use custom template"** is off, the code is empty, or React fails to compile or render. Because a failure is silent, check your block in [preview](/aftersell/cart/previewing-carts) before publishing. ## HTML mode HTML mode substitutes a small set of tokens into your markup. It’s for static or token-driven content, not for running logic. * **Inline ` ``` *After removing HTML & reworking ` ``` # Data and privacy Source: https://docs.aftersell.com/aftersell/customer_data_and_privacy What customer data Aftersell handles, how data-deletion and privacy requests work, and where to find the official privacy policy. This page explains, at a merchant level, what customer data Aftersell handles and how privacy and data-deletion requests are processed. It is a practical summary, not a legal document. > [!NOTE] > > The authoritative legal terms are in the [Rokt Privacy Policy](https://www.rokt.com/policies/privacy-policy) and the [Rokt Aftersell Terms](https://www.rokt.com/policies/rokt-aftersell-terms). Where this page and those policies differ, the policies apply. *** ## What data Aftersell handles Aftersell operates as an app installed on your Shopify store. Your Shopify store remains the canonical record of your customers — Aftersell stores only the limited identifiers it needs to attribute upsell offers to orders, such as checkout tokens, Shopify customer IDs, and offer/funnel journey records. Each Shopify store is treated as an independent data controller. Data belonging to one store is never mixed with, or exposed to, another store. > [!NOTE] > > If your store also uses **Rokt Thanks**, Rokt may process additional data to serve and measure partner offers. This is covered by the same [Rokt Privacy Policy](https://www.rokt.com/policies/privacy-policy) linked above, and shoppers can manage their preferences through the controls Rokt presents at the point of the offer. *** ## Data-privacy requests Aftersell supports Shopify's mandatory data-privacy (GDPR/CCPA) webhooks. When Shopify sends one of these requests on behalf of a shopper or a store, Aftersell handles it automatically: | Shopify request | What Aftersell does | | - | - | | **Customer data request** (`customers/data_request`) | The request is logged internally. Because your Shopify store holds the canonical customer record and Aftersell stores only limited identifiers, there is usually little additional data to return; anything that needs manual fulfillment is escalated to [privacy@rokt.com](mailto:privacy@rokt.com). | | **Customer redact** (`customers/redact`) | Deletes the data associated with that customer. If your store uses Rokt Thanks, the deletion is also propagated to Rokt for that customer (this is an asynchronous process that can take up to 30 days to fully complete). | | **Shop redact** (`shop/redact`) | Fired after you uninstall the app. Cleans up your store's integration records. | You do not need to configure anything for these to work — they are handled for every store. *** ## Submitting a request * **Shoppers** should contact the store they purchased from. The store (as the data controller) can initiate a data request or deletion through Shopify, which Aftersell then honors automatically. * **Merchants** who need to escalate a specific data request — for example, exporting data that Rokt may hold for a Rokt Thanks–integrated store — can email [privacy@rokt.com](mailto:privacy@rokt.com). *** ## Data retention after cancellation When you cancel Aftersell, your settings, funnels, widgets, and configurations are retained for up to one year. Uninstalling does not delete them, so if you reinstall within that year they are simply still there — there is no restore step to run. After one year, that data may be removed. See [How do I cancel my Aftersell subscription?](/aftersell/how_do_i_cancel_my_aftersell_subscription) for the full cancellation flow. Uninstalling the app also triggers Shopify's `shop/redact` request, which cleans up your integration records as described above. *** **Related** * [Rokt Privacy Policy](https://www.rokt.com/policies/privacy-policy) * [Rokt Aftersell Terms](https://www.rokt.com/policies/rokt-aftersell-terms) * [How do I cancel my Aftersell subscription?](/aftersell/how_do_i_cancel_my_aftersell_subscription) # Does Aftersell have a developer API? Source: https://docs.aftersell.com/aftersell/does_aftersell_have_a_developer_api Aftersell does not provide a developer API. Shopify's Post Purchase API and Checkout Extensibility limit changes to those available in the app. Aftersell does not offer a general-purpose developer API for configuring the app. Due to the nature of working with Shopify's Post Purchase API and Checkout Extensibility environments we're limited in what we can edit, and all of the changes available to us are made in the app itself. There is one public API: the [Aftersell Strategies API](/aftersell/strategies_api_reference_evaluate_strategy). It evaluates a strategy against the context you send and returns the products to show. It is available on stores that have Aftersell Strategies enabled, and requests are authenticated with a store-specific API key you generate in the Aftersell admin and send in the `X-Strategy-Api-Key` header. # Does multi-currency checkout impact Aftersell? Source: https://docs.aftersell.com/aftersell/does_multi_currency_checkout_impact_aftersell This article explores how multi-currency checkout affects the functionality of Aftersell. If your store has multi-currency enabled, 1-click upsell offers will only appear for orders made in your **store's default currency.** For instance, if your store's default currency is GBP and the order was placed in USD, the offer will **not** display. This limitation is a result of Shopify's multi-currency infrastructure. \ To address this, consider aligning your store's default currency with the currency most commonly used by your customers. This can improve the visibility and performance of post-purchase upsells by providing a localized shopping experience. ### Steps for Changing Store Currency 1. Evaluate your customer base to determine the predominant purchasing currency. 2. Update your store's default currency in Shopify to match the target market's currency. 3. Wait for up to 24 hours for Shopify to fully convert your store to the new currency. 4. Verify that post-purchase upsells are visible to customers in the target market. No additional steps are required after the currency change for upsells to appear. This restriction is due to Shopify’s post-purchase limitations, which are explained further [here](/aftersell/why_isnt_my_1_click_offer_displaying). You can also review [Shopify's documentation](https://shopify.dev/docs/apps/checkout/product-offers/post-purchase#limitations-and-considerations) for additional details. Shopify's infrastructure imposes unique constraints on multi-currency capabilities, emphasizing the need for merchants to carefully plan their store's currency settings to optimize post-purchase app functionalities. *** [Thank you page](/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell) offers are not subject to the same limitations as 1-click offers, making them an excellent alternative in this scenario. We recommend setting up upsells to capture orders that may not see 1-click offers due to these restrictions. Moreover, setting up dedicated upsell offers tailored to key customer segments can further ensure these offers align with multi-currency functionalities. Consider leveraging Shopify Markets for enhanced configuration. # DTC ads onboarding guide | web pixel activation Source: https://docs.aftersell.com/aftersell/dtc_ads_onboarding_guide_web_pixel_activation This article outlines how to integrate the Rokt Conversions Web Pixel # **Overview** The Rokt Conversions Web Pixel enables accurate attribution of conversions from your Shopify store to Rokt campaigns. This helps optimize your marketing performance by tracking user activity through Shopify’s Web Pixels API. *** ## **Step 1: Install the Aftersell App** You will be provided with a special installation link by your account manager. * Click the link to be redirected to the Shopify App Store. * You will be prompted to install the Aftersell app. ![AfterSell by Rokt permission request listing customer data and pixel access scopes](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/web-pixel-activation-permission-request-scopes.gif?s=4f420a729ad2431816ecb7649762b2ec) * Click **Install** to continue. After installation, Aftersell may display a permission request within the app for scopes related to pixel tracking — specifically `read_customer_events` and `write_pixels`. Click **Approve** to grant these permissions. Accepting these scopes allows Aftersell to inject and activate the Rokt Web Pixel automatically. *** ## **Step 2: Accept Terms and Conditions** After granting the required permissions: * You will be prompted to review and accept our Terms and Conditions. ![Rokt Thanks onboarding form with a Terms and Conditions checkbox and Enable now button](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/web-pixel-activation-rokt-thanks-onboarding-form.gif?s=8fa5f852565bddeeaa33f594c27b1aed) * Press **Enable now** to proceed. *** ## **Step 3: Activate Free Plan** Following the Terms and Conditions: * You will be prompted to accept the **Aftersell Free Plan (Rokt Ads)**. * Click **Approve** to complete the activation. ![Shopify approval screen for the AfterSell Free Plan Rokt Ads charge with Approve button](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/web-pixel-activation-approval-free-plan-rokt.gif?s=8c998fcb469f9c716ad05f6c7db8da83) * Once approved, your onboarding is complete, and you will be redirected to the Rokt Ads dashboard, where you will see your newly created **One Platform Account ID**. (While it is being created the card reads *Generating One Platform Account ID*.) ![Welcome to Rokt Ads page showing the pixel activation notice and the account ID](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/web-pixel-activation-welcome-rokt-ads-notice.gif?s=982d2dd0afd219d019b84c6d59d1b2d0) *** ## **Step 4: Web Pixel Activation** After completing onboarding, the Web Pixel installation will be triggered automatically. Please allow up to **5 minutes** for the activation to complete. *** ## **To Verify Pixel Activation:** 1. On the Rokt Ads page (inside Aftersell), click the link labeled **Customer Events Page**. This will take you directly to the right page in your Shopify Admin. 2. Alternatively:\ Navigate manually to Shopify Admin → Settings → Customer Events. 3. Once there:\ Under App Pixels, look for "Aftersell".\ Ensure the status is listed as Connected. ![Shopify Customer events settings showing the AfterSell by Rokt pixel marked Connected](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/web-pixel-activation-customer-events-connected.gif?s=67d069184fc1024610e122db975382b7) If the pixel does not appear immediately or shows "Disconnected," it may still be processing. Please wait a few minutes and refresh the page. *** ## **Additional Notes:** This activated web pixel does three things: 1. Adds a cookie when a customer lands on your site from one of your Rokt campaigns. Rokt will automatically add the “rtid” query parameter to the URL of the landing page. 2. Records conversions. If the customer has a cookie from step i) then the conversion will be attributed to your Rokt campaign. 3. Forwards Shopify's standard storefront events to Aftersell — page, product and collection views, searches, cart adds and removes, checkout steps, and checkout completion. This is the part that runs on analytics consent alone. The following settings will be applied automatically by the web pixel app. 1. *Permission: Analytics.* The pixel extension declares analytics consent only — marketing and preferences are both off. This is most relevant for customers in the EU and UK. Conversion sending is checked separately at runtime: if the shopper has not granted marketing consent, the Rokt conversion is skipped while the standard storefront events still flow. To learn more, see [Shopify’s documentation here](https://help.shopify.com/en/manual/promoting-marketing/pixels/custom-pixels/manage#customer-privacy). 2. *Data sale: Data collected does not qualify as data sale.* Conversion data is collected to optimize and monitor advertising campaigns and is not sold by Rokt. 3. For details on the Web Pixels API, see [Shopify’s developer documentation here](https://shopify.dev/docs/api/web-pixels-api). # Earn & Save program Source: https://docs.aftersell.com/aftersell/earn-save How Earn & Save pays out your Rokt Thanks earnings in full and adds a matching discount to your Aftersell bill each cycle, plus eligibility and enrollment. Earn & Save is an opt-in program for Aftersell merchants. When you enroll, two things happen each cycle: * Your Rokt Thanks earnings pay out to you in full. * Aftersell adds a matching discount on top of your Aftersell bill, sized to match your earnings from the last 30 days, up to your bill amount. If your earnings are less than your bill, the matching discount only covers part of the bill, and you still owe the remainder. Your Rokt Thanks earnings always pay out to you in full, regardless of whether the discount fully covers your bill. Earn & Save is not a trial, and it does not change your existing Aftersell plan. As long as Rokt Thanks stays active on your store and you remain enrolled, the matching discount keeps applying each cycle. Your features, your base plan price, and your maximum monthly charge all stay the same. ## How Earn & Save works Earn & Save has two sides: the earnings you generate through Rokt Thanks, and the matching discount Aftersell adds to your monthly bill. **Earn.** When you enable Rokt Thanks, vetted brands like Disney+, HelloFresh, and Venmo show their offers on your post-purchase confirmation page. Every time a customer clicks "Yes, please!" on one of those offers, you earn revenue. On average, merchants earn around \$0.30 to \$0.50 USD per transaction. Rokt pays these earnings out to you in full via PayPal (or wire/ACH if you have that set up). **Save.** Each billing cycle, Aftersell adds a matching discount on top of your Aftersell bill, sized to match your Rokt Thanks earnings from the last 30 days, up to your bill amount. The discount is added by Aftersell, not deducted from your earnings. If your earnings fully cover your bill, your Aftersell charge for that cycle can be as low as \$0. If your earnings are smaller than your bill, the discount only covers part of the bill and you pay the remainder. Either way, your Rokt Thanks earnings pay out to you in full. ## At a glance | | | | :- | :- | | **Who is it for?** | Any Aftersell store with 1,000 or more monthly orders. | | **What is it?** | An opt-in program layered on top of your existing pricing plan. | | **What does it cost?** | Nothing. There is no separate fee. | | **What changes about my plan?** | Nothing. Your features, base plan price, and maximum monthly charge stay the same. | | **When does the discount start?** | On your upcoming Aftersell bill, irrespective of how long you have been enrolled. | | **Where do my earnings go?** | Rokt pays them out to you in full via PayPal (or wire/ACH if set up), separately from the Aftersell discount. | ## How the matching discount is calculated Each billing cycle, Aftersell looks at your Rokt Thanks earnings from the **last 30 days** and adds a matching discount to your Aftersell bill, sized to match those earnings. The discount is capped at your bill amount, so it never exceeds what you would have paid. How this plays out depends on how much you earned in the last 30 days: | Last 30 days earnings | Matching discount | What you pay Aftersell | | :- | :- | :- | | **Exceed your bill** | Caps at your bill amount | **\$0** | | **Match your bill** | Covers the full bill | **\$0** | | **Less than your bill** | Matches your earnings | The remainder of your bill | Either way, your Rokt Thanks earnings continue to pay out to you in full. On your Aftersell admin (Settings → Billing), the matching discount shows the exact 30-day earning window it was sized to match, for example "May 5 to June 3 Rokt earnings". Hover the info icon next to the line for the full breakdown. > [!NOTE] > > If your plan bills more than one Aftersell charge (for example, a grandfathered Post-purchase and Checkout plan), the charges are billed together on the same day for Earn & Save merchants. The matching discount applies to the combined Aftersell bill, not to each charge separately. ## Am I eligible? Your store qualifies for Earn & Save if it processes **at least 1,000 orders per month**. Earn & Save applies to your total Aftersell bill, whatever plan you are on (current or grandfathered) and whichever features it includes. The matching discount applies to your full Aftersell charge each cycle. What you actually earn through Rokt Thanks depends on factors like your traffic, order volume, and offer relevance to your customers. Higher engagement generally leads to higher earnings. If your store does not currently meet the 1,000 monthly order threshold, you can still use Aftersell on a standard paid plan. Eligibility is re-evaluated continuously, so Earn & Save will surface in your admin if your store crosses the threshold later. ## Enrolling in Earn & Save The enrollment flow depends on your current Aftersell setup. Some stores see additional steps, others enroll in a single click. **1. Confirm any updated terms (only if prompted)** Some stores are required to confirm updated subscription terms before enrolling. You will see a prompt in your Aftersell admin if this applies to your store. If you do not see a prompt, skip to step 2. This typically applies to stores on an older Aftersell billing plan that includes the Checkout feature. Confirming the updated terms does not change your features or your base plan price. It only authorizes Aftersell to add the matching discount line to your future bills. **2. Enable Rokt Thanks** Open the Rokt Thanks dashboard in your Aftersell admin and click **Enable**. Then place at least one Rokt Thanks app block on a customer-facing page. Your Thank You page is the recommended starting point. Completing both of these actions activates Rokt Thanks on your store and starts your Earn & Save discount. The setup guide on the dashboard tracks more than these two, though - it also asks for the block on your Order status page, and on your customer account Orders page if your store is eligible - so it stays marked **Incomplete** until those are placed too. If you need help with block placement, see [Activating and Configuring Rokt Thanks](/aftersell/activating_and_configuring_rokt_thanks). > [!NOTE] > > Setting up your payouts (PayPal or wire/ACH) is a separate step that is not required for Earn & Save to apply the matching discount to your bill. Payout setup only affects how you receive your Rokt Thanks earnings. See [Rokt Thanks Payouts](/aftersell/rokt_thanks_payouts) for details. ## Maximizing your earnings The more visible the Rokt Thanks block is on your store, the more opportunities your customers have to interact with offers. A few practical things you can do to increase visibility: **Place the block above the fold.** Buyers do not always scroll the confirmation page. Place the Rokt Thanks block in the **Main** section of your Thank You page, just below the order-confirmation banner, so it appears without scrolling. Avoid the Order Summary column and the Footer. **Add the block to multiple surfaces.** Rokt Thanks can render on up to four customer-facing pages: your Thank You page, your Order Status page, your customer account Profile page, and your customer account Orders page (if you are on Shopify's new customer accounts, also called Vaulted Rewards). Placing the block on all four surfaces can lift earnings by an estimated 10 to 20 percent on top of the Thank You page alone. See [Rokt Vaulted Rewards](/aftersell/activating_and_configuring_rokt_thanks#rokt-vaulted-rewards-customer-account-pages). **Keep Rokt Thanks active.** The matching discount only applies while Rokt Thanks is active and generating earnings. If you disable or remove the Rokt Thanks block, earnings stop and the discount stops on the next cycle. You can re-enable anytime. ## What you see on your bill and payouts Earn & Save shows up in three places. Each handles a different part of the program. | | | | :- | :- | | **Shopify invoice** | Your Aftersell charge for the cycle, with the matching discount already applied. The charge can be as low as \$0 if the discount fully covers it. | | **PayPal (or wire/ACH)** | Your Rokt Thanks earnings, paid out by Rokt directly on their normal payout schedule (approximately 90 days after the end of the month the earnings were generated in). | | **Aftersell admin, Settings → Billing** | The current cycle's matching discount, the 30-day window it was sized to match, and your lifetime savings from the program. | ## Worked examples > [!NOTE] > > These examples use current plan pricing. Existing merchants are grandfathered on the plan and pricing they signed up under, so your own base fee and monthly cap may differ. Earn & Save works the same way on any plan. See [Aftersell billing & pricing](/aftersell/aftersell_billing_pricing) for the current plans. ### Scenario 1: matching discount covers part of the bill You are on the Post-purchase plan. Based on your order volume, your Aftersell bill for this cycle is \$149.99. Your Rokt Thanks earnings from the last 30 days are \$80. | | | | :- | :- | | Post-purchase charge | \$149.99 | | **Aftersell bill this cycle** | **\$149.99** | | Rokt Thanks earnings (last 30 days) | \$80 | | Matching discount added to bill | \$80 off (sized to match earnings) | | **What you pay Aftersell** | **\$69.99** | | **Earnings paid out to you** | **\$80** | The matching discount of \$80 is applied to your bill, leaving \$69.99 still due. You also receive your \$80 in Rokt Thanks earnings, paid out by Rokt directly. ### Scenario 2: matching discount covers the full bill You are on the Post-purchase plan. Your store is high-volume, doing 20,000 or more orders per month, which puts your Post-purchase charge at the maximum of \$999.99 (the highest the Post-purchase charge can reach, regardless of how high your order volume goes). Your Rokt Thanks earnings from the last 30 days are \$1,200. | | | | :- | :- | | Post-purchase charge | \$999.99 (maximum) | | **Aftersell bill this cycle** | **\$999.99** | | Rokt Thanks earnings (last 30 days) | \$1,200 | | Matching discount added to bill | \$999.99 off (sized to earnings, capped at the bill) | | **What you pay Aftersell** | **\$0** | | **Earnings paid out to you** | **\$1,200** | Your earnings exceed your bill, so the matching discount caps at \$999.99 and your Aftersell charge for the cycle is \$0. You still receive your full \$1,200 in Rokt Thanks earnings, paid out by Rokt directly. The discount does not grow beyond your bill amount. ## Troubleshooting > [accordion] Can my Aftersell bill really be \$0? > > Yes. When your Rokt Thanks earnings from the last 30 days reach or exceed your bill amount, the matching discount covers the full bill and you pay \$0 for that cycle. You continue to receive your full earnings from Rokt Thanks, paid out separately. > > Whether your bill reaches \$0 depends on your earnings each cycle. It is possible, not guaranteed. > [accordion] Why isn't my bill \$0? > > The matching discount is sized to match your Rokt Thanks earnings from the last 30 days. If your earnings did not reach your bill amount, the discount is sized to match whatever you earned, and the remainder of the bill is still due. Your Rokt Thanks earnings continue to pay out to you in full. > [accordion] Are my apps free as long as Rokt Thanks is enabled? > > Only when your Rokt Thanks earnings consistently meet or exceed your Aftersell bill. If you earn \$50 in a 30-day period and your bill is \$349, your matching discount is \$50 and the remaining \$299 is still due. > > For high-volume stores with strong engagement, it is common for earnings to fully cover the bill each cycle. For smaller stores, Earn & Save is best thought of as a recurring savings on your subscription, not free service. > [accordion] What happens to earnings beyond my Aftersell bill amount? > > The matching discount is capped at your bill amount, so the discount itself does not grow beyond that. Your earnings always pay out in full regardless, so you still receive everything Rokt Thanks earned for you during that cycle. Earnings and the discount are separate. > [accordion] I enrolled but my bill did not change. Why? > > A few common reasons: > > * **Rokt Thanks is not yet enabled or showing offers.** Open the **Rokt Thanks** tab in your Aftersell admin and check the setup guide there - it should show Rokt Thanks enabled and your app blocks placed. Settings → Billing gives you a quick read too: the Earn & Save card carries an **Active** / **Inactive** badge, and if your Thank you page block is missing it shows the nudge "Almost there, finish your Rokt Thanks setup to start earning a matching discount." The Rokt Thanks tab is still where you fix it. > * **You have not earned yet.** The discount is sized to match your last 30 days of Rokt Thanks earnings. If you only just enabled Rokt Thanks, give it a billing cycle to start earning. > * **You are still ramping up.** Earnings depend on traffic, order volume, and offer relevance. Results vary by store and grow over time. > [accordion] What happens if I turn off Rokt Thanks? > > You stay enrolled in the program, but the matching discount only applies while Rokt Thanks is active and generating earnings. If you disable Rokt Thanks, the discount stops on the next cycle. You can turn Rokt Thanks back on anytime to resume. > [accordion] I already had Rokt Thanks set up before Earn & Save existed. Do I still need to do anything? > > It depends on your current Aftersell billing plan. If you are on an older Aftersell plan that includes the Checkout feature, you may be prompted to confirm updated subscription terms when you enroll. Look for the Earn & Save prompt in your Aftersell admin. If you do not see a prompt, you can enroll without confirming any new terms. > [accordion] When will I get my first Rokt Thanks payout? > > Earnings are paid out approximately 90 days after the end of the month the revenue was generated in. Payouts are also subject to a minimum threshold based on your payout method. > > Full details are on the [Rokt Thanks Payouts](/aftersell/rokt_thanks_payouts) page. > [accordion] I closed the Earn & Save card by accident. How do I find it again? > > The Earn & Save card is always accessible from your Aftersell admin under **Settings → Billing**, where **Start saving** appears on both the Earn & Save card and the billing summary. The card stays available as long as your store is eligible. > > You can also add a **View Earn & Save** shortcut to your home page: select the pencil icon on the [Quick actions](/aftersell/home/quick-actions) widget and tick it. It isn't one of the default actions, so it appears only once you add it. > [accordion] I do not see the Earn & Save option in my Aftersell admin. Why? > > Earn & Save is only surfaced for stores that meet the eligibility threshold of 1,000 monthly orders. If you have recently crossed that threshold and do not see the program, reach out to support and we can confirm your eligibility status. > [accordion] Can I check how much I have saved over time? > > Yes. The Earn & Save card on Settings → Billing shows your lifetime savings from the program, alongside the current cycle's matching discount. > [accordion] Does Earn & Save change my Aftersell features or plan? > > No. Earn & Save sits on top of whichever standard plan you are on. Your features, your base plan price, and your maximum monthly charge stay the same. The only difference is the matching discount that gets added to your bill. > [accordion] How do I leave Earn & Save? > > You can stop the matching discount in two ways: > > * **Disable Rokt Thanks.** Earnings stop, and the discount stops on the next cycle. You can re-enable anytime. > * **Leave the program entirely.** Contact the Aftersell support team via in-app chat. Your standard plan billing resumes on the next cycle. ## Need help? * For program questions or setup issues, contact the Aftersell support team via in-app chat or email [support@aftersell.com](mailto:support@aftersell.com). * For Rokt Thanks payout-specific questions, see [Rokt Thanks Payouts](/aftersell/rokt_thanks_payouts). * Include your store URL and a brief description of the issue for faster help. ### Related pages * [What is Rokt Thanks?](/aftersell/what_is_rokt_thanks) * [Activating and Configuring Rokt Thanks](/aftersell/activating_and_configuring_rokt_thanks) * [Rokt Thanks Settings](/aftersell/rokt_thanks_settings) * [Rokt Thanks Payouts](/aftersell/rokt_thanks_payouts) * [Aftersell Billing & Pricing](/aftersell/aftersell_billing_pricing) # FAQ widget (Thank You Page) Source: https://docs.aftersell.com/aftersell/faq-widget-thank-you-page Configure the Thank You Page FAQ widget in Aftersell to answer common customer questions right after checkout. The FAQ widget displays common questions and answers on the Thank You page to reduce post-purchase support requests. This page covers every setting on the widget. For the full funnel setup and Shopify editor steps, see [How to configure thank-you page widgets](/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell). Add the widget from the **Thank You Page** section of your funnel by clicking **Add Widget** and selecting **FAQs**. ## Add FAQ items 1. Click **Add FAQ Item**. 2. Enter your **question** text. 3. Enter your **answer** text. 4. Repeat for additional FAQ items. 5. Reorder items by dragging and dropping. 6. Click **Save**. # Fulfillments and payments setting Source: https://docs.aftersell.com/aftersell/fulfillments-and-payments-setting This guide covers every setting available in the Fulfillment and Payment section of Aftersell. These settings control how your orders are held, released, and managed after a post-purchase upsell is offered or accepted. You can find these settings in your Aftersell admin under **Settings > Fulfillment and Payment**. ![Aftersell Settings menu with the Fulfillment and payment section highlighted](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/fulfillment-payments-settings-menu.gif?s=8b0454c494dc59276cbfbc7ac914bc2c) *** ## Fulfillment Holds An order is placed **On Hold** when a customer hasn't yet accepted or declined all of their post-purchase offers, or if they closed the browser tab before making a decision. The hold exists as a buffer between order creation and fulfillment, ensuring the order isn't processed before the customer has finished with their post-purchase offers. The hold is released automatically in the following situations: * The customer accepts or declines all post-purchase offers - the hold releases immediately. * The customer's offer timers run out all the way - the hold releases immediately. * The customer closed the tab without deciding - the hold releases automatically after **60 minutes**. The settings below give you more control over how and when those holds are released. ### Release fulfillment holds from 1-click offers when offer timer ends By default, if a customer closes their browser while on the post-purchase page, the order stays On Hold for **60 minutes** before automatically releasing. When this setting is enabled, the hold release time is reduced to match the **total** duration of the funnel's offer timers — the first offer's timer plus the longest follow-up path through it (additional upsells, or the downsell). A single 10-minute upsell releases the hold after 10 minutes instead of 60; a 10-minute upsell followed by a 10-minute downsell releases it after 20. > [!NOTE] > > This setting only affects the release timing when a customer closes the browser mid-flow. If the customer accepts or declines all offers, or their timers run out, the hold releases immediately regardless of this setting. **When to enable this:** Enable this if you want orders to move to fulfillment faster after a customer abandons the post-purchase page. ![Enabled setting to release fulfillment holds when the offer timer ends](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/fulfillment-payments-release-hold-offer-timer.gif?s=a87870dc28deaae3cc33f22eb231dc3d) *** ### Release fulfillment holds when the 1-click offer never loaded for the customer In rare cases, Shopify places a fulfillment hold on an order even when the post-purchase offer never appeared to the customer, for example if the customer closed their browser before the page fully loaded. This is an occasional Shopify quirk rather than a common occurrence. When enabled, a 5-minute release window is scheduled as a safety net for these situations, automatically releasing the hold on orders where no offer was ever shown. Only enable this if you are actively seeing orders stuck on hold that never received a post-purchase offer. It is disabled by default and is not needed for most stores. > [!NOTE] > > This setting is only available when **Release fulfillment holds from 1-click offers when offer timer ends** is enabled. If that setting is turned off, this option will be greyed out. ![Setting to release fulfillment holds when the offer never loaded for the customer](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/offer-didnt-load.gif?s=bb3f2b002d9877f46b1135ee04609054) *** ### Allow Aftersell to hold orders with accepted 1-click offers for fraud review When enabled, Aftersell will place a hold on orders where Shopify has detected a fraud risk above the level you specify. This gives you time to review potentially fraudulent orders before they are fulfilled. **Fraud Hold Release** You can set the fraud risk threshold using the **Fraud Hold Release** dropdown. The available options are: * **Low Risk** - Orders flagged as medium or high risk will be held for review * **Medium Risk** - Only orders flagged as high risk will be held for review * **High Risk** - No orders are held; this effectively disables fraud holds Orders where Shopify's detected fraud risk is higher than your selected threshold will be put on hold by Aftersell until you review and release them manually. > [!WARNING] > > If you are seeing a high number of orders stuck on hold, check your fraud threshold setting. A threshold that is too sensitive may be holding legitimate orders. ![Fraud review hold setting with the Fraud Hold Release dropdown set to Low Risk](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/fulfillment-payments-fraud-hold-release.gif?s=23b8c187665f2d97bb6cbff0f20d79ae) *** ## Order routing ### Re-run order routing on Aftersell upsells When an upsell is added to an order after checkout, Shopify creates a separate fulfillment for it, and that fulfillment can be assigned to a different location than the original order — a split fulfillment. When this setting is enabled, Aftersell asks Shopify to re-apply your store's order routing rules to any fulfillment that contains only Aftersell upsells, once its hold is released. A common use is to put "minimize split fulfillments" first in your routing priority, so the upsell is more often shipped together with the rest of the order. > [!NOTE] > > This setting needs the **merchant-managed fulfillment orders** and **third-party fulfillment orders** write scopes. Until Aftersell has them the checkbox is greyed out — you can't turn it on to trigger the request. Grant them from the additional-permissions banner on the page using its **Update App** button, and the checkbox becomes available. *** ## Partially Paid A partially paid order can occur in two ways depending on the upsell type: **Post-purchase upsells** If a customer accepts a post-purchase upsell but the payment fails, the upsell item is still added to the order. The original items are paid for but the upsell item payment was not processed, resulting in a partially paid order. **Thank You Page upsells** When a Thank You Page upsell is configured to use "Modify original order", the item is added to the original order as soon as it is accepted. However, the customer still needs to complete a separate checkout to pay for it. If they exit without completing payment, the order becomes partially paid since it now contains an item that has not been paid for. The settings below control how Aftersell handles these situations automatically. For a full explanation of partially paid orders and how to resolve them, see [Partially Paid Orders](/aftersell/partially_paid_orders). *** ### Automatically remove unpaid 1-click and thank you page upsell products from orders When enabled, Aftersell will automatically remove unpaid upsell products from partially paid orders after a set delay if payment has not been collected. This prevents unpaid items from being accidentally fulfilled and shipped. **Partially paid removal delay** Controls how long Aftersell waits after a failed payment before removing the unpaid item from the order. The default is 65 minutes. * Waiting longer gives customers more time to pay. * Customers see a payment prompt on the order confirmation page, and Shopify emails a reminder after 2 hours. * Thank you page upsells are only removed when the offer uses "Modify original order", not when it creates a separate draft order. > [!NOTE] > > Thank you page upsells are only affected by this setting when the offer is configured to use "Modify original order". Offers that create a separate draft order are not affected. ![Setting to automatically remove unpaid upsell products with a 65 minute removal delay](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/fulfillment-payments-remove-unpaid-upsells.gif?s=54739642613adb10390d128bdf45c2a7) *** ### Add 'AfterSell Upsell' tag when payment is confirmed By default, the `AfterSell Upsell` tag is added to an order as soon as an upsell is accepted, regardless of whether payment succeeds. When this setting is enabled, the tag is only added after payment for the upsell is successfully confirmed. This prevents orders from being incorrectly tagged when the upsell payment fails. **When to enable this:** Enable this if you use the `AfterSell Upsell` tag to trigger workflows, reports, or fulfillment logic and want to ensure only successfully paid upsells are tagged. > [!NOTE] > > The tag is written as `AfterSell Upsell`, with a capital **S**. If you are matching on it in a Shopify Flow condition or a saved order search, use that exact spelling. ![Setting to add the Aftersell Upsell tag only after payment is confirmed](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/fulfillment-payments-upsell-tag-setting.gif?s=4bf6fca99a866b7f6678fbb6a7b3d2dd) *** **Want to go further?** * [Fulfillment](/aftersell/fulfillment) - understand how post-purchase fulfillment holds work and how to integrate with 3PL services * [Partially Paid Orders](/aftersell/partially_paid_orders) - a full guide to handling partially paid orders * [Potential Workarounds for Fulfillment Flow Issues](/aftersell/potential_workarounds_for_fulfillment_flow_issues) - solutions for fulfillment problems with external services * [Manual Payment Capture](/aftersell/manual-payment-capture) - manage how and when payments are captured for post-purchase upsells # How to configure thank-you page widgets Source: https://docs.aftersell.com/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell Step-by-step guide to setting up and configuring Thank You Page widgets in Aftersell Thank You Page (TYP) widgets in Aftersell are a powerful way to engage customers after a purchase and increase sales. This guide provides step-by-step instructions for configuring and enabling TYP widgets within your post-purchase funnels. TYP widgets work in conjunction with Post-Purchase offers, providing multiple opportunities to maximize customer conversions after checkout. *** ## What are Thank You Page widgets? Thank You Page widgets allow you to display additional content and product recommendations to customers immediately after checkout. They are highly customizable and do not face the same [Shopify limitations](/aftersell/why_isnt_my_1_click_offer_displaying) as post-purchase upsells. Thank You Page widgets enable you to: * Tailor offers to specific customer actions (funnel triggers) * Showcase personalized product recommendations * Engage customers in a non-intrusive way * Add [testimonials](/aftersell/testimonials-widget-thank-you-page), [FAQs](/aftersell/faq-widget-thank-you-page), [text content](/aftersell/text-widget-thank-you-page), and [images](/aftersell/image-widget-thank-you-page) to your Thank You page Each TYP widget is tied to a specific funnel, ensuring you retain flexibility and control for different customer journeys. *** ## Step-by-step setup guide ### Step 1: Create or select a funnel 1. Navigate to **Post-purchase Funnels** in your Aftersell admin. 2. Click **Add funnel**, then pick a template or choose to create one manually — or select an existing manual funnel. 3. Name your funnel (e.g., "Thank You Page Upsells - All Orders"). ![Thank You Page product recommendation widget previewing a snowboard upsell in the Shopify editor](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/typ-upsells-product-recommendation-preview.gif?s=a40455c6ee6f2a4c469cca2e8107f4fe) ### Step 2: Configure funnel triggers Define when your funnel should run. The triggers you set here apply to the entire funnel, including both Post-Purchase offers and Thank You Page widgets. Thank You Page widgets do not have separate trigger settings. Whatever triggers are configured for the funnel will also determine when the corresponding Thank You Page widgets display. 1. In the funnel settings, click **Triggers**. 2. Select trigger conditions based on: * Customer tags * Product purchased * Cart value * Order count * Collection * Discount codes used 3. Click **Save Triggers**. For step-by-step instructions on how to configure funnel triggers, including detailed targeting options and examples, refer to our [Funnel Triggers setup guide](/aftersell/how_to_configure_post_purchase_triggers). *** ### Step 3: Add TYP widgets to your funnel 1. Scroll to the **Thank You Page** section in your funnel. 2. Click **Edit extensions page** (or **Edit scripts page**, if your store has not yet migrated to Thank You page extensibility) to open the Thank You Page editor. 3. Pick a widget type from the sidebar and click **Enable** to turn it on. Every widget type already has its own tab — there is no separate "add" step. The available types are: * [**Product Recommendation**](/aftersell/product-recommendation-widget-thank-you-page) - Display upsell product recommendations * [**Testimonials**](/aftersell/testimonials-widget-thank-you-page) - Show customer reviews to build trust and social proof * [**FAQs**](/aftersell/faq-widget-thank-you-page) - Answer common customer questions * [**Text**](/aftersell/text-widget-thank-you-page) - Share messages, discount codes, or brand stories * [**Image**](/aftersell/image-widget-thank-you-page) - Display a custom image or banner * **Gift with purchase** - Offer a free gift alongside the order. This tab only appears once the feature has been enabled for your store; contact support if you would like it turned on. For the settings available on each widget type, see the individual widget pages linked above. *** ### Save your funnel configuration 1. Review all widget settings. 2. Click **Save Funnel** at the top of the page. 3. Set funnel status to **Active**. *** * **Max reviews to show** - How many reviews appear, from **1 to 3** (defaults to 3) * **Display type** - Choose between horizontal carousel or vertical stack layout * **Minimum rating** - Set the minimum star rating for reviews to display * **Truncate review text after (optional)** - Set a maximum character length for review text ## Enabling widgets in Shopify Widgets created in Aftersell must be added to your Thank You page or Order Status page in the Shopify editor, otherwise they will not display to customers. We recommend placing the app blocks on both pages. ### Step 1: Open Shopify editor 1. In your Aftersell admin, click **Open Shopify Editor**. 2. This opens the Shopify checkout customization editor. ![Callout pointing to the Open Shopify editor button above the product selection list](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/typ-upsells-callout-open-editor-button.gif?s=ca236b3a24e612d45912fd424b9165e2) ![Aftersell prompt with an Open Shopify editor button for placing widgets](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/typ-extensions-open-shopify-editor-prompt.gif?s=48ac22faed42137dbae8805fcbe06139) ### Step 2: Add widgets to the Thank You page 1. In the Shopify editor, navigate to **Thank You page**. 2. Click **Add app block** or **Add section**. 3. Select the Aftersell block matching the widget you configured. Each widget type is published as its own app block: **TY Product Recommendation Widget**, **TY Testimonials Widget**, **TY FAQs Widget**, **TY Text Widget**, **TY Image Widget**, or **TY Gift with Purchase**. 4. Position the widget block where you want it to appear. 5. Repeat steps 2-4 for every widget you enabled, one block each. 6. Click **Save**. > [!TIP] > > Place your widget toward the top of the Thank You page for best visibility. Widgets positioned lower on the page may not be seen on all devices, particularly on mobile where customers are less likely to scroll. ![Shopify theme editor Add app block menu with the Aftersell Thank You widget selected on the Thank You page](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/typ-theme-editor-add-app-block.gif?s=d1ed8b656005d9bf1ff6e7f54980e32d) ### Step 3: Add widgets to the Order Status page Repeat the same steps on the **Order Status page** in the Shopify editor so customers who return to their order confirmation still see your widgets. ![Adding an Aftersell app block to the Shopify Order status page in the checkout editor](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/typ-extensions-ty-recommendation-order-status.gif?s=0bedc4c11ae74d98e58c24fcca92fef4) ### Step 4: Publish your changes 1. Review the page in the preview. 2. Click **Publish** in the top-right corner. 3. Confirm the publication. Your TYP widgets are now live and will display to customers based on your funnel triggers. *** 1. Set the widget **Title** (it defaults to "FAQs"). 2. Click **Add FAQ**. 3. Enter your **question** text. 4. Enter your **answer** text. 5. Repeat for additional FAQ items. Each row has its own **Remove** button. 6. Click **Save**. ## Testing your widgets Shopify's checkout preview may not always display widgets correctly. Follow these steps to test: 1. **Set triggers to "Show for all customers"** (temporarily) to see widgets in preview. 2. **Place a test order** using a real checkout flow: * Use Shopify's test payment gateway * Create a free product for testing * Use a discount code to make the order \$0 3. **Verify widgets appear** on the Thank You page immediately after checkout. 4. **Test widget functionality:** * Click product recommendations * Verify checkout flow for upsells * Confirm order handling works as configured 5. **Reset triggers** to your desired targeting rules after testing. > [!NOTE] > > FAQ items appear in the order you add them, and **Add FAQ** always appends to the bottom — you cannot insert one part-way up the list. There is no drag-and-drop reordering either, so to move an item you have to remove everything from that position onward and re-add them in the order you want. *** ## Advanced configuration ### Combining with post-purchase upsells For maximum conversion, combine TYP widgets with post-purchase offers: 1. Add **Post-purchase Offers** to your funnel (before Thank You page). 2. Configure **TYP widgets** as a second touchpoint. 3. Customers who decline post-purchase offers will still see TYP widgets. 4. This creates multiple conversion opportunities in the customer journey. 5. Choose a **Select style** — **Plain text** or **Banner**. Choosing Banner reveals a **Select type of banner** option. 6. Enter your **Heading text** (optional). 7. Enter your **Content**. 8. Click **Save**. > [!NOTE] > > These are plain text fields, not a rich-text editor — there is no toolbar for bold, italics, lists, or links. Use the Banner style or an [Image widget](#configure-image-widgets) if you need more visual emphasis. *** ## Troubleshooting > [accordion] Widget not displaying > > * Verify funnel status is set to **Active**. > * Check that funnel triggers match your test order conditions. > * Confirm widgets are enabled in the funnel configuration. > * Ensure the widget block is added to the Thank You page in the Shopify editor and positioned toward the top of the page. > [accordion] Thank You page not triggering > > * Customers sometimes skip the Thank You page if they close the browser immediately after purchase. > * Ensure Thank You page offers are correctly set up in the Shopify editor. > * Verify the widget block is positioned correctly on the page. *** ## Limitations > [!NOTE] > > Countdown timers are not available on the Thank You page. This is a Shopify platform restriction and cannot be changed within Aftersell. Each funnel's Thank You Page widgets must be customized individually. There is no option to standardize them across multiple funnels. This ensures all offers are specific to the triggers and customer behavior for each funnel. *** > [!NOTE] > > Countdown timers on the Thank You page product recommendation widget are off by default and are not available on every store. Once the feature is enabled for yours, the widget's banner section gains **Enable timer**, **Timer duration**, and **Timer start** (page load or order created) controls, and the remaining time is inserted wherever you place the `{TIMER}` placeholder in your banner text. Contact support if you would like it turned on. **Want to go further?** * [Post-Purchase Best Practices](/aftersell/best_practices) - tips to improve conversion across all your offers * [How to Configure Post-Purchase Offers](/aftersell/how_to_configure_post_purchase_triggers) - set up your full post-purchase funnel # How do I cancel my Aftersell subscription? Source: https://docs.aftersell.com/aftersell/how_do_i_cancel_my_aftersell_subscription Cancelling and unsubscribing from Aftersell This guide walks through how to cancel your Aftersell subscription. Cancelling Aftersell uninstalls the app from your Shopify store and ends your subscription. Your settings, funnels, widgets, and configurations are retained for up to 1 year, so you can restore them if you reinstall within that window. ## Before you cancel If you are considering cancelling, these alternatives may address what you are looking to solve: * **Reduce your bill with Earn & Save.** Eligible stores can lower their Aftersell subscription cost through the Rokt Thanks Earn & Save program. Your Rokt Thanks earnings pay out to you in full, and a matching discount is applied to your monthly bill up to your bill amount. See the [Earn & Save Program](/aftersell/earn-save) page for details and eligibility. * **Contact support before cancelling.** If a specific issue is driving your decision, our support team may be able to resolve it. Reach us via in-app chat or email [support@aftersell.com](mailto:support@aftersell.com). ## How to cancel To cancel your Aftersell subscription and uninstall the app: **1. Open the Billing page** In the Aftersell admin, navigate to **Settings → Billing**. **2. Click Uninstall** On the **Current plan** card, click **Uninstall** in the row of buttons at the bottom of that card, beside **Compare plans** and **View pricing tiers**. A confirmation modal will open. (Don't scroll to the bottom of the page looking for it — the Payment history card renders below the Current plan card.) **3. Select a cancellation reason** In the modal, select the reason or reasons that best describe why you are cancelling. Your answer helps the Aftersell team improve the product. **4. Answer any follow-up questions** Depending on the reason you select, additional questions may appear. Answering these is optional but appreciated. **5. (Optional) Add additional comments** Use the "Something else" field to share any additional context you would like to provide. **6. Review your final invoice** The Final invoice banner displays any pending usage charges that will appear on your next Shopify invoice. Review these before confirming. **7. Confirm the uninstall** Click **Uninstall** to confirm. Your subscription is cancelled and the app is removed from your Shopify store in a single step. ## What happens after cancellation * **Your subscription** ends immediately. No new charges will be submitted for the upcoming billing cycle. * **Pending charges** that were already submitted to Shopify before cancellation will still be collected on your next Shopify invoice. To avoid charges for the next cycle, cancel at least one day before your next billing date. * **Your data** (settings, funnels, widgets, configurations) is retained for up to 1 year after cancellation. * **If you reinstall within 1 year**, your previous configuration is still there and there is no restore step to run — uninstalling never deletes your funnels, widgets, or settings. Onboarding asks you to accept a plan again, and everything else is waiting as you left it. After 1 year, data may be removed and a reinstall will start you on a fresh setup. * **Your theme stays clean.** Aftersell does not leave any code behind in your Shopify theme when uninstalled. All storefront integration runs through Shopify app embeds and app extensions, which Shopify removes automatically when the app is uninstalled. You do not need to manually edit theme files to clean up after cancellation. > [!NOTE] > > Shopify collects app charges on its own billing cycle, not on the day a charge is submitted. If you uninstall after a charge has been submitted for the current cycle, that charge will still be collected on the next Shopify invoice. For more on this timing, see the "Why was I billed after uninstalling?" section of the [Aftersell Billing & Pricing](/aftersell/aftersell_billing_pricing) page. ## Need help? For questions about cancellation, pending charges, or your final invoice, contact the Aftersell support team via in-app chat or email [support@aftersell.com](mailto:support@aftersell.com). ### Related pages * [Aftersell Billing & Pricing](/aftersell/aftersell_billing_pricing) * [Earn & Save Program](/aftersell/earn-save) # How to configure checkout widgets Source: https://docs.aftersell.com/aftersell/how_to_configure_checkout_widgets Enable and place Aftersell checkout widgets in Shopify Plus: upsells, cart controls, rewards, trust badges, testimonials, notes, images, text, and FAQ. This guide walks you through how to configure and place checkout widgets in Aftersell, from enabling widgets to optimizing placement in Shopify Checkout for maximum conversion rates.. **Note:** Checkout widgets are only available to Shopify Plus merchants due to Shopify's Checkout Extensibility API restrictions. *** ## Step 1: Enable your widget in Aftersell Before adding widgets to your checkout, you need to enable them in the Aftersell admin. 1. Navigate to the **Checkout** tab in your Aftersell admin 2. Select the widget type you want to configure ([Upsells](#upsells), [Cart Controls](#cart-controls), [Rewards,](#rewards) [Trust Badges,](#trust-badges) [Testimonials](#testimonials), [Notes](#notes), [Images](#images), [Text](#text), or [FAQ](#faq)) 3. Click **Create** to build a new widget or select an existing widget to edit 4. Configure your widget settings (see [Widget types and configuration](#widget-types-and-configuration) below) 5. Click the **Enable** toggle in the top right corner of the widget settings 6. For restricted or advanced upsells, make sure you enable custom triggers before proceeding *** ## Step 2: Open the Shopify Checkout Editor There are two ways to access the Shopify Checkout Editor: **Option 1: From Shopify Admin** 1. Go to **Settings** in your Shopify Admin 2. Click **Checkout** in the left navigation 3. Click **Customize** next to your desired checkout profile **Option 2: From Aftersell** 1. Click the **Open Shopify Checkout Editor** button in the bottom right of the Aftersell Checkout editor page 💡 **Tip:** Option 1 gives you more control over which checkout profile you're editing. We recommend testing on a draft version first before setting it live. ![Shopify admin home with the Settings link highlighted to open the checkout editor](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/checkout-widget-config-admin-settings-link.gif?s=a182cd42cf41d7b53e5e5765afeb65d9) *** ## Step 3: Add the app block to your checkout 1. In the Shopify Checkout Editor, click **Add app block** 2. Select your desired Aftersell widget from the list of available widgets 3. Choose the correct placement for your widget (see [Available placements](#available-placements) below) 4. If you want your widgets to display in Shop Pay checkout, check the [**Include app block in Shop Pay**](/aftersell/show_checkout_widgets_in_shop_pay) option 5. Click **Save** in the top right corner ![Shopify Checkout Editor with an arrow pointing to the Add block button in the sidebar](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/checkout-widget-install-add-app-block-button.png?fit=max\&auto=format\&n=1Y3gBpUfxv16VGSW\&q=85\&s=f6ba0d6ab535b750f8487c408e99ef69) *** ## Step 4: Position your widget 1. Drag and drop the app block to your desired location within the selected placement area 2. Click **Save** in the top right corner ![Shopify Checkout Editor block list beside a live checkout preview showing Aftersell widgets](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/checkout-widget-install-drag-app-block.gif?s=7d17314d5e47e74b202e18baf3867e7a) *** ## Widget types and configuration ## Placements Placements are created in the Aftersell Checkout editor and allow you to run multiple widgets of the same type on the same checkout page. For example, if you want to display two upsell offers on the same page, each must be assigned to a different placement. ### Available placements * **Default placement**: The primary placement. Every widget type starts here. * **Additional placement 1**: A second placement slot for displaying another widget of the same type on the same page. * **Additional placement 2**: A third placement slot for further separation. You can also create new placements directly from the placement dropdown in Aftersell by selecting **+ Add new placement**. ![Aftersell Checkout editor showing the placement dropdown above the Upsells list and preview](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/checkout-widget-config-placement-dropdown.gif?s=e43a141a2b6db37cb17ed0fcb1e2f8ef) *** ### Placing a widget inside a shipping option row Most checkout widget types (Upsells, Rewards, Trust badges, Testimonials, Notes, Images, and Text) can be placed directly inside a shipping option row in the Shopify Checkout Editor. Cart Controls and FAQ are the exceptions: neither has a shipping-option target, so neither can be placed in a row. When placed there, the widget renders inside the row for whichever shipping method the customer currently has selected. This lets you attach an offer or message to a specific shipping method — for example, showing an upsell or trust badge inside the selected shipping rate row. **How to set it up:** 1. Configure and enable your widget in the Aftersell admin as normal. 2. Open the Shopify Checkout Editor. 3. Click **Add app block** and select your Aftersell widget. 4. Drag the app block into the **Shipping** section of the checkout, placing it inside a shipping option row. 5. Select the matching placement (for example, **Default placement**) in the app block settings. 6. Click **Save**. **Things to keep in mind:** * The widget renders only inside the row for the shipping method the customer has selected. It does not appear in every row simultaneously. * The shipping section — and any widgets placed inside it — does not render for local pickup or digital-only carts. * Upsell widgets placed in a shipping option row can add products to the cart directly from inside the row. *** ### When to use multiple placements Use multiple placements when you want to: * Display more than one widget of the same type on a single checkout page * Show widgets in different sections of the page * Target different audiences with different offers * Run widgets with similar or overlapping triggers Aftersell uses a priority system. You cannot run multiple widgets with identical triggers within the same placement. If two widgets share the same trigger conditions in one placement, only one will display based on priority. To use similar triggers, assign each widget to a different placement so they can run independently without conflict. *** ## Matching placements in the Shopify Checkout Editor Each placement in Aftersell corresponds to a separate app block in the Shopify Checkout Editor. The placement selected in Shopify must match the placement set in Aftersell. For example, if a widget is assigned to **Additional placement 1** in Aftersell, the app block in Shopify must also be set to **Additional placement 1**. If placements do not match, the widget may not appear or may display in the wrong location. **Important:** A placement mismatch is one of the most common reasons a widget fails to display. If a widget is not appearing, confirm the placement matches in both Aftersell and Shopify before troubleshooting further. ![Shopify Checkout Editor Upsell Widget block settings with the Placement dropdown set to an additional placement](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/checkout-widget-config-block-placement-dropdown.gif?s=b9fc5f328cbf3bf04a63cfbdde505cb4) *** ### Upsells Offer products to customers during checkout to increase your average order value (AOV). **Configuration options:** **Widget modes:** * **Single Product Upsell:** Display one product with an Add to Cart button * **Multi-Product Upsell:** Show multiple products in a stack or carousel layout, allowing customers to accept multiple offers * **Checkmark Upsell:** Display a single product with a checkbox instead of an Add to Cart button (ideal for low-cost add-ons like shipping protection) **Product selection methods:** * **Specific Products:** Manually select individual products to upsell * **Collection:** Select a collection and display up to 5 random products (products already in cart are automatically excluded) * **Automatic upsell(s):** Automatically recommend products based on cart contents * **Most Expensive Product:** Automatically upsell the most expensive product from the cart * **Spend threshold:** Recommend products that help customers reach reward thresholds (only selectable once **Show rewards bar** is enabled on the same upsell widget) * **Strategy:** Dynamically select a product using rule-based targeting. Only shown on stores with [Strategies](/aftersell/strategies_overview) enabled **Additional features:** * Add discounts directly within the widget * Lock subscription plans to specific options * Display product review stars (requires compatible review app) * Set a maximum number of accepted offers per widget (Single and Multi upsell types only) [Learn more about upsell widgets](/aftersell/checkout_widget_types#upsells) *** ### Cart Controls Allow customers to modify their cart directly on the checkout page. **Available controls:** * **Variant selector:** Change to another in-stock variant * **Quantity selector:** Adjust product quantities * **Remove item:** Show Remove Item Button removes upsell products from the cart. A paired setting, **Allow Removal of Non-Upsell Products** (off by default), extends removal to everything in the cart * **Subscription selector:** Change subscription frequency * **Subscription upgrade:** Upgrade one-time purchases to subscriptions * **Custom text:** Add custom text below line items **Product targeting:** * Apply to all products in cart * Apply only to selected products * Apply to all products except selected ones **Additional features:** * Display product review stars for in-cart products [Learn more about cart controls](/aftersell/checkout_widget_types#cart-controls) *** ### Rewards Display a progress bar showing customers how close they are to earning a reward. **Configuration options:** * Reward basis: **Cart total** or **Item count** * Amount basis (for Cart total): **Order total (includes shipping and tax)**, **Subtotal (before discounts)**, or **Subtotal after discounts (excludes tax and shipping)** * Reward message and styling * Progress bar colors and design **Best practices:** * Pair with upsell widgets to help customers reach reward thresholds * Use spend threshold product type in upsells to automatically recommend products that close the gap * Create rewards in Shopify using Automatic Discounts (for discount rewards) or Shipping Rules (for free shipping) * Use **Subtotal after discounts (excludes tax and shipping)** as the amount basis when offering free shipping, so the bar matches Shopify's own threshold evaluation when discount codes are applied [Learn more about rewards](/aftersell/checkout_widget_types#rewards) *** ### Trust Badges Build trust with custom icons and text to increase checkout conversion rates. **Configuration options:** * Badge layout: Vertical stack or horizontal display * Custom icons and text for each badge * Styling and spacing options **Best practices:** * Highlight security features (secure checkout, SSL encryption) * Showcase guarantees (money-back guarantee, free returns) * Display shipping benefits (free shipping, fast delivery) [Learn more about trust badges](/aftersell/checkout_widget_types#trust-badges) *** ### Testimonials Display customer reviews directly on checkout to build trust. **Configuration options:** * **Review provider:** Pulls real reviews from your review app (Judge.me, Klaviyo, Okendo, or Yotpo) * Selection mode: Manual (choose specific reviews) or Dynamic (automatically fetch reviews based on cart contents) * Display type: Horizontal carousel or vertical stack * Minimum rating filter **Setup requirements:** * Configure review app credentials in Settings > Product Reviews * Reviews sync automatically within 24 hours, then weekly [Learn more about testimonials](/aftersell/checkout_widget_types#testimonials) *** ### Notes Allow customers to add notes to their order. **Configuration options:** * Manual notes: Free-text field for customer input * Pre-written notes: Checkboxes for options like gift wrapping or eco-packaging [Learn more about notes](/aftersell/checkout_widget_types#notes) *** ### Images Upload and display custom images in your checkout. **Configuration options:** * Image upload * Width adjustment slider * No minimum size requirement [Learn more about images](/aftersell/checkout_widget_types#images) *** ### Text Insert a banner with custom text in your checkout. **Configuration options:** * **Container Style:** **Plain Text** (the default) or **Banner**. The banner types below only appear once you choose Banner * **Banner Type** (Banner only). Shopify colors each type from your store's checkout branding, so the colors depend on your branding settings. With default branding: * **Information:** Light grey background with an information icon * **Success:** Light green background with a checkmark icon * **Warning:** Light orange background with a warning triangle icon * **Critical:** Light red background with an exclamation point icon * Text size on the **Body** field (Small or Base) — the Heading field has no size control * Alignment on both the Heading and Body fields * Spacing: None, Extra Tight, Tight, Base, Loose, or Extra Loose [Learn more about text](/aftersell/checkout_widget_types#text) *** ### FAQ Display an accordion of questions and answers in your checkout. Comes pre-loaded with five sample questions (default title: "Frequently asked questions") that you replace with your own. **Configuration options:** * Title text, title size (Base or Small), and title alignment (left, center, or right) * Divider between questions: Yes or No * Question alignment: a single alignment applied to every question, answer, and divider * Per-question text, answer text, and answer size (Base or Small), set in the edit modal for each row * Add questions with **Add question** and drag rows to reorder them **Recommended placement:** Payment step, below the pay button. [Learn more about FAQ](/aftersell/checkout_widget_types#faq) *** ## Troubleshooting ### Widgets not displaying If your widgets aren't showing after setup: 1. Verify widget is enabled in Aftersell admin 2. Check app block is added in Shopify Checkout Editor 3. Confirm app block is saved in Shopify Checkout Editor 4. Verify the correct placement is selected. When adding an app block in the Shopify Checkout Editor, you must choose the matching placement, such as Default placement, Additional placement 1, or Additional placement 2. If the wrong placement is selected, the widget may not appear or may display in the wrong location. Remove the app block and re-add it, ensuring the intended placement is selected. 5. For Shop Pay: Verify "Include app block in Shop Pay" is checked 6. Clear browser cache or try incognito mode 7. Wait a few minutes for changes to propagate ### Shop Pay widgets not showing To display widgets in Shop Pay checkout: 1. Open the widget in Shopify Checkout Editor 2. Check the **Include app block in Shop Pay** option under Checkout behaviour 3. Save your changes ![Shopify Checkout Editor sidebar showing the Aftersell Upsell Widget app block under Main](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/checkout-widget-config-editor-sidebar-app-block.gif?s=63de90b2b7e5807806e2390316de688d) [Learn more about Shop Pay Widgets](/aftersell/show_checkout_widgets_in_shop_pay) *** ## Next steps * [Learn about checkout triggers](/aftersell/checkout_triggers) to show widgets conditionally * [Set up checkout A/B testing](/aftersell/checkout_a_b_testing) to optimize placements * [Configure checkout branding](/aftersell/checkout_branding_settings) to match your store design * [Explore advanced upsell strategies](/aftersell/best_practices) to maximize AOV # How to install Rokt Thanks on Tapcart Source: https://docs.aftersell.com/aftersell/how_to_install_rokt_thanks_on_tapcart A Setup Guide for TapCart App Studio ## What is Rokt Thanks? Rokt Thanks displays personalized, non-intrusive offers to your customers on the post-purchase confirmation screen. It's a simple way to generate passive revenue from every order without impacting the customer experience. This guide walks through how to install Rokt Thanks within your TapCart mobile app using a Custom Code Block. The setup takes just a few minutes. ## Before you start You will need the following: * **TapCart Enterprise plan** - Custom Code Blocks are only available on Enterprise. If you're unsure about your plan, check with your TapCart account rep. * **Your Rokt Account ID** - your Aftersell account manager will provide this. If you don't have it yet, just reach out and we'll send it over. ## Step 1: Create a Custom Block Log in to your TapCart dashboard and open the App Studio editor. Create a new Custom Block. ## Step 2: Paste the code snippet In the Custom Block editor, switch to the Dev section. Clear any placeholder code and paste the snippet below: ```jsx theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} import * as React from "react" export default function RoktPlacement({ blockConfig, tapcartData, translations, pageState, useActions, }) { const containerRef = React.useRef(null) React.useEffect(() => { const loadRokt = async () => { try { await new Promise((resolve, reject) => { if (document.getElementById("rokt-launcher")) { resolve() return } const script = document.createElement("script") script.type = "text/javascript" script.src = "https://apps.rokt.com/wsdk/integrations/launcher.js" script.fetchPriority = "high" script.crossOrigin = "anonymous" script.async = true script.id = "rokt-launcher" script.addEventListener("load", () => resolve()) script.addEventListener("error", (error) => reject(error)) document.head.appendChild(script) }) const launcher = await window.Rokt.createLauncher({ accountId: "YOUR_ACCOUNT_ID", sandbox: true, }) await launcher.selectPlacements({ identifier: "TapCart.success", attributes: { email: tapcartData?.customer?.email || "", firstname: tapcartData?.customer?.firstName || "", lastname: tapcartData?.customer?.lastName || "", }, }) } catch (error) { console.error("Rokt SDK failed to load:", error) } } loadRokt() }, []) return
} ``` > [!NOTE] > > ### Replace Your Account ID > > In the snippet above, find the line `accountId: "YOUR_ACCOUNT_ID"` and replace `YOUR_ACCOUNT_ID` with the Account ID provided by your Aftersell account manager. > > Once updated, save the Custom Block. ## Step 3: Add to your Post Purchase page Navigate to your Post Purchase page in TapCart's visual editor. Drag the Custom Block you just created onto the page and drop it wherever you'd like the offers to appear. ## Step 4: Let us know Once you've completed the steps above, let your Aftersell account manager know. We'll finalize a quick configuration on our end and confirm when everything is live. The snippet is initially set to sandbox mode (`sandbox: true`), which loads test offers so you can preview the placement. `sandbox` is an option on the launcher in the snippet itself, not a setting on our side — so once we've confirmed everything looks right, edit the Custom Block, change `sandbox: true` to `sandbox: false`, and save. You'll start earning revenue from that point. ## Summary | Step | Action | | - | - | | 1 | Create a Custom Block in TapCart's App Studio editor | | 2 | Paste the code snippet into the Dev section (replace `YOUR_ACCOUNT_ID` with your actual Account ID) | | 3 | Drag the Custom Block onto your Post Purchase page | | 4 | Notify your Aftersell account manager so we can finalize setup | ## Frequently asked questions **Do I need to be on TapCart Enterprise?** Yes. Custom Code Blocks in App Studio require TapCart's Enterprise plan. **Will this slow down my app?** No. The script loads asynchronously and won't block your page from rendering. **Can I choose where the offer appears on the page?** Absolutely. Once the Custom Block is saved, you can drag it to any position on your Post Purchase page using TapCart's visual editor. **What kind of offers will my customers see?** Rokt Thanks serves relevant, non-intrusive offers from premium advertisers tailored to each customer. # Image widget (Thank You Page) Source: https://docs.aftersell.com/aftersell/image-widget-thank-you-page Configure the Thank You Page Image widget in Aftersell to display a custom image or banner on the post-checkout page. The Image widget displays a custom image or banner on the Thank You page, useful for promotions, community links, or brand imagery. This page covers every setting on the widget. For the full funnel setup and Shopify editor steps, see [How to configure thank-you page widgets](/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell). Add the widget from the **Thank You Page** section of your funnel by clicking **Add Widget** and selecting **Image**. ## Upload and size the image 1. Click the upload area to add your image. 2. Upload a JPG, PNG, or supported image file. 3. Adjust the **Image width** slider (50-500px) to control how large the image appears. 4. Click **Save**. # Checkout upsells Source: https://docs.aftersell.com/aftersell/implementing_strategies_checkout_upsells Use a Strategy to dynamically choose the product shown in a Shopify Plus checkout upsell widget. ## Overview When configuring a checkout upsell widget, you can fill the product slot in a few ways: hand-pick a specific product, let AI recommend one, or attach a **Strategy**. Each is a different tool for a different job. Strategies are for **dynamic merchandising in real time** - pairing the right accessory with a parent product, suggesting a complementary item, or surfacing a different product depending on what's already in the cart. Where checkout **triggers** decide *which* widget appears for a given shopper, a Strategy decides *what product goes inside it*. Triggers are the gateway, Strategies are the brain behind the experience. *** ## Attaching a Strategy to a Checkout Widget Strategies are attached **per widget**, not to the checkout as a whole. You can mix Strategy-driven widgets and static-product widgets in the same checkout. 1. Open the checkout widget you want to edit. 2. In the **Select product type** menu, choose **Strategy**. 3. In the Strategy picker, search for and select the Strategy you want to use. 4. Click **Confirm**, then save the widget. Once attached, the widget displays the Strategy's name in place of a specific product. Each time the checkout loads, the Strategy is evaluated and the returned product is rendered in the widget. > [!TIP] > > Give your Strategies clear, descriptive names. The Strategy name is what shows up in the widget editor once attached, and it's the easiest way to know at a glance which Strategy is driving which widget. *** ## What the Strategy Sees Checkout has a **narrower context** than post-purchase. The Strategy is evaluated as the checkout page loads, before the order is placed - so customer history and session attribution aren't available yet. The following is what gets sent automatically: #### Product context The line items currently in the cart are sent as the input products. Triggers like **product tags**, **product collections**, **product type**, **vendor**, and **product metafields** all evaluate against these items. **Selling plan doesn't evaluate here.** Checkout line items don't carry a selling plan in this payload, so a **Selling plan** trigger never matches on checkout widgets. #### Cart context * **Subtotal** - the cart subtotal. * **Item count** - total quantity across all lines. * **Line count** - number of distinct line items. > [!WARNING] > > **Customer and session triggers won't match in checkout.** Customer tags, order count, country, locale, and UTM parameters are not part of the checkout payload. If a Strategy used in a checkout widget relies on these triggers, those rules will never fire, and only product- or cart-scoped rules (or the Catch all) will be able to return a product. *** ## What Happens When the Strategy Returns The product(s) returned by the Strategy **replace** the placeholder in the widget - they don't add to it. The shopper sees the widget as if you had hand-picked that product yourself. The widget fills its slots from the returned products in priority order, up to the number of offers the widget is configured to show. A single-offer widget uses the first returned product. *** ## When No Product Is Returned If no rules match and the Strategy returns no products, the widget is **not shown** to the shopper - the slot disappears entirely from the checkout. To keep your widget firing, configure a **Catch all** in the Strategy so there is always a fallback product to return. See the [Building Strategies](/aftersell/strategies_building_in_app) page for how to set up a Catch all. *** ## Evaluation Timing By default, a Strategy on a checkout widget is evaluated **once, when the checkout page loads**. The product chosen at page load remains the product shown, even if the shopper adds or removes items during checkout. If the widget has **flexible trigger re-checking** enabled, the Strategy is instead re-evaluated whenever the cart changes during checkout, and the widget updates to reflect the new cart - similar to how the [Upcart integration](/aftersell/implementing_strategies_upcart_upsells) behaves. Plan your rules around whichever mode the widget uses: a fixed snapshot at checkout load, or a live re-evaluation on every cart change. *** ## Tips for Checkout Strategies * **Design around products and cart only.** Customer- and session-scoped triggers will never match in checkout, so build Strategies around product attributes (tags, collections, metafields) and cart shape (subtotal, item count, line count). * **Use Catch all as a safety net.** A Strategy without a Catch all will hide the widget if nothing matches. A simple Catch all keeps the slot showing *something*. * **Mix dynamic and static widgets.** Not every widget has to be Strategy-driven. A common pattern is a Strategy on the primary upsell widget (most personalized) and a static product on a secondary widget (proven seller). # Custom integration Source: https://docs.aftersell.com/aftersell/implementing_strategies_custom_integration Call the Strategies API directly to power custom storefront experiences - PDP carousels, custom cart upsells, and anywhere else Aftersell's native surfaces don't reach. ## Overview When neither Aftersell's native surfaces (post-purchase, checkout, Upcart) nor a packaged integration fits, you can call the Strategies API yourself from your Shopify theme and render the returned products however you like. The pattern is the same in every case: build a context payload from Liquid (so Shopify attributes like the current product, cart contents, and customer fields are filled in at render time), `POST` it to `/api/public/strategy/evaluate`, and render the response. This page covers two implementation patterns: * **PDP context** - drop a section onto product pages that calls the API with the **currently-viewed product** and renders a carousel of returned recommendations. * **Cart context** - render an upsell block inside a custom cart that calls the API with **all current cart line items** and renders the returned products. The shape of the **product context** is what differs between the two: a single product on PDP, an array of all line items in cart. *** ## What You'll Need 1. **Your Strategy API key.** In Aftersell, go to **Settings → Product Strategy** and, in the **Security Token** card, copy your token (this is your Strategy API key). 2. **The Strategy ID.** Open the Strategy you want to run in the Aftersell Strategy editor and copy its ID. 3. **Theme code access.** You'll be adding a Liquid section (PDP) or block (custom cart) to your Shopify theme - Online Store → Themes → ... → Edit code. > [!WARNING] > > Your Strategy API key sits in client-side theme code, which makes it visible to anyone who views the page source. Treat it as a public storefront credential and rotate it from Aftersell **Settings → Product Strategy** if it's ever exposed in a way you didn't intend. *** ## PDP Context: Section Snippet This pattern adds a Shopify section to your product page. When the page renders, Liquid embeds the current product, cart, and customer attributes into the payload, then JavaScript posts to the Strategies API and renders the returned products in a Splide carousel. ### Installing 1. In your Shopify admin, go to **Online Store → Themes**, click **...** on your theme, and select **Edit code**. 2. Under the **Sections** folder, create a new file named `aftersell-upsell-carousel.liquid`. 3. Paste the snippet below into the new file and replace `YOUR_STRATEGY_API_KEY` with the API key from Aftersell. 4. Save. 5. Open your product template (typically `templates/product.json` or `sections/main-product.liquid`) and add the **Aftersell Carousel** section where you want the carousel to appear. From the theme editor, you can also drag it onto the product page directly. 6. In the section's settings, paste your **Strategy ID**. ### What the section sends For each PDP view, the payload includes: * **products** - a single-element array containing the currently-viewed product (productId, variantId, quantity, price, handle, title, vendor, productType, tags, collections, sellingPlan). * **cart** - subtotal, item count, line count of the shopper's current cart (omitted if the cart is empty). * **cartToken** - so the API can stitch this evaluation into the same session. * **customer** - tags, country, province, locale, order count, total spent, and accepts-marketing flag, but **only if the shopper is logged in**. * **session** - currency code from `shop.currency`. The section does not send UTM parameters by default. If you want UTM-based targeting on PDP, capture them client-side and add them to the `session` object before the fetch. ### The snippet ```liquid theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} {% comment %} Aftersell Carousel (Splide) Type: Section — save to sections/aftersell-upsell-carousel.liquid {% endcomment %} {% if product %} {% endif %} {% schema %} { "name": "Aftersell Carousel", "settings": [ { "type": "text", "id": "strategy_id", "label": "AfterSell Strategy ID", "default": "ADD_ID_HERE" }, { "type": "text", "id": "heading", "label": "Heading", "default": "You might also like" }, { "type": "text", "id": "cta_label", "label": "CTA Button Label", "default": "Add to cart" }, { "type": "range", "id": "max_products", "label": "Max Products to Show", "default": 8, "min": 1, "max": 20, "step": 1 } ], "presets": [{ "name": "Aftersell Carousel" }] } {% endschema %} ``` ![A Strategy-powered product carousel rendered on a Shopify product page](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/strategy-carousel-example.png?fit=max\&auto=format\&n=SnVX3h-PpMMxQMDU\&q=85\&s=8fb7ac08c2ae0c430b5bc4f810c59e40) ### Customizing The section schema exposes four merchant-editable settings: **Strategy ID**, **Heading**, **CTA Button Label**, and **Max Products to Show**. Add or remove settings in the `{% schema %}` block to expose more knobs to the theme editor. The CSS is scoped under `.aftersell-*` class names and includes a Splide-driven 4-up carousel that drops to 2-up at 768px and 1-up at 480px. Edit it freely to match your theme - none of it is required for the API call to work. *** ## Cart Context: Custom Cart Upsell Block This pattern is structurally the same as the PDP one, with one key difference: the **product context array** is built from the cart's line items instead of the currently-viewed product. The Strategy then receives every item the shopper has added and returns recommendations based on the cart as a whole. The implementation lives wherever your custom cart code lives - a Liquid section that renders the cart drawer, a custom block in a headless storefront, or a theme template like `cart.liquid`. The shape of the API call and the response handling are identical to the PDP example - only the `products` array differs. The structure looks like: ```js theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} var products = {{ cart.items | json }}.map(function(item) { return { productId: 'gid://shopify/Product/' + item.product_id, variantId: 'gid://shopify/ProductVariant/' + item.variant_id, quantity: item.quantity, price: item.price / 100 // ...other fields as needed }; }); ``` The rest of the payload (cart, customer, session, cartToken) and the `fetch` call to `/api/public/strategy/evaluate` are unchanged from the PDP pattern above - only the `products` array swaps from `[productContext]` to the cart-derived array. *** ## What Happens When the Strategy Returns The response shape is the same regardless of which context you sent: ```json theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} { "success": true, "products": [ /* enriched recommended products */ ], "evaluationId": "f3a1c2e0-...", "resolution": { "strategyId": "...", "matchedRuleIds": [...], "fallbackUsed": false }, "meta": { "servedFromCache": false, "processingTimeMs": 12, "data": {} } } ``` The `evaluationId` is a unique id for this evaluation. If you capture it and attach it to the products you render, you can attribute the resulting order back to the exact recommendation that produced it - see [Attribution](#attribution) below. How you render the `products` array is entirely up to your theme code. The PDP snippet above renders them as a carousel of cards with variant pickers and add-to-cart buttons; a custom cart block might render them as a vertical list inside the drawer. For the full request and response schema, see the [Evaluate Strategy API reference](/aftersell/strategies_api_reference_evaluate_strategy). *** ## When No Product Is Returned If the Strategy returns no products (`products: []`), it's up to your code how to handle it. The PDP snippet above hides the carousel entirely. A custom cart block might fall back to the cart's default upsell list, or simply render nothing. To avoid an empty response, configure a **Catch all** in the Strategy so there is always a fallback product to return. See the [Building Strategies](/aftersell/strategies_building_in_app) page for how to set up a Catch all. *** ## Tips for Custom Integrations * **Build context in Liquid.** Liquid runs at render time and has access to the full Shopify object graph - product, cart, customer, shop, request. Use it to populate the payload server-side rather than reaching for client-side calls. * **Keep the API key out of public repos.** It will end up in your theme code, which is shipped to the browser - that's fine. But don't paste the same theme into a public repository or share the bundle externally. * **Use a Catch all.** Storefront experiences look broken when a slot disappears. A Catch all with a small set of safe defaults keeps the UI consistent. * **Cache where it makes sense.** The Strategies API does light caching server-side (`meta.servedFromCache`), but for high-traffic PDPs you may also want to debounce or memoize calls on the client (e.g. don't re-call when the same product is rendered twice in a session). *** ## Attribution When a shopper clicks the add-to-cart button in the snippet, the `/cart/add.js` call attaches **line item properties** to the cart item: ```js theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} properties: { "_source": "Aftersell", "_attribution": "CTA" } ``` These properties travel with the line item all the way through to the Shopify order, where they appear on the line item record. You can use them downstream to attribute revenue, filter orders, or feed analytics tools that read line item properties. The keys and values are conventions, not requirements - the API call works the same regardless of what you put here. Change them to fit your own attribution model. For example: ```js theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} properties: { "_source": "PDP Carousel", "_strategy_id": "{{ section.settings.strategy_id }}", "_campaign": "summer-2026" } ``` > [!TIP] > > Property keys that begin with an underscore (`_`) are hidden from the cart and checkout UI but still attach to the order. Use the underscore prefix for attribution-only metadata you don't want shoppers to see. Apply the same pattern in the cart-context implementation - any add-to-cart call you make from a custom upsell block can carry whatever properties you need. ### Attributing back to the evaluation To tie an order back to the **exact evaluation** that recommended the product - rather than just "came from a Strategy" - capture the `evaluationId` from the response and attach it to the line item under the `__as_offer_id` property. AfterSell reads this key, so orders tagged with it attribute to the specific evaluation in reporting. In the `evaluate()` handler, hold onto the id from the response: ```js theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} .then(function(data) { if (!data || !data.success || !data.products || !data.products.length) { clearSkeletons(); return; } evaluationId = data.evaluationId; // declare `var evaluationId;` alongside your other state renderCards(data.products.slice(0, MAX_PRODUCTS)); }) ``` Then include it in the add-to-cart properties: ```js theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} properties: Object.assign( { "_source": "Aftersell", "_attribution": "CTA" }, evaluationId ? { "__as_offer_id": evaluationId } : {} ) ``` Keep the double underscore on `__as_offer_id` - it's the key AfterSell looks for, and the underscore prefix keeps it hidden from shoppers. If `evaluationId` is absent (for example, no products were returned), skip the property rather than sending an empty value. # Post-purchase upsells Source: https://docs.aftersell.com/aftersell/implementing_strategies_post_purchase_upsells Use a Strategy to dynamically choose the product shown in a post-purchase upsell offer. ## Overview When configuring a post-purchase offer, you can fill the product slot in a few ways: hand-pick a specific product, let AI recommend one, or attach a **Strategy**. Each is a different tool for a different job. Strategies are for **dynamic merchandising in real time** - pairing the right accessory with a parent product, suggesting the next step in a routine, or surfacing a complementary item. Where triggers initiate a funnel + layout; a Strategy then decides what products go inside it. Triggers are the gateway, Strategies are the brain behind the experience. *** ## Attaching a Strategy to a post-purchase offer Strategies are attached **per offer step**, not to the funnel as a whole. You can mix strategy-driven steps and static-product steps in the same funnel. 1. Open the funnel you want to edit and go to the **Upsells** section. 2. On the upsell slot you want to configure, click **Create your first offer** (or **+** to add another offer). 3. Under **Select type**, choose **Single product upsell** or **Multi product upsell**. 4. Under **Select product type**, choose **Strategy**. 5. In the Strategy picker, search for and select the Strategy you want to use. 6. Click **Confirm**, then save the funnel. ![Selecting Strategy as the product type when creating a post-purchase upsell offer](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/strategy-offer-product-type.png?fit=max\&auto=format\&n=SnVX3h-PpMMxQMDU\&q=85\&s=254ff087a0fe06e3acc3c7fd96bf4a6c) Once attached, the offer step displays the Strategy's name in place of a specific product. Each time the offer is shown, the Strategy is evaluated and the returned product is rendered. > [!TIP] > > Give your Strategies clear, descriptive names. The Strategy name is what shows up in the funnel editor once attached, and it's the easiest way to know at a glance which Strategy is driving which offer step. *** ## What the Strategy sees When a post-purchase offer evaluates a Strategy, the following context is sent automatically. You don't need to configure any of it - it's pulled from the shopper's order and session as the offer is prepared. #### Product context The line items from the just-completed order are sent as the input products. Triggers like **product tags**, **product collections**, **product type**, **vendor**, and **product metafields** all evaluate against these items. **Selling plan doesn't evaluate here.** The order's line items don't carry a selling plan in this payload, so a **Selling plan** trigger never matches on post-purchase offers. #### Cart context * **Subtotal** - the order subtotal. * **Item count** - total quantity across all lines. * **Line count** - number of distinct line items. #### Customer context * **Customer tags** * **Order count** (lifetime orders for the customer) * **Country / province** * **Locale** Country, province, and locale are read from the order itself and are available for every checkout. Customer tags and order count come from the Shopify customer record - they populate as soon as the checkout is linked to a customer (which Shopify does once a recognized email is entered, or when a new customer record is created). #### Session context Post-purchase offers don't send a session context automatically - no landing URL, shipping, or store-currency data is included in the payload. **Marketing** and **Location** triggers (see [Building Strategies](/aftersell/strategies_building_in_app)) won't match on post-purchase offers unless you evaluate the Strategy yourself through a [custom integration](/aftersell/implementing_strategies_custom_integration) and supply that context. *** ## What happens when the Strategy returns The product(s) returned by the Strategy **replace** the placeholder in the offer step - they don't add to it. The shopper sees the offer as if you had hand-picked that product yourself. A single-product offer uses the first returned product. A multi-product offer fills its slots from the returned products in priority order. *** ## When no product is returned If no rules match and the Strategy returns no products, the post-purchase upsell is **not shown** to the shopper. To keep your funnel firing, configure a **Catch all** in the Strategy so there is always a fallback product to return. See the [Building Strategies](/aftersell/strategies_building_in_app) page for how to set up a Catch all. *** ## Tips for post-purchase Strategies * **Use Catch all as a safety net.** A Strategy without a Catch all will skip the offer step if nothing matches. A simple Catch all keeps the funnel showing *something*. * **Mix dynamic and static steps.** Not every step has to be Strategy-driven. A common pattern is a Strategy on the first offer (most personalized) and a static fallback offer on the second offer (proven seller). # Thank you page upsells Source: https://docs.aftersell.com/aftersell/implementing_strategies_thank_you_page_upsells Use a Strategy to dynamically choose the products shown in a Thank You Page product recommendation widget. ## Overview When configuring a Thank You Page **product recommendation** widget, you can fill it in a few ways: hand-pick specific products, return a collection, let AI recommend products, or attach a **Strategy**. Each is a different tool for a different job. Strategies are for **dynamic merchandising in real time** - pairing the right add-on with what the shopper just bought, surfacing a complementary item, or recommending the next step in a routine. Where the Thank You Page widget decides *where* recommendations appear, a Strategy decides *what products go inside it* - evaluated fresh against each order. A Strategy on the Thank You Page can also override each card's copy and apply a per-product discount, so different products can carry different messaging and pricing. See [Rule copy and per-product discounts](#rule-copy-and-per-product-discounts). *** ## Attaching a Strategy to a Thank You Page Widget A Strategy is the product source for a single product recommendation widget. It is **exclusive** - a widget sourced by a Strategy can't also use specific products, a collection, or AI recommendations. 1. Open the Thank You Page funnel and edit the **product recommendation** widget you want to configure. 2. In the **Add upsell products** menu, choose **Strategy**. 3. In the Strategy picker, search for and select the Strategy you want to use. 4. Confirm, then save the widget. Once attached, the widget shows the Strategy's name in place of specific products. Each time the Thank You Page loads, the Strategy is evaluated and the returned products are rendered in the widget. > [!TIP] > > Give your Strategies clear, descriptive names. The Strategy name is what shows up in the widget editor once attached, and it's the easiest way to know at a glance which Strategy is driving which widget. *** ## What the Strategy Sees When a Thank You Page widget evaluates a Strategy, the following context is sent automatically. You don't need to configure any of it - it's pulled from the completed order and session as the page loads. #### Product context The line items from the **just-completed order** are sent as the input products. Product triggers - **product tags**, **product collections**, **product type**, **vendor**, **title**, **handle**, and **product metafields** - all evaluate against these items. Their attributes are resolved automatically, so you only need rules; you don't have to supply product data yourself. > [!NOTE] > > The products the shopper just bought are automatically **excluded** from the results, so a Strategy never re-recommends an item that's already in the order. #### Cart context * **Subtotal** - the order subtotal (in the store's major currency units, e.g. dollars). * **Item count** - total quantity across all lines. * **Line count** - number of distinct line items. #### Customer context * **Customer tags** * **Order count** (lifetime orders for the customer) * **Country / province** (the order's destination) * **Locale** #### Session context UTM parameters captured when the shopper arrived at the store: * **UTM source** * **UTM medium** * **UTM campaign** * **UTM content** * **UTM term** > [!WARNING] > > **Some triggers won't match on the Thank You Page.** Cart notes and cart attributes, customer total spent and accepts-marketing, the selling-plan trigger, and the shipping/store-currency triggers are not part of the Thank You Page payload. Rules that rely on these triggers will never fire here - build Thank You Page Strategies around product attributes, cart shape, customer tags / order count / location, and UTM parameters. *** ## Rule copy and per-product discounts A Strategy gives you per-product control over both the **copy** and the **discount** shown on each Thank You Page card. * **Rule copy** - a matching rule can set a **title**, **subtitle**, and **button (CTA) label** for the products it returns. When present, the rule's title appears above the product title (it doesn't replace it), the subtitle shows as a secondary line, and the CTA overrides the widget's button text. Cards whose products didn't come from a rule with copy render unchanged. * **Per-product discount** - a matching rule can set a discount (a percentage, or a fixed amount) that applies to the products it returns. This **overrides** the widget's configured discount, per product - so different rules can show different discounts on different cards. The discount shown on the card is the discount actually charged when the shopper accepts. The widget's own discount setting becomes the **default**: it applies to any returned product that the Strategy doesn't set a discount for. > [!WARNING] > > A **fixed-amount** discount in a currency other than the order's currency can't be applied, so the card falls back to the widget's configured discount instead. **Percentage** discounts always apply regardless of currency. *** ## What Happens When the Strategy Returns The widget renders the products the Strategy returns, in priority order, up to the widget's **maximum products to show**. Only products that are available for purchase are shown. The Strategy's products **replace** the widget's placeholder - the shopper sees the widget as if you had hand-picked those products yourself. *** ## When No Product Is Returned If the Strategy returns no products, the widget renders **nothing** - it's hidden from the Thank You Page. The page never breaks: if a Strategy can't be evaluated for any reason, the widget simply doesn't show. To keep the widget firing, configure a **Catch all** in the Strategy so there is always a fallback product to return. See the [Building Strategies](/aftersell/strategies_building_in_app) page for how to set up a Catch all. (Catch-all fallback products are shown without rule copy or a per-product discount.) *** ## Evaluation Timing A Strategy on a Thank You Page widget is evaluated **once, when the Thank You Page loads**. The order is already placed, so there's nothing to re-evaluate against - the products chosen at load are the products shown. *** ## How Shoppers Accept How an accepted upsell is processed depends on the funnel's order-handling setting: * **New order** - the shopper completes a separate, discounted checkout for the upsell product. * **Modify original order** - the upsell is merged into the order the shopper just placed. Either way, the product, variant, and discount are re-validated against what the Strategy returned before the order is created or edited - so the price charged always matches the price shown. *** ## Tips for Thank You Page Strategies * **Design around the order.** Product attributes (tags, collections, type, vendor, metafields), cart shape (subtotal, item/line count), customer tags / order count / location, and UTM parameters are the signals available here. * **Lean on copy and per-product discounts.** Use rule copy to tailor the pitch per product, and per-product discounts to vary pricing by rule - with the widget discount as a safe default. * **Use Catch all as a safety net.** Without one, the widget shows nothing whenever no rule matches. # Upcart upsells Source: https://docs.aftersell.com/aftersell/implementing_strategies_upcart_upsells Use a Strategy to dynamically choose the products shown in Upcart's upsells module. ## Overview Upcart is a separate app from Aftersell, so Strategies aren't baked into the Upsells module the way they are in Aftersell's post-purchase and checkout flows. Instead, you bridge the two apps with a small script that calls the Strategies API directly and feeds the result into Upcart's existing Upsells module via Upcart's public API. The script is **drop-in** - paste it once into Upcart's custom HTML, replace two values (your Strategy API key and the Strategy ID), and the Upsells module will start surfacing whatever products the Strategy returns. *** ## What You'll Need 1. **Your Strategy API key.** In Aftersell, go to **Settings → Product Strategy** and, in the **Security Token** card, copy your token (this is your Strategy API key). 2. **The Strategy ID.** Open the Strategy you want to run in the Aftersell Strategy editor and copy its ID. 3. **The Upsells module enabled in Upcart.** The script overrides the list of products shown in the existing upsell block, so the module needs to be turned on for anything to render. *** ## Adding the Script In Upcart, go to **Settings → Custom HTML → Scripts (before load)** and paste the script below. Replace `STRATEGY_ID` and `STRATEGY_API_KEY` with the values from Aftersell, then save. ```html theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} ``` > [!WARNING] > > Your Strategy API key authorizes calls against your shop's Strategies. The script above places it in client-side code, which is the only practical way to invoke the API from the cart drawer. Treat the key as you would any other public storefront credential and rotate it from Aftersell **Settings → Product Strategy** if it's ever exposed in a way you didn't intend. *** ## What the Strategy Sees Because this runs from the storefront cart, the context is a slim subset of what's available on Aftersell's native surfaces: #### Product context The line items currently in the Upcart cart are sent as the input products. Triggers like **product type**, **vendor**, **product handle**, **product title**, and any **product ID / variant ID** triggers all evaluate against these items. #### Cart context * **Subtotal** - cart subtotal in the store's major currency units (e.g. dollars). Upcart's `total_price` is in minor units (cents), so the script divides by 100 to match the units the rest of the Strategies API uses - and the units your `cart_subtotal` rules are authored in. * **Item count** - total quantity across all lines. * **Line count** - number of distinct line items. #### Session context * **Currency code** - taken from `window.Shopify.currency.active`. > [!WARNING] > > **Customer triggers and UTM triggers won't match.** The default script doesn't send customer tags, order count, location, or UTM parameters - so any rule using those triggers will never fire. Use product, cart, and currency triggers, or a Catch all, to make sure something always returns. *** ## What Happens When the Strategy Returns The products returned by the Strategy fully **replace** the list Upcart would otherwise show in the Upsells module. The merchant-defined upsell list is overridden for the duration of that cart - it's not merged in. Each Strategy product is mapped to Upcart's expected product shape (variants, images, options, metafields, etc.) so it renders inside the upsell block exactly like any other product. *** ## When No Product Is Returned If the Strategy returns no products, the Upsells module renders **empty** - no upsells are shown. To avoid this, configure a **Catch all** in the Strategy so there is always a fallback product to return. See the [Building Strategies](/aftersell/strategies_building_in_app) page for how to set up a Catch all. *** ## Re-Evaluation on Cart Changes Unlike checkout upsells, the Upcart implementation **re-evaluates the Strategy every time the cart changes** - items added, removed, or quantity-updated. The script subscribes to Upcart's `cartUpdated` event, sends the new cart to the Strategies API, and refreshes the cart drawer with the new upsell list. A cart-signature check skips redundant calls if the line items and quantities haven't actually changed, so back-to-back cart events that don't materially change the cart won't re-hit the API. *** ## Tips for Upcart Strategies * **Design around the cart.** Cart-shape and product triggers are the strongest signals you have here. Customer history and UTM-based targeting aren't sent by the default script. * **Use Catch all as a safety net.** Without one, the Upsells module will show nothing whenever no rule matches. * **Cache-friendly by default.** The cart-signature guard prevents re-firing the API if the cart hasn't materially changed - good for shoppers who toggle the cart open and closed without editing it. # Aftersell & Judge.me reviews integration Source: https://docs.aftersell.com/aftersell/judgeme_reviews_integration This article explains how to set up the Aftersell and Judge.me Reviews integration for the testimonials widget. Judge.me reviews work automatically with Aftersell for displaying review stars on upsell offers. To use Judge.me reviews in the testimonials widget, you need to provide your API key. ## Setting up Judge.me integration 1. Install the [Judge.me app](https://apps.shopify.com/judgeme) from the Shopify app store 2. In your Judge.me app, go to `Settings > Integrations > API token` 3. Copy your **Private API token** 4. Open the Aftersell app, then go to `Settings > Product Reviews` 5. Select **Judge.me** from the review integrations list 6. Paste your Private API token in the **Judge.me API key** field 7. Click **Save changes** The integration is complete. You can now use Judge.me reviews in your Testimonials widget. ## Syncing reviews Aftersell imports reviews from Judge.me and stores them so they can be displayed in the testimonials widget. > [!WARNING] > > **Saving your credentials doesn't start an import on its own.** The weekly automatic sync only picks up stores that have a **live Testimonials widget** whose selection mode is **Dynamic** and whose provider is Judge.me — on Checkout, on the Thank You Page, or in a post-purchase offer. Until such a widget exists, use **Sync now** below to import manually. Once you do have a qualifying widget, Aftersell re-imports that store's reviews about once a week. To import reviews immediately: 1. Go to `Settings > Product Reviews` 2. Find the **Judge.me reviews** section 3. Click **Sync now** The sync status shows when reviews were last imported and when the next sync is available. # Aftersell & Klaviyo reviews integration Source: https://docs.aftersell.com/aftersell/klaviyo_reviews_integration This article explains how to set up the Aftersell and Klaviyo Reviews integration for the testimonials widget. To use Klaviyo reviews in the Aftersell testimonials widget, you need to provide your Klaviyo private API key. ## Setting up Klaviyo integration 1. In Klaviyo, navigate to your account settings 2. Go to `Integrations > Developers > Manage API keys` 3. Click **Create Private API Key** * You can name it "Aftersell API key" * Select **read-only** permissions 4. Copy the generated API key 5. Open the Aftersell app, then go to `Settings > Product Reviews` 6. Select **Klaviyo** from the review integrations list 7. Paste your private API key in the **Klaviyo private API key** field 8. Click **Save changes** The integration is complete. You can now use Klaviyo reviews in your Testimonials widget. ## Syncing reviews Aftersell imports reviews from Klaviyo and stores them so they can be displayed in the testimonials widget. > [!WARNING] > > **Saving your credentials doesn't start an import on its own.** The weekly automatic sync only picks up stores that have a **live Testimonials widget** whose selection mode is **Dynamic** and whose provider is Klaviyo — on Checkout, on the Thank You Page, or in a post-purchase offer. Until such a widget exists, use **Sync now** below to import manually. Once you do have a qualifying widget, Aftersell re-imports that store's reviews about once a week. To import reviews immediately: 1. Go to `Settings > Product Reviews` 2. Find the **Klaviyo reviews** section 3. Click **Sync now** The sync status shows when reviews were last imported and when the next sync is available. # Managing checkout discounts Source: https://docs.aftersell.com/aftersell/managing_checkout_discounts Learn how to view, edit, and delete discounts created for checkout upsells in Aftersell The discount library in Aftersell allows you to manage all discounts created for your checkout upsells. You can view which upsells use each discount, edit discount details, and delete unused discounts. ## Accessing the discount library To access your discount library: 1. Open the **Aftersell** app in your Shopify Admin 2. Navigate to **Checkout** > **Discounts** The discount library displays all discounts you've created through Aftersell. These discounts also appear under "Aftersell Discounts" on your Shopify Discounts page. ## Understanding discount status The Checkout discounts page shows one status badge in the top right, reflecting whether your Aftersell checkout discount code is active on Shopify. It is a page-level status, not a per-discount one: * **Active on Shopify** - The discount is active and working correctly * **Inactive on Shopify** - The discount may be missing or deactivated on your Shopify Discounts page If a discount shows as inactive, check your Shopify Admin > Discounts page to verify the discount exists and is active. ## Editing a discount To edit an existing discount: 1. Click on the discount you want to edit from the list 2. The discount details appear in the right panel 3. Modify the **title**, **discount type** (percentage or fixed amount), or **amount** 4. Click **Update** to apply your changes ⚠️ Changes apply to all upsells using this discount. The "Used in" section shows which widgets and products currently use the discount. ## Deleting a single discount To delete a discount: 1. Click on the discount you want to delete 2. Click the **Delete** button in the right panel 3. Confirm the deletion in the modal The discount is removed from all upsells that use it. This action cannot be undone. ## Bulk deleting unused discounts If you have discounts that aren't currently used in any upsells, you can delete them all at once: 1. In the discount library, look for the **Delete X unused discount(s)** button 2. Click the button to see a list of all unused discounts 3. Review the list in the confirmation modal 4. Click **Delete X discount(s)** to confirm This feature only appears when you have unused discounts. The system automatically identifies which discounts aren't applied to any upsell offers. ## Searching discounts Use the search bar at the top of the discount library to find discounts by name. The search matches the displayed rule name, which is the title plus the savings amount — for example "Summer add-on (15% off)". Checkout discount rules do not have discount codes of their own, so you cannot search by code. ## Creating new discounts Discounts are created when you add them to upsell offers in the Checkout editor. You cannot create standalone discounts in the discount library. To create a new discount: 1. Go to **Checkout** > **Editor** 2. Edit or create an upsell widget 3. Click **Add discount** when configuring an offer 4. Choose **Create new** and set the title and amount The new discount appears in your discount library and can be reused in other upsells by selecting **Pick existing** when adding discounts. ## Related articles * [Checkout widget types](/aftersell/checkout_widget_types) - Learn about adding discounts to upsell widgets * [Creating your first checkout widget](/aftersell/creating_your_first_checkout_widget) - Step-by-step guide to creating checkout widgets # Connect your AI client with Aftersell MCP Source: https://docs.aftersell.com/aftersell/mcp-connect-self Connect an AI client like Claude Desktop to your store's Aftersell analytics using the Aftersell MCP server (Model Context Protocol). MCP (Model Context Protocol) is an open standard that lets an AI client connect to outside tools and data. Aftersell hosts an MCP server that gives your AI client access to your store's Aftersell analytics. The self-serve connect page lets you link an AI client — such as Claude Desktop — to your store's Aftersell analytics. Once connected, you can ask your AI client questions about your store's upsell performance, funnel results, and more, directly in natural language. By default, the connection is read-only: your AI client can read your Aftersell analytics data but cannot place orders or change any settings. Personally identifiable customer fields are blocked. Stores with write access enabled can also create and update post-purchase funnels through the connection. Contact the customer support team to request write access. ## What you can ask Once connected, you can ask your AI client questions like: * How much extra revenue did my upsells make last week? * How do I stack up against similar stores on post-purchase performance? * How are my funnels performing this week? * Break down my offer responses - how many were accepted, declined, or timed out? * Why aren't my post-purchase offers showing to more shoppers? * Which upsell products drove the most revenue last month? * Which of my active funnels is underperforming on conversions? * How many orders did my store get each day this month, and what was my average order value? * Compare my primary offer step vs the second offer vs the downsell - which converts best? * Is my upsell conversion rate trending up or down lately? * How many people saw my post-purchase offers each day over the last two weeks? * How does my revenue per visitor compare to similar stores? * Trace order #1234 - did the shopper see an offer? With write access, you can also ask your AI to take action: * Create a draft post-purchase funnel for my best-selling products. * Update the headline and offer copy in my post-purchase funnel. * Review my funnel performance and suggest changes before updating it. ## Connecting your AI client The connect page opens with **Choose your AI client**, a picker offering **Claude Desktop**, **Claude Code**, **Codex App**, and **Codex CLI**. The steps below it change to match your choice: Claude Desktop and Codex App give you a connector URL to paste into the client's own settings, while Claude Code and Codex CLI give you a single terminal command to copy instead. The walkthrough below is for Claude Desktop. 1. On the connect page, choose **Claude Desktop**. A single-use connect code is minted for you automatically and shown under step 3, **Enter the connect code** — you do not have to click anything to get one. It expires **6 hours** after it is generated; **Regenerate** gives you a fresh one, and **Generate** appears instead if no code is currently shown. 2. Copy the **Remote MCP server URL** from step 2, **Add the connector to Claude Desktop**. It is shown whether or not a code has been generated. 3. In Claude Desktop, open **Settings**, then **Connectors**. 4. Choose **Add custom connector** and paste in the URL. 5. Click **Connect**. Claude will ask for a connect code. 6. Enter the connect code from step 1. 7. A verification number appears in both Claude and your Aftersell admin. Select the matching number in your admin to approve the connection. Once approved, your status changes to **Connected** and you can start asking questions. ## Connecting a second store Your MCP connection is tied to your email address, not a single store. Once you have a connection set up, you can link additional stores without going through the full setup again. To link another store: 1. Open the connect page from that store's Aftersell admin. 2. The page shows a **Store data access** section with a **Link store** button. 3. Click **Link store**. The store is linked immediately — no connect code or approval needed. Once linked, your AI client can read that store's Aftersell data through the same connection. If you have more than one store linked, tell your AI client which store you're asking about. ## The two sections on the connect page The connect page has two independent sections: * **MCP connection** — the status of your AI client's connection to Aftersell MCP. This is email-global: one connection reaches every store you've linked. * **Store data access** — whether this specific store's data is accessible through your connection. The store data access section only appears once your MCP connection is active. ## Connection statuses ### MCP connection | Status | Meaning | | - | - | | **Not connected** | No active MCP connection. Follow the setup steps to connect. | | **Awaiting your approval** | You've entered the connect code in your AI client. Select the matching verification number in your admin to approve. | | **Connecting…** | Your approval was submitted. The AI client is finishing the connection. This usually takes a few seconds. | | **Connected** | Your AI client is connected and can read your Aftersell analytics. | If your connect code or a pending approval lapses before the connection completes, the status stays **Not connected** — there is no separate expired status. Generate a new code and run through the steps again. ### Store data access Unlike the MCP connection section above, this section shows a status badge in one case only — **Expired**. The other states are shown in different ways: | State | What appears | Meaning | | - | - | - | | **Linked** | A **Linked** button with a checkmark — no badge | This store's data is accessible through your MCP connection. | | **Expired** | An **Expired** badge and a **Link store** button | This store's access lapsed after 30 days without use. Click **Link store** to restore it. | | **Not yet linked** | No badge — just the section description and a **Link store** button | Your connection exists but this store hasn't been linked yet. | | **Access removed** | No badge — a warning banner | A store owner or staff member removed this store's access. Ask them to restore it. | ## Disconnecting To disconnect your AI client from Aftersell MCP, click **Disconnect** on the connect page and confirm. This disconnects your AI client from all stores immediately. Your store access records are kept, so you can reconnect anytime by following the setup steps again. ## Who can connect Store owners, staff members, and collaborators can all self-connect. Collaborators connect and link stores for their own email address, scoped to the store they have a session for. Managing other people's MCP access — granting, approving, or revoking access for others — is limited to store owners and staff members. Access management is also rolled out separately from self-connecting, so the management screen may not be available on your store yet even though you can connect your own AI client. Contact the customer support team if you need it. ## Frequently asked questions **What is an MCP?** MCP (Model Context Protocol) is an open standard that lets an AI client connect to outside tools and data. This connector lets your AI explore your store's Aftersell analytics. Stores with write access can also create or update post-purchase funnels. **What can the AI access?** Your store's Aftersell analytics, and supported Shopify data scoped to this shop. Aftersell doesn't hold a full copy of your store's data, so the AI can't see everything in Shopify. Personally identifiable customer fields are blocked. Stores with write access can also create or update regular post-purchase funnels. **My AI is asking me to approve tool calls. What does that mean?** A tool call lets your AI read data or take an action through Aftersell. With write access, some calls can create or change a funnel — review the proposed action before approving. Approval settings vary by AI client, so check whether your client asks each time or allows tools to run automatically. **Is my data safe?** Yes. The connector is scoped to your store's Aftersell analytics only, and access is limited to what your store has enabled. The verification number step during setup ensures only you can approve a connection. **How do I connect another store?** Open the connect page from each store's Aftersell admin and click **Link store** to give your connection access. Your MCP connection reaches every store you've linked, so when you have more than one, tell your AI client which store you're asking about. **My connect code expired. What do I do?** Generate a new code on this page and use that one. Each new code replaces the previous unused one. **How do I stop the AI's access?** Click **Disconnect** on this page to disconnect your AI client from Aftersell MCP right away. You can connect again anytime by following the setup steps. **Can I have multiple AI clients connected?** Each connect code is single-use. To connect a second device or client, generate a new connect code and repeat the setup steps. # Aftersell & Okendo reviews integration Source: https://docs.aftersell.com/aftersell/okendo_reviews_integration This article explains how to set up the Aftersell and Okendo Reviews integration for the testimonials widget. Okendo reviews work automatically with Aftersell for displaying review stars on upsell offers. To use Okendo reviews in the testimonials widget, you need to provide your User ID. ## Setting up Okendo integration 1. Install the [Okendo app](https://apps.shopify.com/okendo-reviews) from the Shopify app store 2. In your Shopify admin, open the Okendo platform 3. Go to `Settings > Integrations > Credentials` 4. Copy your **User ID** 5. Open the Aftersell app, then go to `Settings > Product Reviews` 6. Select **Okendo** from the review integrations list 7. Paste your User ID in the **Okendo User ID** field 8. Click **Save changes** The integration is complete. You can now use Okendo reviews in your Testimonials widget. ## Syncing reviews Aftersell imports reviews from Okendo and stores them so they can be displayed in the testimonials widget. > [!WARNING] > > **Saving your credentials doesn't start an import on its own.** The weekly automatic sync only picks up stores that have a **live Testimonials widget** whose selection mode is **Dynamic** and whose provider is Okendo — on Checkout, on the Thank You Page, or in a post-purchase offer. Until such a widget exists, use **Sync now** below to import manually. Once you do have a qualifying widget, Aftersell re-imports that store's reviews about once a week. To import reviews immediately: 1. Go to `Settings > Product Reviews` 2. Find the **Okendo reviews** section 3. Click **Sync now** The sync status shows when reviews were last imported and when the next sync is available. # Order browser troubleshooting Source: https://docs.aftersell.com/aftersell/order-browser-troubleshooting Fix common issues with offer statuses, funnel gaps, and ineligible orders in the Order Browser. Use this guide to investigate unexpected statuses or gaps you're seeing in the [Order Browser](/aftersell/order_browser_overview). If your offer isn't showing up at all before you even get to the Order Browser, start with [Why isn't my post-purchase offer displaying?](/aftersell/why_isnt_my_1_click_offer_displaying) or [Widget Not Displaying on the Thank You Page](/aftersell/widget_not_displaying_on_the_thank_you_page). > [!NOTE] > > For a complete overview of all Order Browser statuses, see the [Order Browser Overview.](/aftersell/order_browser_overview) Use this guide when you're investigating a specific status or unexpected gap. ## Why are so many orders showing as Ineligible? Ineligible orders are controlled entirely by Shopify, not Aftersell. The most common causes are unsupported payment methods (digital wallets, BNPL, full gift card), orders under \$0.50, multi-currency, and duties or landed costs. To investigate: use the **Ineligibility reason filter** in the order table to group orders by the specific reason. Then click into an individual order to confirm the payment method or order details behind it. For a full breakdown of every ineligibility reason and what to do about each one, see the [Order Browser Overview](/aftersell/order_browser_overview). For supported and unsupported payment methods specifically, see [Payment Methods](/aftersell/payment_methods). > **Tip:** If a large share of your orders are ineligible due to payment method, setting up [Thank You Page upsells](/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell) is the best way to recover that traffic since TYP is not subject to Shopify's post-purchase restrictions. *** ## What does "Not configured" mean? Not configured means a funnel has an offer slot (e.g., Offer 2) that exists but has no offer set up in it yet. ![Order Browser rows showing Not configured status badges on empty offer slots](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/order-browser-troubleshooting-not-configured-badges.gif?s=34afadc1af1243559a03d01594b26d3d) To fix it: click the **PPU Funnel** link in the order table to go directly to that funnel, then add an offer to the empty slot. *** ## What does "Products excluded" mean and how do I fix it? Products excluded on a PPU offer slot means every product in your offer was excluded at the time of that order. Click into the order and open the PPU tab, the timeline will show a Products excluded warning with the specific reason listed below. * **Product already in order:** the offer product was already in the customer's cart. Turn off "Hide offer if already purchased" in your offer settings, or add different products to the offer. * **Product OOS:** the offer product was out of stock. Add more products so there's always something available to show. * **Product Inactive:** the offer product was unpublished or deactivated in Shopify. Republish the product or swap it for an active one. * **All products filtered:** every product was excluded by a combination of rules. Review your offer's filter settings and expand the eligible product pool. > **Tip:** To reduce this over time, add more products to each offer as fallbacks and periodically check that your offer products are in stock and published. *** ## A lot of orders are showing No interaction. What can I do? No interaction means the offer was shown but the customer left without clicking Accept or Decline. Some of this is normal behavior, but a consistently high rate can point to offer design issues. A few things that help: * **Fewer products per offer.** More than four items in a single offer can cause decision paralysis. Keep it focused and relevant to what the customer just bought. * **Enable Require Confirmation Click to Accept** in your offer settings. This makes the Accept/Decline action more intentional and typically drives cleaner conversion data. * **Check offer relevance.** If the offer doesn't feel connected to the original purchase, customers are more likely to ignore it. **Note on fulfillment holds:** When an order shows 'No interaction', a fulfillment hold is placed for up to 60 minutes. The hold lifts when the customer accepts, declines, or the session closes. See the [Fulfillment](/aftersell/fulfillment) doc for more detail. *** ## Orders are showing Customer skipped. Is something broken? Not necessarily. Customer skipped means the customer closed their browser or left before the post-purchase page had a chance to load. Common causes: * The customer navigated away immediately after checkout * The browser was closed before the post-purchase redirect completed * The checkout completed through an accelerated flow that bypassed the post-purchase step If you're seeing an unusually high volume of skips, check whether there have been any recent changes to your checkout configuration, or whether a specific sales channel is generating more skips than others. *** ## PPU Funnel is showing "No funnel triggered." How do I fix it? No funnel triggered means the order was eligible but no funnel matched its trigger conditions. Common causes: * No funnel has a trigger set to "All orders" as a catch-all fallback * Funnel trigger conditions (product tags, customer tags, order value) no longer match the incoming orders * Multiple funnels are competing and the expected one lost priority To fix this long-term: make sure you have at least one low-priority funnel with a trigger set to all orders so there's always a fallback. Click the **PPU Funnel** link in the order table (or the **Funnel triggered** event in the order timeline) to review and update your trigger logic directly. ![Order detail Post Purchase section showing a No funnel triggered warning](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/order-browser-troubleshooting-no-funnel-triggered.gif?s=83f349ab84015d5e7c1af1999c40eccd) *** ## The Improvement Opportunities panel is flagging gaps. What should I do? **Funnel & Offer opportunities** means one or more of your funnels has an unconfigured or missing offer slot. Use the Offer opportunities filter in the order table to find the specific orders, then click through to the funnel to set up the missing offer. **Product opportunities** means an offer is configured but its products are frequently being filtered out or are unavailable. Use the Product opportunities filter to surface those orders, review which products are causing the gap, and either replace them or loosen the filter settings. *** ## I'm seeing "Timer expired" on PPU offers Timer expired means the post-purchase session clock ran out while the offer was on screen. Shopify's post-purchase page has a time limit, and if the customer was on the page too long without interacting, the session expires. This is expected for a small percentage of orders. If you're seeing it frequently, check whether your offer has an unusually large number of products or steps that might be slowing down load or review time. *** ## My test order's PPU timeline is empty or incomplete If you placed a test order and the PPU tab shows no events or partial data, it's likely because the order ID wasn't available when the earliest events fired. This resolves automatically as the order completes - give it a few minutes and refresh. *** ## The PPU timeline is showing "Technical issue" Technical issue means the post-purchase experience failed to load for this order. This is different from Ineligible (where Shopify blocked it) — the session started but something prevented the page from rendering. > [!NOTE] > > "Not loaded" is a **Rokt Thanks** status only. It never appears on the PPU timeline, where the same underlying condition is reported as Technical issue. Common causes include browser issues on the customer's side, a network interruption mid-redirect, or a transient Shopify platform error. It is not typically caused by your Aftersell configuration. If you're seeing Not loaded on a small number of orders, no action is needed. If you're seeing it consistently across many orders, contact support and share the order numbers so the team can investigate whether there's a platform-level issue. *** ## I'm seeing "Shopify skipped" - what does that mean? Shopify skipped means Shopify bypassed the post-purchase page for this order at a platform level. When you click into the order and open the PPU tab, you'll see: > Shopify skipped can occur in a wider range of situations than just extreme platform load - including on development stores. If you're testing on a dev store and seeing this status, that is expected behavior. If you're seeing it at high volume on a live store with no clear cause, raise it with Shopify directly as it may indicate a Shopify platform issue. ![Order detail showing an ineligible post-purchase offer skipped by Shopify restrictions](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/order-browser-troubleshooting-ineligible-offer-skipped.gif?s=6a2debab19e8591f1a60c85aa3625779) Before reaching out to Shopify, use the **Ineligibility reason** filter in the Order Browser and select **Skipped by Shopify** to isolate only those orders. Many ineligible orders have a clear reason (payment method, duties, minimum order value, etc.) that can be resolved without involving Shopify at all. Only orders specifically tagged Shopify skipped are ones where Aftersell has no visibility and Shopify needs to be contacted. Once you've confirmed the orders are genuinely Shopify skipped, use the **See Shopify docs** button in the order detail view or contact Shopify support directly for further context. *** ## I'm seeing "Pending conversion" on TYP widget Pending conversion means the Thank You Page offer was displayed but a final decision hasn't been recorded yet. The most common cause is that the page is still open in the customer's browser. It typically resolves to Accepted or No interaction once the session closes. > [!NOTE] > > If you're seeing a persistent volume that never resolves, reach out to support. *** ## I'm seeing "No products found" on TYP widget No products found means the Thank You Page experience couldn't load any products to display. This is different from Products filtered out (where products exist but were excluded by a rule), Out of stock / unavailable (where variants were returned but all are unavailable), and Selected variant unavailable (where a configured variant no longer resolves from Shopify). No products found usually points to a configuration issue with the TYP offer itself, such as all products being unpublished or unavailable. To fix it: review your TYP offer product selection and make sure at least one product is published and in stock. *** ## I'm seeing "Technical issue" on TYP widget Technical issue means there was a problem loading the Thank You Page experience for that order. This appears as a badge in the TYP tab of the order detail view. Like Not loaded on PPU, this is usually caused by a transient rendering or platform error rather than a configuration issue. If it's affecting a small number of orders, no action is needed. If you're seeing it consistently, reach out to support with the affected order numbers. *** ## Order Browser shows "no products recommended" for a Smart Funnel order If an order that ran through [Smart Funnel](/aftersell/smart_funnel) is showing no products in the Order Browser, the AI had no eligible candidates to display at the time the offer fired. Smart Funnel does not have its own product catalog — it pulls candidates from the recommendation source you have configured under **Settings → Automatic Upsells**, then applies Shopify eligibility and your exclusion rules on top. Common causes: * **All candidate products were filtered out.** Any SKUs you have excluded under **Settings → Automatic Upsells** are removed from the pool. If your exclusion list is broad, the remaining pool may be empty for some orders. * **Candidate products were out of stock or unpublished.** Products that are OOS, inactive, or not published to the Online Store sales channel are dropped before the offer renders. If your highlighted product is unavailable, Smart Funnel tries to substitute — but if no fallbacks are eligible either, nothing displays. * **Unsupported checkout language.** Smart Funnel only runs when the *shopper's* checkout language is one of the [supported languages](/aftersell/smart_funnel_reference#supported-languages). It reads the locale Shopify sends with the order, not your store's primary language. Orders in any other language skip Smart Funnel and fall through to your regular funnels, and the order's post-purchase stage shows "Smart Funnel was skipped because the buyer's language is unsupported." * **0% max discount.** A max discount of 0 does not stop Smart Funnel from running — the field accepts 0–99 and the value only scales the offer's *percentage* discount. Set to 0, the product is still offered, just at full price, which usually converts poorly. Raise the max discount if Smart Funnel offers are being shown but rarely accepted. * **Order was ineligible at the Shopify level.** Confirm the order isn't tagged with a Shopify ineligibility reason (payment wallet, multi-currency, gift card, BNPL, etc.) — if it is, the post-purchase page never had a chance to load. See the ineligibility reasons in the [Order Browser Overview](/aftersell/order_browser_overview). To investigate: open the individual order in the Order Browser and check the PPU timeline for a **Products excluded** warning — it names the specific reason (e.g., Product OOS, Product Inactive, All products filtered). Then narrow the recommendation exclusion list, republish or restock the affected products, or add more fallbacks to broaden the pool. For details on how Smart Funnel selects and substitutes products, see [Smart Funnel](/aftersell/smart_funnel). *** ## I'm seeing "Out of stock / unavailable" on TYP widget Out of stock / unavailable means the Thank You Page product recommendation widget found variants for the offer product, but every variant came back unavailable for that buyer. This is usually genuine out-of-stock, but it can also be caused by region, market, or sales-channel availability restrictions. To fix it: check that the offer product is in stock and published to the sales channel your store uses. If the product is available in your Shopify admin but still showing this status, it may be restricted to a specific market or sales channel that doesn't match the buyer's context. *** ## I'm seeing "Selected variant unavailable" on TYP widget Selected variant unavailable means the specific variant configured in your offer no longer resolves from Shopify — it was likely deleted or replaced after the offer was set up. To fix it: open the offer in Aftersell, go to the product selection for that offer, re-select the product and variant you want to show, and save. This refreshes the offer's product configuration and clears the stale reference. *** ## I'm seeing "Products filtered out" on TYP widget Products filtered out on the TYP widget means the Thank You Page offer had products configured but all of them were excluded before the widget could display anything. This is distinct from No products found (where no products could be loaded at all). Products filtered out specifically means the products exist but your offer settings excluded them all. To fix it: review your TYP offer's filter settings - check for "hide if already purchased," out-of-stock exclusions, or tag-based filters that may be eliminating all available products. Add more fallback products to the offer so there's always something eligible to show. ![Thank You Page order detail showing Products filtered out and offer product issues](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/order-browser-troubleshooting-products-filtered-out.gif?s=e283c445cd9b8742831cb9915a2f29e6) *** Still stuck? Reach out via chat or email us at [support@aftersell.app](mailto:support@aftersell.app). # Order browser overview Source: https://docs.aftersell.com/aftersell/order_browser_overview Use the Aftersell Order Browser to read the summary bar and performance panels, filter the order table, and drill into an individual order's timeline. The Order Browser gives you a centralized, order-level view of Aftersell performance. Use it to see which orders were eligible for a post-purchase offer, whether an offer was shown, how customers interacted with each offer slot, and where there are gaps in your setup. For the full lookup catalog of statuses, reasons, filters, and milestones, see the [Order Browser reference](/aftersell/order_browser_reference). > [!NOTE] > > The Order Browser covers Post-Purchase (PPU), Thank You Page (TYP), and Rokt Thanks experiences. **Coming soon:** Checkout timeline data will be added in a future update. ## Accessing the Order Browser To access it, navigate to: **Apps → Aftersell → Order Browser** in your Shopify admin. ![Aftersell app navigation menu in Shopify admin with Order Browser selected](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/order-browser-admin-navigation-menu.gif?s=c991560b056f4350be1d73a92b092049) You can also jump directly to a specific order's detail page from Shopify. When viewing any order in your Shopify admin, open the **More actions** menu and select **Open order browser**. This takes you straight to that order's Aftersell detail page without needing to search for it. *** ## Summary bar At the top of the Order Browser, three metrics give you a quick pulse on performance for your selected date range. | Metric | What it means | | - | - | | **Total orders** | Every order received in the selected period - eligible and ineligible combined | | **Total offers shown** | How many of those orders actually had an offer displayed | | **Upsell Revenue** | Total revenue generated from accepted offers | ![Order Browser summary bar showing total eligible orders, offers shown, and upsell revenue](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/order-browser-summary-bar-metrics.gif?s=ef5ed271a69817f9b5cd42e01615015c) The Order Browser defaults to the Last 30 days. Use the date picker in the top-right corner to adjust the range. Data is available from **February 25, 2026 onward** - the picker will not let you select an earlier start date. Every summary metric, Total orders included, reflects only the range you have selected. Use the **Export button** (also top-right) to download the current view as a CSV. The export respects any filters you have active, so filter first if you only want a subset of orders. For the full list of CSV columns, see [CSV export columns](/aftersell/order_browser_reference#csv-export-columns). > [!NOTE] > > Order data updates every few minutes, so a very recent order may take a short while to appear. Reload the page if you are waiting on one. *** ## Performance panels Below the summary bar, three panels break down your performance in more detail. Together they help you quickly spot eligibility issues, configuration gaps, and opportunities to improve coverage. You can click any category within a panel to filter the order table to the affected orders. * **Eligible Post-Purchase Orders** - the total count of eligible orders, with a donut chart splitting them into Shown vs Not shown. A high "Not shown" proportion usually points to funnel configuration gaps, product filtering, or Shopify eligibility issues. * **Improvement Opportunities** - eligible orders where at least one offer didn't render because of a funnel, offer, or product configuration gap. Split into Funnel & Offer opportunities and Product opportunities, with a count per reason. These aren't errors; they're flags that something can be fixed to widen coverage. For each reason and its fix, see [Improvement opportunity reasons](/aftersell/order_browser_reference#improvement-opportunity-reasons). * **Ineligible Post-Purchase Orders** - orders that couldn't receive a post-purchase offer, broken down by reason. Shopify does not tell Aftersell exactly why an order was skipped, so the system identifies likely reasons from Shopify's documented limitations. For each reason and what to do, see [Ineligibility reasons](/aftersell/order_browser_reference#ineligibility-reasons). ![Order Browser panels with a shown-versus-not-shown donut chart and ineligibility reason breakdown](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/order-browser-shown-vs-not-shown-donut.gif?s=6a63cc3c5cc6ad2b4c64d150effbcf9b) Payment wallet and Unsupported sales channel tend to be the largest ineligibility contributors for most stores. For payment method restrictions, [Thank You Page upsells](/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell) are the best way to recover that traffic, since TYP is not subject to Shopify's post-purchase restrictions. For a full breakdown of supported and unsupported payment methods, see [Payment Methods](/aftersell/payment_methods). *** ## The order table Below the performance panels is a detailed, order-level table. Each row is a single order. This is where you can search, filter, and drill into exactly what happened for any order. ### Columns | Column | What it shows | | - | - | | **Order** | Shopify order number. Click to open the order detail view. | | **Date** | When the order was placed | | **Eligibility** | Whether the order was eligible or ineligible for a post-purchase offer | | **Sales channel** | e.g. Online Store | | **Country** | The shipping country for the order, displayed as an ISO country code (e.g. US, GB, AU) | | **Total** | Order value | | **PPU Funnel** | Which post-purchase upsell funnel was shown. Click to open the funnel editor. | | **PPU offer 1 / 2 / 3** | The interaction status for each post-purchase offer slot | | **TYP Funnel** | Which Thank You Page funnel was shown | | **TYP widget** | The widget status on the Thank You Page | | **Rokt Thanks** | The Rokt Thanks offer status for the order (only visible if your store has Rokt Thanks enabled) | > [!NOTE] > > PPU stands for Post-Purchase Upsell. TYP stands for Thank You Page. Each post-purchase funnel can have up to three offer slots (PPU offer 1, 2, and 3), each shown or resolved independently. The status badges in these columns each have a precise meaning. For what every PPU offer, TYP widget, Rokt Thanks, and funnel-column status means - and the statuses that are frequently confused - see [Offer status definitions](/aftersell/order_browser_reference#offer-status-definitions). ### Searching and filtering * **Search** - use the search bar at the top to find a specific order by name. * **Filters** - click **Add filter +** to filter the order table. Multiple filters can be combined; click **Clear all** to remove active filters. You can also click a category within a performance panel to filter to just those orders. For the full list of available filters, see [Order table filters](/aftersell/order_browser_reference#order-table-filters). *** ## Viewing an individual order Click any order number to open the order detail view, or use the **More actions → Open order browser** shortcut from the order page in your Shopify admin. This is a complete record of Aftersell activity for that order. Use **View in Shopify** in the top right to open the order directly in Shopify. > [!NOTE] > > The detailed timeline view is only available for orders placed after the Order Browser launch. Orders placed before that date will show limited timeline data. If an order has no Aftersell activity recorded, the detail page shows an informational banner instead of a timeline. This typically means one of the following: * The order was placed very recently and new orders can take a little while to appear. * The order predates your Aftersell install, so there was no activity to record. * The order came from a channel Aftersell does not track, such as POS or subscriptions. The detail view has up to four collapsible sections in the main column: **Order Summary**, **Post Purchase**, **Thank You Page**, and **Rokt Thanks** - the last shown only when the order has Rokt Thanks activity. Order Summary is expanded by default and the rest start collapsed; click a section header (the chevron on the left) to expand or collapse it. Each section displays a status badge at a glance, for example **1 Accepted** or **No interaction**, so you can understand the outcome without expanding it. The right sidebar holds the section navigation plus separate Customer, Payment method, Order tags, and Discounts codes cards. ![Individual order detail view with Post Purchase and Thank You Page event timelines](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/order-browser-order-detail-timelines.gif?s=0386d6c30c3a8a022af0d41b865ba7ac) * **Order Summary** lists every product in the order - including any accepted upsells - with quantities and pricing, then the order subtotal and total, and finally the name of any Thank You Page funnel whose offer was accepted. It is open by default. * **Post Purchase (PPU tab)** is a step-by-step milestone timeline of the post-purchase experience for this order. If products were excluded from an offer, a **Products excluded** warning appears beneath the milestone with the specific reason. * **Thank You Page (TYP tab)** shows the same milestone structure, filtered to Thank You Page events. For every milestone and every products-excluded reason, see [Individual order milestones](/aftersell/order_browser_reference#individual-order-milestones). *** Something not looking right? See the [Order Browser Troubleshooting](/aftersell/order-browser-troubleshooting) guide, or reach out via chat or email us at [support@aftersell.app](mailto:support@aftersell.app). # Pages vs standalone widgets Source: https://docs.aftersell.com/aftersell/pages-vs-standalone-widgets In Checkout , there are two ways to add widgets to your Checkout: **Pages** and **Standalone widgets**. This article explains how each works, when to use them, and how to get them placed in your Shopify Checkout. ### **Which should I use?** | | **Pages** | **Standalone widgets** | | :- | :- | :- | | **Best for** | Displaying multiple widgets together | Displaying a single widget | | **Triggers** | Shared across all widgets in the page | Set individually per variant | | **Block limit** | Max 5 blocks per widget type | Max 3 blocks per widget type | | **Block placement** | One app block per widget inside the page | One app block per widget | *** ## **Pages** A Page is a group of widgets that share a single group of triggers. When the trigger conditions are met, all widgets within the page are displayed together. Pages are ideal when you want to show multiple widgets to the same audience at the same time. ### Creating a Page When creating a page, you have two options: **Guided setup** or **Start from scratch**. **Guided setup** The Guided setup walks you through a recommended configuration based on a goal you choose. The setup follows four steps: **Goal, Triggers, Widgets, and Placement.** **Step 1: Goal** Choose the goal that best fits what you want to achieve. Each goal comes with a recommended set of widgets pre-configured for you. | **Goal** | **Recommended widgets** | | :- | :- | | Increase Average Order Value (AOV) and conversion rate | Upsells, Trust Badges, Testimonials | | Build customer trust and reduce abandonment | Trust Badges, Cart Controls, Text | | Promote add-ons and accessories | Checkbox Upsells, Images, Testimonials | | Encourage customers to reach free shipping threshold | Upsells (with Rewards), Text | | Custom configuration | None — start from scratch and build your own widget combination | **Important:** Your goal cannot be changed after saving. If you need a different goal, you will need to delete the page and create a new one. However, widgets can be added to or removed from a page at any time. Take a moment to choose the goal that best fits your strategy before proceeding. Once you’ve selected your goal, click **Save and next** to continue. ![Checkout guided setup Goal step listing recommended goals to choose from](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/standalone-widgets-guided-setup-goal-step.gif?s=78da82a883425b9129df6cdfcb2009bf) **Step 2: Triggers** Set the conditions under which your page will be shown, or choose to show the page to all customers with no conditions. For a full list of available triggers, see[ Checkout Triggers](/aftersell/checkout_triggers). **Step 3: Widgets** Review the widgets that have been recommended for your goal. You can add or remove widgets at this stage, and access advanced settings for each widget. For a full list of available widget types and their settings, see[ Checkout Widget Types](/aftersell/checkout_widget_types). ![Guided setup Widgets step reviewing recommended checkout widgets with a live preview](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/standalone-widgets-guided-setup-widgets-step.gif?s=b98a4e134d7764babe866dafc395ae98) **Step 4: Placement** Each widget in your page needs to be placed individually in your Shopify Checkout editor. Each widget is assigned a **BlockID** (e.g., page-upsell-001, page-upsell-002) which is used to identify it when adding the app block in Shopify. Location recommendations are provided to help you decide where to place each widget on the Checkout Page to place a widget: 1. Note the **BlockID** assigned to your widget in the Aftersell dashboard. 2. Open the **Shopify Checkout editor**. 3. Add the **Aftersell app block**. 4. From the dropdown, select the BlockID that matches your widget (e.g., page-upsell-003). **Note:** Each widget within a page **has its own BlockID and must be added as a separate app block in the Shopify Checkout editor.** A widget will not display until it has been placed. ![Shopify Checkout editor adding the Aftersell app block and selecting its BlockID placement](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/standalone-widgets-checkout-editor-add-app-block.gif?s=5a9b1a8e9d9874dd4f7873d1893d10ee) *** **Start from scratch** Start from scratch follows the same process as Guided setup, but skips the Goal step. You configure your triggers, add your widgets manually, and then place them in your Shopify Checkout editor using their BlockIDs. **Editing a Page** You can edit a page at any time after creation, including adding or removing widgets and updating triggers. The only thing that cannot be changed is the goal. If you need to change the goal, delete the page and create a new one. **Duplicating a Page** To create a copy of an existing page, click the **Duplicate** icon on the page row in the dashboard. The duplicated page is created in an inactive state with the name prefixed by "(Duplicated)" and includes all the same widgets and trigger configuration as the original. You can rename and activate it when ready. *** ## **Standalone widgets** Standalone widgets are individual widgets, each with their own triggers and priority and are best suited for when you only need to display a single widget all the time or to a targeted group of customers. ### Creating a Standalone widget Click **Create widget** from the dashboard. You will be prompted to select two things: * **Widget type**: The type of widget you want to create (Upsells, Rewards, Trust Badges, Testimonials, Cart Controls, Notes, Text, or Images). For a full breakdown of each widget type and its settings, see [Checkout Widget Types](/aftersell/checkout_widget_types). * **Block**: Which block to add the widget to. There are three blocks available, and the naming follows the widget type you selected. For example: * Upsells: Default upsell, Additional upsell 1, Additional upsell 2 * Trust Badges: Default trust badge, Additional trust badge 1, Additional trust badge 2 * And so on for each widget type Each block can hold multiple variants, The block counter in the top-right of the selector shows how many of the 3 available blocks you have created (e.g., 2/3 means 2 blocks created, 1 remaining). ### Block limit A maximum of **3 blocks** can be used for Standalone widgets. Once all 3 blocks are in use, the **Add new block** option will be unavailable and no additional widgets of the same type can be created until an existing block is removed. ### Placement Each Standalone widget must be placed in your Shopify Checkout editor as its own app block. When adding an app block in Shopify, you will see BlockID options for your standalone widgets listed as: * Default placement * Additional placement 1 * Additional placement 2 The placement value is a routing key, not a position: it tells the app block which stored widget configuration to load. Where a widget actually appears in checkout is decided by where you add its app block in the Shopify Checkout editor — with one exception. **Cart controls** is not freely positionable: it renders after each cart line item wherever the cart is shown. Every other widget type can be added as a block in any location the Checkout editor offers. To place a widget: 1. Open the **Shopify Checkout editor**. 2. Add the **Aftersell app block** in your desired location. 3. From the dropdown, select the BlockID that corresponds to your widget. *** ## **Analytics** Analytics are available for both Pages and Standalone widgets. You can view performance data for any individual page or widget by clicking the **bar chart icon** next to it on the dashboard, from within the editor itself or from the Analytics tab in the side navigation # Post-purchase offer settings reference Source: https://docs.aftersell.com/aftersell/post_purchase_offer_settings_reference How post-purchase offer discounts are displayed and rounded, the design-template catalog with each template's seeded discount, and starter-copy languages. This page holds the lookup detail behind post-purchase offer settings: discount display and rounding rules, the design-template catalog, and each template's seeded discount and copy behaviour. For how to configure an offer, see [Configuring post-purchase offer settings](/aftersell/configuring_post_purchase_offer_settings). ## Discount display and rounding Post-purchase offers have no separate display-format setting: the saving a shopper sees follows the **Discount type** you picked. A percentage discount shows as a percentage, a fixed-amount discount shows as a money amount, and an offer never shows both at once. When displaying a percentage discount, Aftersell rounds to the nearest whole number (standard round-half-up rounding): * A discount of **39.56%** displays as **40%** * A discount of **39.44%** displays as **39%** For the display rules on other surfaces, the Thank You Page has its own format setting and Checkout Upsells can hide the savings text entirely, see [Customizing discount displays](/aftersell/customizing_discount_displays). ## Design templates You can apply a pre-built design template to any individual V2 **single-product** offer (multi-product and box offers are not supported). A template supplies a complete layout, copy structure, and a seeded discount as a starting point. Six templates are available, filtered by funnel type: | Template | Category | Description | | - | - | - | | Bulk supply | One-time purchase | Long-form pitch for a multi-month supply, with supporting imagery. | | Video sales letter | One-time purchase | Video above the offer, with copy blocks either side. | | Image stack | One-time purchase | Single centered column carried by images, no body copy. | | Switch to subscription | Replacement upsell | Swaps the one-time purchase for a subscription, with an instant-refund framing. | | Complete the bundle | Replacement upsell | Swaps the purchased item for the full kit, with a reason-why list. | | Frequency upgrade | Subscription upgrade | Moves an existing subscriber to a longer interval at a lower unit price. | One-time purchase and new subscription templates are available in every funnel. Replacement upsell and subscription upgrade templates only appear inside a funnel of that type. On a subscription-upgrade funnel's first offer, the frequency upgrade template is marked as **Recommended**. ### Seeded discounts Each template seeds a starting discount onto the offer when applied. You can change it at any time in the offer's product widget settings. * Bulk supply: 56% off * Complete the bundle: 33% off * Video sales letter: 30% off * Frequency upgrade: 25% off * Image stack: 25% off * Switch to subscription: 15% off ### Starter copy and languages Placeholder copy in the starter layout is in English. The accept button uses a translated preset ("Add to order" or "Upgrade subscription") that renders correctly in all 32 supported languages (English plus 31 translations), so you do not need to translate it. All other text widgets contain `[Edit]` prompts you should replace with your own copy before publishing. # Post-purchase triggers Source: https://docs.aftersell.com/aftersell/post_purchase_triggers This article explains how post-purchase triggers function. Triggers can be utilized to display a funnel in particular situations, and they can be combined to effectively highlight funnels for specific scenarios. *** Show for all customers trigger [Product-Based Triggers](#product-based-triggers) * [Product/Collection Trigger](#productcollection) * [Product Quantity Trigger](#product-quantity) * [Product Tag Trigger](#product-tag) * [Product Type Trigger](#product-type) * [Metafields](#metafields) * [Product/Collection Exclusion Trigger](#productcollection-exclusion) * [Subscription Trigger](#subscription) * [Variant on Subscription Trigger](#variant-on-subscription) * [Variant Name Trigger](#variant-name) [Cart & Discount Triggers](#cart-%26-discount-triggers) * [Order Value Trigger](#order-value) * [Quantity Trigger](#quantity) * [Discount Code Trigger](#discount-code) * [Discount Percent (%) Trigger](#discount-percent-%28%25%29) [Customer Attribute Triggers](#customer-attribute-triggers) * [Customer Tag Trigger](#customer-tag) * [Customer Order History Trigger](#customer-order-history) * [Customer Order Count Trigger](#customer-order-count) * [Customer Language Trigger](#customer-language) * [Once per Customer Trigger](#once-per-customer) [Order Details & Time-Based Triggers](#order-details-%26-time-based-triggers) * [UTM Parameter Trigger](#utm-parameter) * [Currency Trigger](#currency) * [Device Type Trigger](#device-type) * [Shipping Country Trigger](#shipping-country) * [Random Sample Trigger](#random-sample) * [Date/Time Trigger](#datetime) * [Shipping Method Trigger](#shipping-method) *** # Show for All Customers Trigger A "**Catch-All" funnel** uses the "Show for All Customers" trigger. This funnel activates when an order does not meet the criteria for any other funnel. It serves as a **safety net**, ensuring no orders slip through without an upsell or thank-you page offer. To use it effectively, set this funnel to the **lowest priority** so it only appears if no other funnel triggers. Here are some examples: * You have three funnels: one for orders over \$100, one for specific products, and one with the Show for All Customers trigger. If a customer places an order that doesn't meet the first two funnels' criteria, the Show for All Customers funnel will activate as a fallback. * You want to ensure every customer sees at least one offer. Create a funnel with the Show for All Customers trigger and set it to the lowest priority. This funnel will catch any orders that don't match your other targeted funnels. *** # Product-Based Triggers *These triggers activate based on the products, collections, or variants in a customer's cart.* Additionally, ensure proper configuration to prevent hidden or wholesale-only products from appearing unexpectedly in recommendations. This includes reviewing Shopify's Product Recommendation logic and restricting such products at the add-to-cart stage, mitigating unintended visibility issues. ## **Product/Collection** The Product/Collection Trigger displays the funnel when a customer purchases a specific product or a product from a particular collection. Here are some examples: * You have a funnel with a Product/Collection Trigger set to products X, Y, and Z. If a customer buys products A, B, and Y, this funnel will activate, showing the upsells within that funnel to the customer. * You have a funnel with a Product/Collection Trigger set to products X, Y, and Z. If a customer buys products A, B, and C, this funnel will not activate since none of the specified products (X, Y, or Z) were purchased. ## **Product Quantity** The Product Quantity Trigger displays the offer based on how many of a specific product are included in the cart. Unlike the Product/Collection Trigger (which checks whether a product is present at any quantity), the Product Quantity Trigger lets you set a quantity threshold for a specific product. **To configure a Product Quantity trigger:** 1. Check the **Product quantity** box in your trigger settings. 2. In the condition row, choose an operator from the dropdown: **More than**, **Less than**, or **Exactly**. 3. Enter the quantity threshold in the number field. 4. Use the product selector to choose which product the condition applies to. 5. Click **Save**. **Example use cases:** * Set to "more than" 2 of Product A (the upsell only appears when a customer has 3 or more of Product A in their cart). * Set to "exactly" 1 of Product A (the upsell fires only for single-unit orders of that product). * Set to "less than" 3 of Product A (the upsell appears when there are 1 or 2 of that product in the order). **Using multiple condition rows:** You can add multiple rows to target different products or quantity ranges within the same trigger. Each row specifies its own operator, threshold, and product. Use the **Condition Logic** toggle in the top right corner to connect rows with AND or OR logic. For example: * Row 1: "more than" 1 of Product A **AND** Row 2: "exactly" 1 of Product B (the upsell only appears when both conditions are met simultaneously). * Row 1: "exactly" 2 of Product A **OR** Row 2: "more than" 3 of Product B (the upsell appears when either condition is met). ## **Product Tag** The Product Tag Trigger displays the offer when products with certain Shopify tags are included in the order. Here are some examples: * You want to exclude discontinued products from receiving upsell offers. Set the Product Tag Trigger to exclude products tagged "**discontinued**." If a customer purchases a product with this tag, the funnel will not activate. * You want to show a special offer only for products tagged "**summer-collection**." Set the Product Tag Trigger to include products with this tag. If a customer purchases any product tagged "**summer-collection**," the funnel will activate. ## **Product Type** The Product Type Trigger displays the offer when the products belong to a defined Shopify product type. * For example, if you set the Product Type Trigger to "Shoes," then any time a customer purchases a product that belongs to the *Shoes* product type, the funnel will display. For instance, if the customer adds a pair of running sneakers (type: Shoes) to their cart, the funnel will activate. However, if the customer adds a t-shirt (type: Apparel), the funnel will not display because the product type does not match the trigger. ## Metafields The Metafields trigger displays funnels based on custom metafield data associated with products or variants. You can choose between product metafields or variant metafields, but only one type can be matched at a time. Each sub-trigger (Product or Variant) has a **Match type** dropdown with three options: * **Value matches** — the existing behaviour. Enter a metafield name and value (`name: value`), then choose **Includes** or **Excludes**. Both the name and value are case-sensitive and must match exactly as they appear on the product page. * **Has any value** — fires when the named metafield exists and has a non-empty value. Enter only the metafield name; the value input is hidden. * **Is empty** — fires when the named metafield is absent or has an empty value. Enter only the metafield name; the value input is hidden. **Value matches — how Include and Exclude work:** Include means there's an overlap between the metafields in the order and those in the trigger list. * For example, if the order metafields are `["color: red", "size: m"]` and the trigger list is `["color: red", "ship: warehouse"]`, the condition is satisfied because `color: red` matches. Exclude means there's no overlap between the metafields in the order and the trigger list. * For example, if the order metafields are `["color: red", "size: M"]` and the trigger list is `["color: blue", "size: L"]`, the condition is satisfied because there are no matching name:value pairs. **Has any value / Is empty — how matching works:** For these modes, enter the metafield name using any of the following formats (all are equivalent): * `namespace.key` — for example, `custom.warehouse_location` * bare key — for example, `warehouse_location` * definition name — for example, `Warehouse Location` The trigger evaluates across all products in the order. **Has any value** fires when at least one purchased product has a non-empty value for the named metafield. **Is empty** fires when none of the purchased products have a non-empty value for it (the metafield is absent or empty on every product). > [!NOTE] > > Switching the Match type clears any entries already added to that sub-trigger, since `name: value` tags and bare-key tags mean different things per mode. This trigger is especially useful if you are using metafields to store detailed product information (like materials, sizing, or special attributes) and want to target funnels based on that data. ## **Product/Collection Exclusion** The Product/Collection Exclusion Trigger prevents the funnel from displaying when excluded products or collections are present in the cart. * For example, if a customer has purchased from a heavily discounted product or collection, you may prefer not to show further offers to that customer. This trigger allows you to skip all offers if those specific products or collections are in the customer's cart. * Additionally, you can combine this trigger with the Product/Collection Trigger to ensure that only selected products or collections activate the funnel, while any others are excluded. ## **Subscription** The Subscription Trigger displays the offer based on whether a subscription product is included in the order. Here are some examples: * You have a funnel with a Subscription Trigger set to "**do not include a subscription**." If a customer purchases only one-time products, the funnel will activate, allowing you to offer them a subscription upsell. * You have a funnel with a Subscription Trigger set to "**include a subscription**." If a customer purchases a subscription product, the funnel will activate, allowing you to show them complementary one-time products. **Note:** Shopify only supports one subscription product per order. This means you cannot upsell a subscription if the original order already includes a subscription. ## **Variant on subscription** The Variant on Subscription trigger displays the funnel when the order includes any of the selected products purchased as a subscription. Unlike the Subscription trigger (which checks whether any subscription is present), this trigger matches on a specific product being purchased on a subscription line item — so a one-time purchase of the same product does not activate the funnel. This trigger is used automatically by the subscription upgrade wizard. When a funnel has a subscription upgrade offer configured, the trigger is managed by the wizard and kept in sync with the upgrade's source product. The trigger is read-only while the upgrade offer is present; it unlocks if the upgrade offer is removed. On funnels without a subscription upgrade offer, you can configure the trigger manually. The product picker is filtered to subscription products only. Here are some examples: * You have a subscription upgrade funnel targeting customers who subscribe to Product A. The Variant on Subscription trigger is set to Product A. If a customer purchases Product A as a subscription, the funnel activates. If they purchase Product A as a one-time item, the funnel does not activate. * You have multiple subscription upgrade offers in the same funnel. The trigger is set to the union of all upgrade source products, so the funnel activates when any of those products is purchased as a subscription. ## **Variant Name** The Variant Name Trigger allows you to display specific funnels based on the product variant selected by the customer at checkout. By using this trigger, you can include or exclude customers from certain offers depending on the exact variant they choose, such as size, color, or style. Here are some examples: * You have a funnel with a Variant Name Trigger set to include "**Large**." If a customer purchases a t-shirt in size Large, the funnel will activate. If they purchase size Small or Medium, the funnel will not activate. * You have a funnel with a Variant Name Trigger set to include "**Red**" and "**Blue**." If a customer purchases a product in either Red or Blue color variant, the funnel will activate. If they purchase Green, the funnel will not activate. *** # Cart & Discount Triggers *These triggers activate based on the cart value, contents, or discounts applied.* ## **Order Value** The Order Value Trigger is used to display an offer if an order meets a specified dollar value requirement, which can be set as greater than or less than a chosen amount. When an order meets your set criteria, the offer will be shown to the customer. Here are some **examples**: 1. Your funnel has an Order Value Trigger set to activate when orders total less than \$50.00. If a customer places an order totalling \$30.00 with various products, the offer will display, as the order meets the "less than \$50.00" requirement. 2. Your funnel has an Order Value Trigger set to activate when orders total less than \$50.00. If a customer places an order totalling \$60.00 with various products, the offer will not display since the order value does not meet the "less than \$50.00" requirement. In both examples, the specific products in the order are irrelevant; the trigger is based solely on order value. ## **Quantity** The Quantity Trigger shows an upsell offer based on the total item count in a customer's order. It looks at the overall number of items across all products in the cart, regardless of which specific products they are. **To configure a Quantity trigger:** 1. In the **Cart & Discount Triggers** section, check the **Quantity** box. 2. In the condition row, choose an operator from the dropdown: **More than**, **Less than**, or **Exactly equals**. 3. Enter the item count in the number field. 4. Click **Save**. **Example use cases:** * Set to "**less than 3**" - the upsell appears only when there are 1 or 2 total items in the cart. * Set to "**more than 1**" - the funnel triggers for orders with 2 or more total items. * Set to "**exactly 5**" - the funnel triggers only when there are exactly 5 total items in the cart. * Set to "**exactly 0**" or "**less than 1**" - useful for targeting new customers who have no previous items. For example, combine this with the Customer Order Count trigger to show a welcome offer to first-time buyers with a single-item cart. 💡 **Tip:** If you need to trigger based on the quantity of a specific product rather than total cart item count, use the Product Quantity trigger instead (found under Product-Based Triggers). ## **Discount Code** The Discount Code Trigger lets you include or exclude customers from seeing a funnel based on a discount code they use. A third option, **Excludes any manual discount code**, lets you exclude all orders where a manually-entered discount code was applied — without needing to list individual codes. Here are some examples: * You're running two promotions: 25% off for new customers and 10% off for email subscribers. Use the Discount Code trigger set to **Includes** with the email subscription discount code to display the funnel only to email subscribers. * You want to prevent upsell offers from showing to any customer who used a discount code at checkout. Set the trigger to **Excludes any manual discount code**. The funnel will only fire for orders with no manually-entered discount code. Automatic and script discounts (such as a site-wide automatic discount) are not counted, so they will not suppress the funnel. **NOTE:** ***Be sure to press "enter" after entering the discount code to save it in the funnel.*** ## **Discount Percent (%)** The Discount Percent (%) Trigger displays a funnel based on the line-item discount percentage applied to the order (this excludes shipping discounts). Choose **More than**, **Less than**, or **Exactly**, then enter the percentage threshold. Here are some examples: * You have a funnel with a Discount Percent Trigger set to "**more than 20%**." If a customer receives a 25% discount, the funnel will activate. If they receive a 15% discount or no discount, the funnel will not activate. * You have a funnel with a Discount Percent Trigger set to "**less than 10%**." If a customer receives a 5% discount, the funnel will activate. If they receive a 15% discount, the funnel will not activate. * You have a funnel with a Discount Percent Trigger set to "**exactly 10%**." The funnel only activates for orders with precisely a 10% discount applied. *** # Customer Attribute Triggers *These triggers use customer data to control funnel visibility.* ## **Customer Tag** The Customer Tag Trigger allows you to include or exclude customers from seeing a funnel based on their associated tags. Here are some examples: * You have a funnel with a Customer Tag Trigger set to include "**VIP**." If a customer has the VIP tag, the funnel will activate. If they don't have this tag, the funnel will not activate. * You have a funnel with a Customer Tag Trigger set to exclude "**Wholesale**." If a customer has the Wholesale tag, the funnel will not activate, preventing retail upsells from showing to wholesale customers. ## **Customer Order History** The **Customer Order History Trigger** lets you create offers based on a customer's past purchases. **Important:** You must select specific products or collections when using this trigger. The default match mode is **Include**, and if you leave products/collections unselected while using **Include**, the trigger can never be satisfied — this permanently blocks the funnel from firing, not just leaves it inactive with no effect. Always select at least one product or collection. If your goal is simply to check whether a customer has ordered before, use the [**Customer Order Count Trigger**](#customer-order-count) instead: * More than 0 orders = Returning customer * 0 orders = New customer **NOTE:** *This trigger reviews only past orders, not the current order the customer is about to place.* **NOTE:** *By default, this trigger only looks back over the past 60 days of order history. Checking further back requires additional permissions — reach out to support if you need a longer lookback window.* ## **Customer Order Count** The Customer Order Count Trigger enables you to display a funnel specifically for new or returning customers. Here are some examples: * You have a funnel with a Customer Order Count Trigger set to "**equal to 0**." If a customer has never placed an order before (first-time customer), the funnel will activate. If they have placed any previous orders, the funnel will not activate. * You have a funnel with a Customer Order Count Trigger set to "**greater than 3**." If a customer has placed 4 or more previous orders, the funnel will activate. If they have placed 3 or fewer orders, the funnel will not activate. **NOTE:** *This trigger is based on past purchases, not the current order.* ## **Customer Language** The Customer Language trigger enables you to display specific offers based on the language a customer checked out in, creating a more personalized and engaging experience. Here are some examples: * You have a funnel with a Customer Language trigger set to "English." If a customer checks out in English, the funnel will activate. If they check out in any other language, the funnel will not activate. * You have a funnel with a Customer Language trigger set to "French." If a customer checks out in French, the funnel will activate. If they check out in any other language, the funnel will not activate. ![Configuring the Customer language trigger with a Select language dropdown in the funnel settings](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/ppu-triggers-configuring-customer-language-trigger.gif?s=4728f5e8d9456362ba8468a48b2bcdf4) **Note:** While most text within a funnel can be translated manually, some global elements such as button labels and certain words are controlled through the **Translations** section in Aftersells **Settings** and currently only support a single language across all funnels. This is an area of active development and will be improved in a future update. ![Aftersell Translations settings page with 1-Click upsell and Thank you page text fields](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/trigger-config-global-upsell-text-fields.gif?s=843fa141faa2a42dbaaa7b62b5a7cc03) ## **Once per Customer** The Once per Customer trigger ensures a funnel only shows once per customer across all orders. Here are some examples: * You have a funnel with the Once per Customer trigger enabled. If a customer sees this funnel after their first purchase, they will not see it again on any future purchases, even if all other trigger conditions are met. * You want to show a special "welcome offer" only to new customers on their first purchase. Enable the Once per Customer trigger to ensure the offer appears only once per customer, preventing it from showing on repeat purchases. *** # Order Details & Time-Based Triggers *These triggers depend on checkout details, marketing data, or timing.* ## **UTM Parameter** A UTM Trigger is a marketing tool that activates specific actions based on UTM parameters in a URL. UTM parameters (Urchin Tracking Module) help track the effectiveness of online campaigns by providing details about the source, medium, and campaign name. Here are some examples: * You have a funnel with a UTM Parameter Trigger set to "**utm\_source = facebook**." If a customer clicks a link with `?utm_source=facebook` in the URL, the funnel will activate. If they arrive from a different source or no UTM parameter, the funnel will not activate. * You have a funnel with a UTM Parameter Trigger set to "**utm\_campaign = summer\_sale**." If a customer clicks a link with `?utm_campaign=summer_sale` in the URL, the funnel will activate, allowing you to show campaign-specific offers. When users click a link with UTM parameters, the trigger can identify these tags and perform actions such as: * Displaying tailored offers or content based on specific campaigns. * Segmenting visitors by their entry points to analyze marketing channel effectiveness. * Creating personalized experiences with customized messages or redirects. If you're interested in setting up Direct-to-Checkout UTM Links, please follow this [link](/aftersell/how_to_use_direct_to_checkout_utm_links). ⚠️ **Known limitation:** UTM triggers do not fire when customers use express checkout methods (Shop Pay, Apple Pay, Google Pay, PayPal, etc.) because express checkout bypasses the standard cart flow where UTM parameters are captured. If you are using UTM triggers for campaign tracking, consider using other trigger types (product, collection, order value) as alternatives, creating separate funnels for general traffic that do not rely on UTM parameters, or tracking campaign performance through other analytics tools. ## **Currency** The Currency Trigger allows you to control whether customers see a funnel based on whether they check out in your store's default currency or in an international (non-default) currency. It does not let you target individual named currencies — instead, you choose between two options: **Default store currency only** or **International currencies only**. Here are some examples: * You have a funnel with a Currency Trigger set to "**Default store currency only**." If a customer checks out in your store's default currency, the funnel will activate. If they check out in any international (non-default) currency, the funnel will not activate. * You have a funnel with a Currency Trigger set to "**International currencies only**." If a customer checks out in a currency other than your store's default, the funnel will activate. If they check out in your store's default currency, the funnel will not activate. # General Rules for Currency Display * Thank You Page offers and upsells adjust to the customer's currency, offering a seamless experience for shoppers in various markets. This means all prices are displayed in the same currency as the market chosen by the customer or their browsing session. **Since Post-purchase upsells aren't shown to customers checking out in a currency other than your store's default**, everyone still sees the Thank You Page. By using the Currency Trigger, you can tailor specific Thank You Page offers for different currencies, enabling you to provide targeted product recommendations and offers that align with the customer's checkout currency. Alternatively, Thank You page offers can be used to create universal visibility for all customers, irrespective of country or currency, bypassing Shopify's post-purchase multi-currency restrictions. This approach offers a wider scope for upsell promotions. # Shopify Markets Integration * If your store uses Shopify Markets to display different currencies based on customer location, Aftersell integrates seamlessly to ensure products are displayed in the correct local currency. * Shopify Markets automates the process of showing localized currencies and pricing for upsell offers. * For details on setting up Shopify Markets, refer to Shopify's official documentation: [Shopify Markets Documentation](#). # Important Considerations * Always ensure that your store's default currency settings align with your operational requirements and customer expectations. * For post-purchase upsell offers, check currency configurations to ensure compatibility with your target markets. # Thank You Page Offers * **Localized Pricing:** All Thank You Page upsells automatically adjust to the customer's currency. This ensures that a single funnel can offer localized pricing to all customers. * **Currency Conversion:** Thank You Page upsells display in the checkout currency, even if the order currency differs from the store's default currency. # Post-purchase upsell offers * **Multi-Currency Limitation:** Post-purchase upsell offers do not support multi-currency. For this reason, customers will not see offers unless your store currency matches the expected currency. ## **Device Type** The Device Type Trigger allows you to scope a funnel to customers on a specific device type — Desktop only or Mobile only. When enabled, the funnel only displays if the customer's device matches your selection. Here are some examples: * You have a funnel with a Device Type Trigger set to **Desktop only**. If a customer completes checkout on a desktop browser, the funnel will activate. If they check out on a mobile device, the funnel will not activate. * You have a funnel with a Device Type Trigger set to **Mobile only**. If a customer checks out on a mobile device, the funnel will activate. If they check out on a desktop, the funnel will not activate. **Note:** If a customer's device type cannot be detected (for example, when using a legacy storefront script), the trigger fails closed — the funnel will not display. This is the same behavior as other triggers when required data is unavailable. ## **Shipping Country** The Shipping Country Trigger allows you to include or exclude customers from viewing a funnel based on their shipping destination country. For example, you can configure a funnel to exclude products restricted to the US when the shipping address is from outside the United States. This ensures geographical restrictions are respected, aligning the funnel offers with region-specific product availability. As a reminder, Post-purchase upsells won't display to customers checking out in a currency different from your store's default currency; however, everyone will still see the Thank You Page. By using the Shipping Country Trigger, you can create targeted Thank You Page offers for specific countries, allowing you to provide tailored product recommendations and offers based on the customer's shipping location. This also means adjusting your shipping costs for different countries. ## **Random Sample** The Random Sample Trigger enables you to control funnel visibility for a random subset of customers. This trigger is ideal for testing new funnels with a small percentage of your customer base or surprising a select group of customers with special offers. Here are some examples: * You have a funnel with a Random Sample Trigger set to "**25%**." The funnel will randomly activate for approximately 25% of customers who meet all other trigger conditions. The remaining 75% will not see the funnel. * You want to A/B test two different upsell offers. Create two funnels, each with a Random Sample Trigger set to "**50%**." Each funnel will show to approximately half of your customers, allowing you to compare performance. By applying the Random Sample Trigger, you can effectively test new strategies, measure impact, or add an element of exclusivity to your promotions, creating unique experiences for "**lucky**" customers who meet the criteria. ## **Date/Time** The Date/Time Trigger allows you to schedule the visibility of a funnel based on specific dates and times. With this trigger, you can activate or deactivate offers according to a set schedule, making it ideal for time-sensitive promotions, seasonal campaigns, or exclusive, limited-time deals. Here are some examples: * You have a funnel with a Date/Time Trigger set to activate "**between December 1 and December 25**." The funnel will only activate for orders placed during this date range, perfect for holiday promotions. * You have a funnel with a Date/Time Trigger set to activate "**after January 1, 2026**." The funnel will only activate for orders placed on or after this date, useful for launching new year promotions or product releases. The Date/Time trigger includes a timezone selector dropdown, allowing you to choose the timezone your schedule should run in (for example, "GMT-07:00 - (MST) America/Phoenix"). Dates are selected using a date picker calendar, and you can set a start date, end date, or both to define the active window. **Note:** Make sure you select the correct timezone for your store's primary audience. If your store serves customers across multiple time zones, choose the timezone most relevant to your promotion schedule. ## **Shipping Method** The Shipping Method Trigger enables you to control funnel visibility based on the customer's chosen shipping option at checkout. This trigger allows you to include or exclude customers from specific offers depending on their selected shipping method. Here are some examples: * You sell a perishable product that requires overnight shipping. Set the Shipping Method Trigger to include "Overnight" or "Express" so the upsell only appears to customers who chose fast shipping and will receive their order quickly. * You want to offer an expedited shipping upgrade. Set the trigger to include "Standard Shipping" so only customers who chose the slower option see the upsell to upgrade. * You offer local pickup. Set the trigger to exclude "Local Pickup" so that shipping-dependent offers (like shipping protection) do not appear to customers collecting in-store. **Note:** Matching is case-insensitive and checks whether your Shopify shipping rate name *contains* the text you enter in the trigger — it doesn't need to be an exact, full match. For example, a trigger value of "express" will match shipping rate names like "Express Shipping" or "2-Day Express." *** # Conditional Logic Post-purchase triggers work together using simple logic: all triggers must be met (**AND logic**), and within each trigger, only one condition needs to match (**OR logic**). For more details on how our trigger logic is applied, check out this article: [Understanding Conditional Logic](/aftersell/understanding_conditional_logic_for_post_purchase_triggers) > [!NOTE] > > **Combining product conditions.** A funnel has a single Product/Collection block, and everything inside it uses OR logic — the trigger fires when **any one** of the listed products or collections is in the order. There is no AND setting between separate products or collections in that block. > > If you need the order to contain product A **and** product B, use the **Product Quantity** trigger instead. It has a **Condition Logic** setting you can set to AND, with one row per product. It is the only product-based trigger that supports AND across rows. # Post-purchase widgets Source: https://docs.aftersell.com/aftersell/post_purchase_widgets Reference for Aftersell post-purchase widgets: funnel-wide progress bar and timer, plus offer-level product, text, discount, and testimonials widgets. *** # Funnel-wide widgets ## Progress Bar The **Progress Bar** shows customers where they are in the post-purchase flow. When enabled, the progress bar appears on all upsell offers within the funnel. Any changes made to the progress bar apply across the entire funnel. ![Post-purchase progress bar with Cart, Order placed, Special offer, and Done steps](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/ppu-widgets-post-purchase-progress-bar.gif?s=f9ee14053add6280b48524aca197a791) **Configuration options** * Toggle the progress bar on or off for the funnel * Choose a display style: * **Minimal** * **Minimal with labels** * **Maximal** * Select a **Black** or **White** appearance * Adjust top and bottom padding to control spacing *** # Offer-level widgets Offer-level widgets control the content and behaviour of an individual upsell offer. These widgets define what the customer sees on a specific upsell step, including messaging, urgency, product information, pricing details, and actions. Each offer in a funnel can be customized independently using offer-level widgets, allowing you to tailor the experience at every step. These widgets include:\ [Text](#text)\ [Timer](#timer)\ [Upsell Product](#upsell-product)\ [Product Selection](#product-selection)\ [Discount](#discount)\ [Badge](#badge)\ [Shipping](#shipping)\ [Image](#image)\ [Buttons](#buttons)\ [Price Breakdown](#price-breakdown)\ [Product Details](#product-details)\ [Variant & plan options](#variant--plan-options)\ [Layout](#layout)\ [Video](#video)\ [Testimonials](#testimonials) *** ## Text The **Text** widget is used for headings and supporting copy throughout an offer. It supports a heading and optional body text, with controls for font size, color, weight, alignment, strikethrough, and spacing. Use the dynamic variable `{first-name}` to personalize messaging for each customer. *** ## Timer The **Timer** widget adds urgency by displaying a live countdown. While the timer is running, the offer remains visible. When the timer reaches zero, the upsell offer automatically disappears and the customer is moved forward in the funnel. *** ## Upsell Product The **Upsell Product** widget is the heart of the offer. It defines which product is being shown and acts as the container for all product-related widgets below. Everything that follows is configured within this widget. *** ## Product Selection The Product Selection widget controls which product is shown in an upsell offer. You can select a fixed product or dynamically determine the upsell product based on the customer's original order, allowing for both static and adaptive upsell experiences. #### Product type options * **Specific product**\ Always displays the same product in the upsell. * **Automatic upsell**\ Dynamically selects a product using predefined upsell logic. * **Most expensive in cart**\ Uses the highest-priced item from the customer's original order. * **Least expensive in cart**\ Uses the lowest-priced item from the customer's original order. #### Changing the product The selected product appears at the top of the widget. To change it: 1. Click **Change product** 2. Select a product type 3. Choose or confirm the product When browsing the **Products** tab in the picker, you can check **Active products only** to hide Draft and Archived products from the list. This filter is off by default and only applies to the Products tab — Collections are not affected. ![Aftersell offer editor showing the Edit upsell product panel beside a live offer preview](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/ppu-widgets-offer-editor-edit-product.gif?s=a281ef6837574437297ca063e861d119) #### Identifying products with identical names If your store has multiple products or variants with the same title, enable the **Show IDs** toggle in the product picker to display the numeric Shopify product ID and variant ID beneath each name. This makes it easy to confirm you are selecting the correct product. The **Show IDs** toggle is available on the **Product** tab of the picker and is off by default. It is not available on the Collection tab. *** ## Discount The **Discount** widget applies and displays promotional pricing. You can choose between a percentage (%) discount or a fixed dollar (\$) discount. Custom discount text can be added if desired, and the discount can either reference the product's compare-at price or ignore it. ### Bulk discount shortcut for multi-product offers For multi-product and collection offers, a **Discount** section appears directly in the Upsell Products widget settings — below the product selection area. This gives you a faster way to set or update discounts across multiple products without opening each product's individual settings. The section is collapsed by default. When you expand it: * A list of all products in the offer is shown, each with a checkbox and a badge displaying its current discount (for example, `17% off` or `$18.00 off`). * Select the products you want to update using the checkboxes. All products are selected by default. * A pill below the list shows how many products your changes will apply to. * Use the discount type and value fields to set the discount. Changes apply only to the selected products — unselected products keep their existing discounts. #### Mixed discounts across products When selected products have different discount settings, the fields show placeholder text to indicate the variation: * If products have different **discount types** (for example, some are % off and others are \$ off), the type selector shows **Mixed**. * If products have different **discount values** or types, the value field shows **Multiple values** with a note that entering a new value will override each selected product's current discount. #### Info icon on product rows An info icon (i) appears beside a product's discount badge when that product has additional discount settings configured — such as a custom discount title, a compare-at price, or a subscription discount. Hovering over the icon shows a summary of those extras. *** ## Badge The **Badge** widget highlights key product attributes such as popularity or urgency. You can select a predefined badge label, choose from multiple visual styles, include an icon, and control where the badge appears in the offer or directly on the product image. ![Post-purchase offer showing a Trending badge above the product title](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/ppu-widgets-post-purchase-offer-trending.png?fit=max\&auto=format\&n=SnVX3h-PpMMxQMDU\&q=85\&s=c7c4cf7649723721d24bffff865b6f2b) Custom badge images can be uploaded from **Advanced badge settings** (SVG or PNG, up to 10MB). > [!NOTE] > > Badge editing is available on V2 offers only. V1 offers preserve any badges that were previously configured, but badge settings cannot be edited on V1 offers. ### Badges section: offer badge and product image badge The Badge widget's settings are a unified **Badges** section with two independent controls, each drawing from your saved badge library: * **Offer badge** — placed in the offer content, not on the product image. Select any saved badge and configure: * **Position in offer** — Above product title (the default for new badges), Adjacent to product price, or Below product price. * **Spacing from price** — the gap when the badge is adjacent to the price (0–3); shown only for the Adjacent position. * **Badge size** — how large the badge appears in the offer. * **Product image badge** — overlaid on the product image. Select a saved badge and configure: * **Size on image** — Small (1×), **Medium (1.5×, the default)**, or Large (2×). * **Position on image** — the nine positions from Top left through Bottom right. * **Show badge on all product images** — off by default, so only the primary image is badged; enable it to badge every image in the product carousel. Applies to single- and multi-product offers. Both badges are optional and are set independently — removing one leaves the other unaffected. On a multi-product spotlight layout, the spotlight (hero) product does not support a product image badge. For box offers, both the offer badge and the product image badge are available on each box candidate. ### Creating and managing saved badges Saved badges are reusable across offers and are created and edited from the badge builder, reached from the Badges section. Open the section, click **Create badge** (or pick an existing badge), give it an internal name, choose a type, and save. * **Text badge** — configure the text, a **shape** (Pill, Rectangle, Circle, Ribbon, or Starburst), an optional icon, a background color, and a text color. Preset text suggestions (for example, Bestseller, Free shipping, New, Lowest price, or Limited time offer) are available for quick setup. **Font size** sets the text size in pixels, measured against a 500 px reference image and scaled proportionally when the badge is rendered. * **Image badge** — upload a raster image (PNG, JPEG, WebP, GIF, or AVIF). **Badge size** sets the image height in pixels; the width adjusts to preserve the aspect ratio. ## A live preview updates as you configure the badge. Editing a saved badge updates every offer that uses it once the funnel is saved, and deleting one removes it from every offer that uses it. ## Shipping The **Shipping** widget controls how shipping costs are communicated. You can either offer free shipping or charge for shipping by setting a specific shipping price. *** ## Image The **Image** widget controls how product images are displayed. It includes options to adjust the main image size, add a border, enable an image carousel, and upload a custom product image from **Advanced image settings**. *** ## Language The **Language** section controls which language is used for all system text in the offer, including button text, subscription labels, pricing labels, and other non-editable strings. Select a language from the **Language** dropdown to automatically translate system text for that offer. Aftersell supports 32 languages. This setting does not affect badges or custom text fields — only system-generated text is translated. *** ## Buttons The **Buttons widget** controls how customers accept or decline an upsell during checkout. You can customize how the buttons behave and appear, including: * Selecting the **default accept button text** * Requiring a **confirmation click** before an upsell is accepted * Changing the **decline button style** (for example, button or link) * Adjusting **button alignment** and width * Adding optional **supporting text** above or below the buttons, with styling controls and dynamic variable support ### Button text You can configure the accept button text for your post-purchase offers using the **Default accept button text** dropdown. The available options depend on the offer type: **Standard offers:** * **Pay Now** - Displays "Pay Now • \[product total price]" (or "Add Now • Free" for free products) * **Accept Offer** - Displays "Accept Offer" regardless of price **Subscription Upgrade offers:** * **Upgrade Subscription** - Displays "Upgrade Subscription" (default for new Subscription Upgrade offers) * **Accept Offer** - Displays "Accept Offer" regardless of price * **Pay Now** - Displays "Pay Now • \[product total price]" (or "Add Now • Free" for free products) To translate button text, use the **Language** section above the Buttons section. ### Button layout options You can also control the **position of the accept and decline buttons** relative to each other. The following layouts are supported: * **Accept above decline** - Displays the accept button above the decline option * **Decline above accept** - Displays the decline option above the accept button * **Accept beside decline** - Displays the accept and decline buttons side by side These layout options give you more flexibility to match your desired checkout experience and messaging hierarchy. *** ## Price Breakdown The **Price Breakdown** widget adds clarity around pricing. It can display shipping and tax, include extra details such as subtotal and discounts, and be aligned or positioned near the payment buttons for maximum clarity. ### Hide shipping adjustment line When your offer is configured as a replacement upsell (using the "Replace item in original order with upsell" setting), the price breakdown includes a **Shipping adjustment** line that reflects any shipping cost difference between the original and replacement product. You can suppress this line using the **Hide shipping adjustment line** checkbox, which appears in the Price Breakdown section only when a replacement upsell is configured. This setting is off by default, so existing offers are unaffected. * When checked, the shipping adjustment line is hidden from the customer's price breakdown. * When unchecked, the shipping adjustment line is shown as normal. This setting only affects the shipping adjustment line on replacement upsell offers. The standard shipping line on non-replacement offers is not affected. *** ## Product Details The **Product Details** widget controls how key product information is presented. It supports product review ratings (automatically hidden if no reviews exist), an optional quantity selector, and the ability to skip the offer if the product already exists in the original order. Product titles and prices are fully stylable and support some dynamic variables including `{product}`, `{original-price}`, `{current-price}`, `{savings}`, and `{savings-line}`. An optional offer description can be added to reinforce value or urgency. Review ratings come from your product review app. Most review apps, including Judge.me, Stamped, ReviewsIO, Junip, Okendo, and Shopify Product Reviews, work automatically without credentials. Yotpo Product Reviews requires extra setup. See [Aftersell & Yotpo reviews integration](/aftersell/aftersell_yotpo_reviews_integration). ### Product review star colors When **Show product reviews rating** is enabled, you can customize the colors of the star rating display: * **Star color** — the color of filled (active) stars. Defaults to `#fdcc0d` (yellow). * **Empty star color** — the color of unfilled (inactive) stars. Defaults to `#d1d5db` (light gray). To change the colors, open the **Product Details** widget settings, enable **Show product reviews rating**, and use the color inputs to set your preferred hex values. ### Quantity preset The **Quantity preset** setting controls how many units are added when the offer is accepted. It appears in the Product Details settings for all V2 offers, regardless of whether the quantity selector is shown. The following preset options are available: * **Fixed** — Sets a specific quantity. The customer cannot change it. * **Percentage of purchased quantity** — Sets the quantity as a percentage of the number of units the customer originally purchased. * **Minimum quantity** — Sets a floor on the quantity. The customer starts at this value and can increase from there. * **Maximum quantity** — Sets a cap on the quantity. The customer starts at 1 and cannot increase past the configured maximum (up to 20). A message indicating the maximum is shown only when the quantity selector is also enabled. ### Description position For single-product offers, you can control where the product description appears in relation to the CTA buttons: * **Default (above buttons)** - The description appears above the accept and decline buttons * **Below buttons** - The description appears below the accept and decline buttons This setting allows you to adjust the layout to better match your messaging hierarchy and design preferences. *** ## Variant & plan options The **Variant & Plan Options** widget controls variant visibility, selection, and subscription plan locking. You can show or hide out-of-stock variants, hide the entire product if all variants are unavailable, and control whether variant options with a single choice are shown. **Advanced settings allow you to hide the variant selector entirely**. Variant preselection options include Smart matching to the initial purchase, Unselected, requiring the user's selection or First available variant. For products with multiple variant options, all options are displayed and an in-stock variant is preselected when available; out-of-stock options are shown as unavailable. For products with a single variant option, out-of-stock options are hidden. ### Subscription plan locking When offering subscription products with multiple subscription plans, you can lock the offer to a specific plan. This prevents customers from changing the subscription plan during the post-purchase experience, ensuring they receive the exact subscription option you've configured. **To lock a subscription plan:** 1. In the **Variant & Plan Options** section, locate the **Lock subscription plan** dropdown 2. Select a specific plan from the dropdown 3. The plan is now locked — customers will see the plan name as static text instead of a changeable dropdown ![Variant and Plan Options panel with the Lock subscription plan dropdown](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/ppu-widgets-variant-plan-options.gif?s=8851a3d937b3f732660588f555e8743b) **When a plan is locked:** * Customers see the plan name displayed as text * The plan selector dropdown is hidden * Customers cannot change the subscription plan * If the locked plan is no longer available in Shopify, the offer gracefully falls back to showing all available plans **Automatic reset:** The locked plan setting automatically resets if you change the product's purchase option to one-time purchase only (removing the subscription option). ### Variant selector position You can control where the variant selector appears in relation to the CTA buttons: * **Above CTA buttons (default)** - The variant selector appears above the accept and decline buttons * **Below CTA buttons** - The variant selector appears below the accept and decline buttons When both the variant selector and product description are positioned below the CTA buttons, you can control their order: * **Variant selector first** - The variant selector appears before the product description * **Description first** - The product description appears before the variant selector You can also adjust the top and bottom padding of the variant selector to fine-tune spacing and create the desired visual layout. *** ## Layout The **Layout** widget controls the overall structure and spacing of the upsell. You can choose between a single-column or two-column layout, adjust the maximum layout width, and fine-tune top and bottom padding to create a clean, readable experience. *** ## Video The **Video** widget adds a clickable thumbnail to an offer that opens a hosted video player in a new tab, with a styled backdrop and a button to return to the upsell. The video plays in a new tab rather than inline, so the upsell offer stays open in the original tab. The widget also supports a **backdrop color** to match your brand or focus attention on the player, and **layout settings** for alignment (left, center, right), and top and bottom padding. To preview the customer experience, click the thumbnail in the **offer preview** in the editor. The hosted video player opens in a new tab exactly as it will on the storefront, so you can confirm the thumbnail, CTA, and close behaviors before publishing. ### Browser compatibility The video widget opens the player in a new tab. On desktop this always works, so the widget always shows. On mobile it works the other way around: Aftersell shows the widget only in browsers it recognises as able to open a new tab without pushing the customer out of checkout. That covers native mobile browsers — Safari, Chrome, Firefox and other well-known ones — along with the Facebook and Instagram in-app browsers. **Every other mobile browser hides the widget.** That includes in-app browsers such as the Google app, TikTok and Pinterest, generic webviews, and anything Aftersell doesn't recognise. Because unrecognised browsers are hidden rather than shown, the set of environments where the widget won't appear isn't a fixed list — a browser Aftersell hasn't seen before hides it too. Where the widget is hidden, you can upload a **Fallback image** to show in its place — a static promotional image or a branded graphic, for example. It's displayed without a link or play button. If no fallback image is set, nothing renders in place of the widget. > [!TIP] > > Set a **Fallback image** on any video widget you publish. Because anything unrecognised is hidden, your traffic sources alone won't tell you whether some customers are missing the widget — and without a fallback, those customers see nothing at all. ### Video source The widget plays a single video from one of two sources. Use the **Upload** / **Link** toggle in the widget settings to choose which source the player uses: * **Upload** — drag and drop or select an MP4, WebM, or MOV file (up to 50 MB) to host it directly in your Shopify Files. After uploading, Shopify processes the file and a preview appears in the editor. * **Link** — paste a YouTube URL, a Vimeo URL, or a direct link to a hosted video file (for example, an MP4 on your own CDN). You can fill in both, but only the source selected in the toggle plays — the other is kept behind its tab and is **not** used as an automatic fallback. If only one source is set, that source plays regardless of the toggle. You must set at least one source — an uploaded video or a video link — before you can save the widget. #### Supported link formats The link field accepts the following: * **YouTube** — use the standard video URL (for example, `https://youtu.be/VIDEO_ID` or `https://www.youtube.com/watch?v=VIDEO_ID`). YouTube Shorts URLs (`youtube.com/shorts/...`) are not supported — open the video on YouTube and use the Share link instead. * **Vimeo** — use the standard video URL (for example, `https://vimeo.com/VIDEO_ID`). Showcase URLs, and channel or profile pages that don't point at a specific video, are not supported — use the individual video's URL from its address bar. A channel or group URL that includes the numeric video ID does work. * **Direct file** — a publicly accessible HTTPS URL pointing to a video file (for example, an MP4 on your CDN). #### Link validation The editor validates your link at two points: * **When you leave the field** — if the URL shape is recognisably wrong (for example, a YouTube Shorts link or a Vimeo showcase URL), an inline error explains what to use instead. * **When you save** — the editor checks with the video provider to confirm the video is embeddable. If the video is private, deleted, or has embedding turned off, the save is blocked and the reason is shown on the link field. Fix the link and save again to continue. If the provider check is unavailable (for example, due to a network issue), the save proceeds without blocking. #### Shopify Files permission Uploading a video requires the `write_files` permission. If this permission has not been granted, a banner appears in the upload area with an **Update** button. Click it to grant the permission and enable uploads. #### Upload processing After you drop or select a file, the uploader shows **Uploading…** while the file transfers, then **Processing…** while Shopify transcodes it. A preview appears once processing is complete. You can continue editing other widget settings while the video processes. You can't save a widget whose only source is a video that is still processing — the save is blocked until transcoding finishes, or until you add a video link to use as the source in the meantime. If you discard changes or close the editor before saving, any in-progress uploads are deleted from Shopify Files. Video links are validated when you save the widget. ### Thumbnail and watch-video CTA Upload the image customers will see in the offer before they open the video. A watch-video CTA is automatically placed on top of the thumbnail to draw attention to the play action. You can style the CTA label text to match your brand. Thumbnails are not auto-generated from the video — they must be uploaded. You can also upload a separate **mobile-only thumbnail**. When set, the mobile thumbnail is shown on mobile devices and the default thumbnail is used on desktop, so you can tailor the image for each screen size. ### Fallback image The **Fallback image** setting lets you upload an image to display when the video widget is hidden because the customer's browser can't open the player — see [Browser compatibility](#browser-compatibility). The fallback image is shown without a link or play overlay; it's a static image only. If no fallback image is uploaded, nothing renders in place of the widget. ### Autoplay The **Autoplay** toggle controls whether the video starts playing automatically when the hosted player opens. When autoplay is enabled, the video starts **muted**. Most modern browsers block autoplay of videos with sound until the customer interacts with the page, so playing muted is required for autoplay to actually fire reliably. Customers can unmute the video using the player controls once it has started. If you would rather have audio play from the first frame, leave autoplay off and rely on the customer to manually click play on the video. ### Closing the video There are three ways for a customer to close the hosted player and return to the upsell offer: * **Back to offer button** — a button below the player that closes the tab and returns to the upsell. * **Double-click anywhere** — double-clicking anywhere on the backdrop closes the player. * **Auto-close on end** — when the video finishes playing, the player closes automatically. Because the video opens in a new tab, closing the player closes that tab — the upsell remains in the original tab. ### Language and translations The video player page's copy — the back-to-offer button label, the desktop and mobile hints, and the title and message shown when the video is unavailable — follows the offer's **Language** setting and can be customized under **Settings > Translations**. *** ## Testimonials The **Testimonials** widget displays real product reviews on your post-purchase offer to build trust and reinforce the customer's decision to accept an upsell. Reviews are pulled from your connected review app. The widget appears in the offer editor picker as **"Testimonials"** with a star icon. To use this widget, you must have a review app connected in **Settings > Product Reviews**. Supported apps include Judge.me, Klaviyo, Okendo, and Yotpo. See [Review app integrations](/aftersell/checkout_widget_types#review-app-integrations) for setup instructions. ### Selection modes The Testimonials widget supports two modes: * **Manual** — You select a curated pool of reviews to display. Reviews are shown in the order you saved them. * **Dynamic** — Reviews are automatically pulled from your review app's synced cache based on the products in the upsell offer. Reviews are keyed to the offer's products, not the customer's original order. ### Configuration options * **Review app** — Select which connected review app to pull reviews from. * **Mode** — Choose Manual or Dynamic. * **Minimum rating** — Set the minimum star rating for reviews to display (for example, 4 stars and above). * **Display toggles** — Show or hide individual review elements: * Star rating * Review title * Reviewer name * Review date * Verified buyer badge * **Truncate review text** — Set a maximum character length for review text. Reviews exceeding this limit are clipped with an ellipsis. * **Max reviews to show** — Set how many reviews appear, from 1 to 3. * **Layout** — Arrange reviews **Horizontal** (side by side) or **Vertical** (stacked). * **Padding** — Adjust spacing around the widget. ### Dynamic mode and review syncing In dynamic mode, Aftersell imports reviews from your review app and stores them so they can be displayed on the offer. The first import happens automatically within 24 hours of connecting your review app, and then once a week after that. To import reviews immediately, go to **Settings > Product Reviews** and click **Sync now** for your review app. ### Verified buyer badge When the verified buyer badge is enabled, a **"Verified buyer"** label is shown on qualifying reviews. This label is automatically translated into the language set for the offer and supports 32 languages. *** ## Adding additional widgets Widgets can be added either **above or below the Upsell Product widget**, allowing you to control the flow of information before or after the product itself. Additional widgets that can be added include: * **Image** - Display a supporting image to visually reinforce the offer. * **Text** - Add supporting text to communicate key messages. * **Text & Image** - Combine text and visuals to highlight value or explain the offer. * **Extra Buy Button** - Add an additional call-to-action to encourage offer acceptance. Not available on offers that show more than one product. * **Trust Badge** - Display trust signals such as guarantees, security, or credibility indicators. * **FAQs** - Answer common customer questions to reduce friction and increase confidence. * **Video** - Embed a video to demonstrate the product or tell your brand's story. See [Video](#video). * **Testimonials** - Show real product reviews from your connected review app. Available on V2 offers. See [Testimonials](#testimonials). To add a widget: 1. Choose whether you want the widget to appear **above or below** the Upsell Product widget 2. Click **Add widget** in the selected section 3. Select and configure the widget you'd like to include *** To learn more about what post-purchase offers are, how they work, and how to start using them with Aftersell, take a look at [this article for more information](/aftersell/post_purchase_overview). *** The behavior and appearance of widgets are limited to the configuration options available in the editor.\ Further customizations are not supported due to Shopify limitations. *** ## Need help? If you have questions or need assistance setting up your post-purchase offers, our support team is here to help. You can reach out anytime through the in-app chat or by contacting us via email. # Post-purchase insights Source: https://docs.aftersell.com/aftersell/ppu_insights Understand how your post-purchase funnel performance compares to similar stores using the peer benchmarks feature in Aftersell. The post-purchase insights page gives you a benchmark view of your revenue per visit (RPV) compared to stores with a similar average order value (AOV) and, where available, a similar industry. This helps you understand how your post-purchase funnel is performing relative to your peers. This feature is available to all merchants on a post-purchase plan. *** ## Accessing post-purchase insights You reach post-purchase insights from the home page: a **Peer benchmarks (PPU)** widget appears there, and **View full report** opens the full insights page. That widget is the only entry point — the report has no sidebar item of its own, and it does not live under the sidebar's **Reports** section (that is the dashboards and Explorer area, which is a different feature). *** ## Peer benchmarks widget The peer benchmarks widget on your home page gives you a quick snapshot of how your RPV compares to similar stores over the last 30 days. The widget shows: * **Your RPV** — Your revenue per visit for post-purchase offers over the last 30 days. * **Peer comparison** — How your RPV ranks against stores that share your AOV (and industry, if available). The sub-heading describes the comparison being made, for example "Compared to stores that share your AOV and industry · Last 30 days" or "Compared to stores that share your AOV · Last 30 days". * **Percentile ranking** — Where you fall within your peer group (for example, Top 25%, Average, or Below average). If your store is new to post-purchase or does not yet have enough data, the widget displays a message explaining that your benchmarks will appear as your store earns with the app. *** ## Full post-purchase insights report The full report, reached from the home-page widget, includes additional detail across several sections. ### Performance summary The section, headed **Peer benchmarks** in the app, shows three metric cards — **Revenue per visit**, **Acceptance rate**, and **PPU revenue (30d)**. Each one gives your value, your peer group's median, and a gauge spanning the peer 25th–75th percentile band, plus a tier badge. This lets you see at a glance where you sit against similar stores on each measure. The peer group is determined by: * **AOV bucket** — Stores are grouped by average order value range (for example, \$80–100 AOV). * **Industry** — When your store's industry is available, the peer group combines AOV and industry for a more relevant comparison. If there are not enough peers in the combined cohort, the comparison falls back to AOV only. The sub-heading on the performance summary describes which comparison is being used. ### Daily RPV trend The daily RPV trend chart shows your revenue per visit for each day over the last 30 days, plotted alongside the peer group median. This helps you identify patterns, seasonal dips, or improvements in your funnel performance over time. If there is not enough daily data yet, the chart displays a message to check back after a few days of activity. ### Per-funnel breakdown The per-funnel breakdown table lists each of your active post-purchase funnels alongside their individual performance metrics, including: * **Impressions** — How many times the funnel was shown. * **Acceptance rate** — The percentage of impressions that resulted in an accepted offer. * **Health status** — One of four labels — **Strong**, **Steady**, **Needs work**, or **No revenue** — based on how your funnel's acceptance rate compares to the peer group median. You can click **Edit** on any funnel row to go directly to that funnel's trigger settings. ### Recommendations The recommendations section highlights specific funnels or settings that may help improve your performance, based on your benchmark data. *** ## How the peer group is determined Aftersell matches your store to a peer group using two dimensions: | Dimension | Description | | - | - | | **AOV bucket** | Your store's average order value range (for example, \$80–100 AOV). | | **Industry** | Your store's product category or industry, when available. | When both dimensions are available, the peer group uses a combined AOV + industry cohort. If that cohort does not have enough stores to produce a reliable benchmark, the comparison falls back to AOV only. The label on the performance summary and widget always reflects which comparison is being used. *** ## Notes * Benchmark data is updated on a rolling basis and reflects the last 30 days of activity. * RPV values are shown in your store's currency, converted from USD using the current exchange rate. * Stores without post-purchase access do not see the widget or the insights page. # Product Recommendation widget Source: https://docs.aftersell.com/aftersell/product-recommendation-widget-thank-you-page Configure the Thank You Page Product Recommendation widget in Aftersell: choose products, design the offer, apply discounts, and set order handling. The Product Recommendation widget displays upsell products on the Thank You page after checkout. Use it to promote specific products, drive automatic recommendations based on cart contents, or feature a collection. This page covers every setting on the widget. For the full funnel setup and Shopify editor steps, see [How to configure thank-you page widgets](/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell). Add the widget from the **Thank You Page** section of your funnel by clicking **Add Widget** and selecting **Product Recommendation**. Unlike post-purchase upsells, Thank You page product recommendations are compatible with **all payment gateways** and **multi-currency stores**. Customers re-enter their payment details to complete the upsell purchase, but Aftersell automatically applies their saved shipping information to keep the checkout experience seamless. ![Aftersell Thank You Page editor with the Product Recommendation widget active and a product selected](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/typ-extensions-editor-product-recommendation.gif?s=cd8c084de2e615bf735f29eb5c01374f) ## Product selection 1. Choose your product selection method: * **Specific Products** - Manually select products to display * **Automatic Upsells** - Let Aftersell recommend products based on cart contents * **Collections** - Display products from a specific collection * **Strategy** - Fill the widget from an Aftersell [Strategies](/aftersell/strategies_overview) ruleset. This option appears only when Strategies targeting is active for your store and you have not already picked products by another method. 2. Set the **maximum number of products** to display. There is no fixed maximum, but keeping the count focused (for example, 4-10 products) keeps the offer easy to scan. 3. Enable **Hide product if purchased** so customers are not shown a product they already bought in the same order. 4. Enable **Hide out of stock variants** to filter out unavailable variants so customers only see items they can actually purchase. When browsing the **Products** tab in the product picker, you can check **Active products only** to hide Draft and Archived products. This filter is off by default and only applies to the Products tab, Collections are not affected. ### Editing specific products To choose specific products, click **Add upsell products** in the widget editor. Once you have products selected, the button label changes to **Edit upsell products**. Opening the picker when products are already selected shows your current selection pre-checked. From there you can: * **Add** new products by checking them. * **Remove** existing products by unchecking them. * **Clear** the entire selection by unchecking all products. Saving the picker reconciles the widget to whatever you leave selected: added products are included, unchecked products are removed, and re-saving an unchanged selection makes no changes. Collection, AI, and Strategy upsell rows are not affected when you edit specific products. ## Display on The **Display on** setting controls where the widget appears after a customer completes their purchase: * **On every impression** - Shows the widget on both the Thank You page and the Order Status page. * **Only on thank you page** - Shows the widget on the Thank You page only. * **Only on order status page** - Shows the widget on the Order Status page only. * **Only once on order status page** - Shows the widget on the Order Status page a single time, rather than on every visit. ![Product recommendation Display on dropdown, Max products field, and hide-product toggles](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/typ-extensions-recommendation-display-settings.gif?s=a7c3c5c98669d63e59100c05f33dd9f9) ## Offer design The **Offer design** settings control how product recommendations are presented to customers. * Choose whether products are displayed in a **horizontal** or **vertical** layout, and adjust visual elements such as borders, button styles, and spacing to match your checkout. * Add **banner text** above the offer to introduce the recommendation, highlight an incentive, or provide context for the products shown. * Configure **compare-at price** display and the color used for sale prices. * Enable a **quantity selector**, customize the quantity label, and set **minimum or maximum quantity limits**. Compare, Discount, and Sale prices offer two color families: * **Checkout branding colors** - Accent, Decorative, Info, Subdued * **Preset colors** - Success (green), Warning (yellow), Critical (red) ![The compare-at price color options from both the theme and our presets.](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/typ-extensions-compare-price-color-options.png?fit=max\&auto=format\&n=SnVX3h-PpMMxQMDU\&q=85\&s=555ec0085917bccf174d689e0a9c725c) Some of these settings can also be modified through your Shopify checkout editor or by other apps that offer this functionality. Two toggles complement the Automatic Discount feature: * **Show compare at price** - Display the "Compare at" price with a strikethrough. * **Show discount** - Display the discount on the upsell. ## Discounts and order handling ### Discounts Apply a discount directly to the upsell by setting a **percentage** or **fixed amount**. The discount is applied automatically when the customer accepts the offer. Customize how the discount appears with the **discount text** and **discount price color**. Discount colors can use your checkout branding colors (Accent, Decorative, Info, Subdued) or a preset (Success, Warning, Critical). If enabled, the discount display can include the **compare-at price**, shown with a strikethrough to highlight the savings. ![Thank You page upsell offer for a Hat showing 43 percent off with a strikethrough compare-at price](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/typ-extensions-thank-you-upsell-offer.gif?s=41788af72c0b25ff35871242596c5f79) Discounts follow Shopify's standard checkout discount rules. Only one line-item discount can apply to a product at a time, and discounts only combine if marked as **combinable** in Shopify Admin. In some cases, discounts may not apply if another app modifies the checkout. We recommend testing your checkout after enabling discounts. ### Order handling Order handling controls how an accepted upsell is added to the customer's order. There are two options, each with different trade-offs. * **Modify original order** - Adds the upsell directly to the existing order. Free shipping is automatically applied. You can optionally email the customer when their order is modified. * **Create new draft order** - Keeps the original order untouched and creates a separate order for the upsell. ![Order handling options to either modify the original order, or to create a new draft order](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/typ-extensions-order-handling-options.png?fit=max\&auto=format\&n=SnVX3h-PpMMxQMDU\&q=85\&s=de2249c801aef599ce76686b46f91dec) #### When to choose each option | Use **Modify original order** when... | Use **Create new draft order** when... | | - | - | | You want a single fulfillment for everything the customer bought | You want to re-offer a product the customer just purchased (for example, the same item at a post-purchase discount) | | Your upsell catalog is distinct from your best-sellers | Your top-sellers are also your primary upsell candidates | | Free shipping on the upsell is the priority | You need a separate order for fulfillment or reporting reasons | | Your upsell products are not bundle products | Your upsell products include bundle products | > [!WARNING] > > **"Modify original order" has limitations.** When this mode is selected, a **Limitations** banner appears in the widget editor listing the following: > > * **Same-variant upsells are hidden.** Shopify's order-edit API does not allow duplicate variants in an order. If the customer already has the upsell variant in their original order, the upsell is hidden from the Thank You page. If an upsell is hidden for this reason, the Order Browser flags the affected order with an "Upsell hidden due to order merging" banner. > * **Bundle products cannot be added to an existing order.** Shopify's order-edit API rejects bundle products. When a selected upsell variant is a bundle, the outcome follows your **When the order can't be modified** setting: > * With **Hide the offer and block late acceptances**: the bundle upsell is hidden and customers cannot buy it through this offer. > * With **Hide the offer, but allow late acceptances as a new order** or **Keep showing the offer and sell it as a new order**: the bundle upsell is fulfilled as a separate draft order instead of being merged into the original order. > > Switch to **Create new draft order** if you want bundle products or same-variant upsells to always be available to customers. #### When the order can't be modified When **Modify original order** is selected, some orders can't be edited at the time a customer accepts the upsell. There are exactly three cases: the order has been **archived**, it is **partially paid**, or it is older than the **expiry window** you set below. The **When the order can't be modified** setting controls what happens in those cases. A **fulfilled** order is not one of them, it can still be edited, but only upsell products that don't require shipping can be merged into it (see the note further down). | Option | What it does | | - | - | | **Hide the offer and block late acceptances** | The offer is hidden once the order can no longer be edited. Any acceptance that arrives after the order becomes ineligible is blocked. | | **Hide the offer, but allow late acceptances as a new order** | The offer is hidden once the order can no longer be edited. If a customer accepts just before the offer hides (a race-window accept), the upsell is fulfilled as a separate draft order instead. This is the default for new widgets. | | **Keep showing the offer and sell it as a new order** | The offer stays visible regardless of whether the order can be edited. If the order can't be modified, the accepted upsell is fulfilled as a separate draft order. | The two fallback options create a separate draft order for the upsell when the original order can't be modified. The customer receives a payment link to complete the purchase as a new order. #### Setting an expiry window You can set a time limit on how long an order remains eligible for merging. Use the **Consider the order uneditable after** field (located under the behavior selector in **Order handling**) to enter a number of minutes. Once that many minutes have passed since the order was placed, the order is treated as ineligible and the **When the order can't be modified** behavior applies. Leave the field blank or set it to **0** to never expire, the offer remains eligible for as long as the order itself is editable. This is useful when your fulfillment workflow processes orders quickly and you want to avoid attempting to merge into an order that is likely already in progress. #### Other things to know about "Modify original order" * Free shipping is automatically applied and cannot be disabled. * The original order is marked as **partially paid** until the customer completes payment for the added upsell. Once payment is captured, Shopify updates the order automatically. * If the order is already fulfilled, has no shipping line, or contains only items that don't require shipping, only upsell products that **don't require shipping** can be merged into it. Products that do require shipping are dropped from the offer on those orders. ### Free shipping You can offer **free shipping** on accepted upsell products to help increase conversion. When enabled, customers are not charged shipping for the upsell, while your existing Shopify shipping settings continue to apply to the original order. How the Free shipping toggle behaves depends on your **Order handling** setting: * **Modify original order** - Free shipping is automatically applied to the accepted upsell and the toggle can't be disabled. * **Create new draft order** - The Free shipping toggle applies to the separate draft order created for the upsell. When enabled, the draft order is created without shipping charges on the upsell line item. Leave the toggle off if you want Shopify's normal shipping rates to apply to that new order. The same behavior applies when a fallback creates a separate draft order under **Modify original order** (for example, a same-variant or bundle upsell, or an acceptance after the order becomes uneditable): the Free shipping toggle controls whether the draft order is created without shipping charges on the upsell. You can also display a **"Free Shipping" badge** on the offer and customize the badge text to highlight the benefit. # Product page upsells Source: https://docs.aftersell.com/aftersell/product_page_upsells This article outlines how to setup product page upsells. The Product Page Upsells (PDP Upsells) feature in Aftersell allows you to create compelling upsell offers directly on your product pages. This guide will walk you through how to set up and optimize this feature to boost customer engagement and increase sales. *** # Introduction to Product Page Upsells The Product Page Upsells feature enables you to display relevant, complementary, or related product offers directly on the product page of your store. This functionality helps boost conversions by encouraging customers to purchase additional items. * Customers do not need to make a purchase before seeing Product Page Upsells. These appear based on triggers you set, such as specific products or page conditions. This feature mimics the popular **"Buy It Together"** experience found in many leading ecommerce platforms by offering a seamless and effective upselling opportunity without interrupting the customer's journey. *** # Setting Up Product Page Upsells ## Step 1: Create an Upsell Offer 1. Open the Aftersell Product Page Upsells dashboard and click Create New Upsell. 2. Choose which product(s) or collection(s) will trigger the upsell. 3. Select up to five products to display as upsell offers. 4. *(Optional)* Add a discount to make your offer more enticing. When a discount is applied, a value tag is shown to customers on the upsell widget, in parentheses — for example, **(\$100 OFF)** or **(CA\$130 OFF)** for fixed-amount discounts, and **(22% OFF)** for percentage discounts. The label uses the customer's presentment currency, so it always matches the actual discount applied at checkout. The wording comes from the **Discount Text** field under **Design → Pricing**, which defaults to `{{DISCOUNT_AMOUNT}} OFF` — edit it there to change the label. 5. Save your setup when complete. ![Aftersell New Product Page Upsell editor Configure tab with triggers, products, and discount options](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/pdp-upsells-new-product-upsell-editor.gif?s=418e880c967d5f47ef1e02f53892f093) ## Step 2: Add the app block to the product page To display upsells on your product pages: 1. Open the Shopify Theme Editor from your Aftersell dashboard. 2. Select **Add block**, then the **Apps** tab, then **PDP Upsell**. The block is not added for you — the link opens the product template so you can place it yourself. 3. Drag it to your preferred position on the page. 4. Save your setup when complete. ![Shopify Theme Editor with the Aftersell PDP Upsell app block placed showing a product page preview](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/pdp-upsells-theme-editor-app-block.gif?s=2404421d8b2f8c6d574a6376343b666f) **Note:** You can't move app blocks between sections, but you can reorder them within the same section. ## Translating Product Page Upsells Only two sections within the Product Page Upsell widget require translation. ### 1. Header Text The "You may also like" text displayed above the upsell products can be updated. To edit this: Go to **Design → Header → Heading Text** Replace the text with your preferred language. ### 2. Add to Cart Button The "Add to cart" button text can also be translated. To edit this: Go to **Design → Button → Text** Update the button text to match your store's language. # **Individual Products vs Bundles** * **Individual Products:** Customers can add upsell items separately * **Bundles:** Customers can add multiple products at once with a single discount or a Buy X, Get Y Free offer. *** # Compatibility with Shopify Themes Product Page Upsells requires a Shopify theme that supports adding app blocks.\ Most modern themes (2021 and later) are compatible. If you're using an older "vintage" theme, please upgrade to a newer Shopify theme to enable app blocks and unlock this feature. Most modern themes (2021 and later) are compatible. If you're using an older "vintage" theme, please upgrade to a newer Shopify theme to enable app blocks and unlock this feature. *** # Discounts and strategy pricing When you configure a discount on a product page upsell widget, the discount applies to all products the widget returns. If you also assign a strategy to the widget, and that strategy includes per-rule price adjustments, the two discount sources work together on a per-product basis: * **Products targeted by a strategy rule discount** — the strategy's rule discount applies to those products. * **Products returned by the strategy but not targeted by a rule discount** — the widget's configured discount applies as a fallback. * The two sources never stack. Each product receives exactly one discount — either the strategy rule's adjustment or the widget discount, never both. When the selected strategy carries a rule discount, the widget editor shows an informational banner: > *"This strategy applies its own discount to the products it targets. The discount below is the fallback for products it doesn't discount."* The discount section remains fully editable. You can configure the widget discount as the baseline for any products the strategy returns but doesn't specifically discount. > **Note:** Strategy price adjustments apply to Product Page Upsells V2, a newer version of this feature that is not yet generally available — V1 upsells have no strategy field at all. Stores are moved to V2 by the Aftersell team, and only stores already using Strategies are eligible. *** # **Limitations** * Subscription-only products can't be used as upsells. * Bundles won't appear if an included product is out of stock, this ensures accurate pricing and protects margins. *** # Translating product page upsells Only two sections within the Product Page Upsell widget require translation. ### 1. Header Text The "You may also like" text displayed above the upsell products can be updated. To edit this: Go to **Design → Header → Heading Text** Replace the text with your preferred language. ### 2. Add to Cart Button The "Add to cart" button text can also be translated. To edit this: Go to **Design → Button → Text** Update the button text to match your store's language. *** # **Final Steps** Once you've added the app block and created your offer, activate your upsell to start increasing conversions. ![Aftersell Your Upsells table with the status toggle highlighted to activate the upsell](https://mintcdn.com/aftersell/1Y3gBpUfxv16VGSW/images/aftersell/pdp-upsells-table-status-toggle.png?fit=max\&auto=format\&n=1Y3gBpUfxv16VGSW\&q=85\&s=0469cca497b183253806472cf733029d) *** By following these instructions, you can implement the Product Page Upsells feature to enhance your store's sales potential. For help setting up or troubleshooting, please contact the **Aftersell Support Team** directly from the app. # Replacement upsells reference Source: https://docs.aftersell.com/aftersell/replacement_upsells_reference How Replacement Upsells work: the refund-and-replace changeset, supported and blocked scenarios, payment-gateway and discount rules, and the Beta failsafe. This page is the complete mechanics behind Replacement Upsell: how a replacement is processed, which scenarios are supported or silently blocked, the payment and discount rules, the Beta failsafe, and the full troubleshooting catalog. For how to build one, see the [Replacement upsells](/aftersell/replacement_upsells) guide. ## How a replacement is processed When a customer accepts a Replacement Upsell: 1. The original one-time line item is **refunded** in Shopify. 2. The replacement line item is **added** to the same order, either as a one-time purchase or a subscription (depending on what you configured). 3. The customer pays for the replacement on the same order. 4. Their statement shows two transactions: the refund of the original, and the charge for the replacement. The displayed Accept Offer button reflects the **net difference** between the two prices. This is implemented using Shopify's post-purchase API: * For a one-time replacement (different variant, quantity, or product), Aftersell sends an `add_variant` changeset. * For a subscription replacement, Aftersell sends an `add_subscription` changeset. * The original line item is removed via Shopify's refund API. Aftersell does not call your subscription app's API directly for subscription replacements. The subscription is created by Shopify's native Subscription API and your subscription app picks it up via its own Shopify integration. ## Supported scenarios Replacement Upsell supports four scenarios. In each case, the **original line item must be a one-time purchase**. The replacement can be either one-time or subscription. * **One-time to one-time, same product, different variant.** For example, swap the Twin size for the Queen size. * **One-time to one-time, same product, different quantity.** For example, swap a single bottle for a 3-pack of the same item. Enable **Override quantity** on the replacement to set the quantity that ships. * **One-time to one-time, completely different product.** For example, swap a starter bottle for a full-size version of a different SKU. * **One-time to subscription.** For example, swap the one-time bottle for a monthly subscription of the same bottle, or for a subscription version of a different product. This is the most common use case. ## Blocked scenarios These scenarios are **blocked by Aftersell at offer-display time**. The offer silently skips if the customer's order matches any of them. * **Subscription to one-time.** Removing the subscription line item does not cancel the subscription contract in Recharge, Skio, Loop, or Stay AI. The customer would still be billed and also receive the replacement. * **Subscription to a different subscription.** Same root cause as above, plus Shopify's "one subscription per order" rule blocks adding a new subscription to an order that already contains one. * **Subscription to subscription variant or frequency swap.** Same root cause. If you need to change a customer's existing subscription, use [Subscription Upgrade](/aftersell/subscription-upgrades) instead. Subscription Upgrade modifies the existing contract in Recharge, Skio, Loop, or Stay AI directly, without trying to remove and re-add the subscription line. > [!TIP] > > Whenever a Replacement Upsell is skipped (a blocked scenario above, an unsupported payment gateway, or a discounted trigger line), Aftersell automatically tries to show the **downsell** offer in the same funnel instead. Set up a downsell as a fallback whenever you use Replacement Upsell so the shopper still sees an offer. ## What the customer sees Understanding the customer's view prevents the most common support ticket: "Why was I double-charged?" ### In the post-purchase offer The Accept Offer button shows the **net difference** between the original and the replacement. For example, if the customer bought a \$30 bottle and you offer a \$45 3-pack, the Accept button reads "Add \$15.00 to your order." If the replacement is cheaper than the original, the button reads as a credit. The offer card shows the replacement product's image, title, and price. The offer card uses the variant-specific image when one is tagged on the variant in Shopify. If the variant has no image tagged, the offer card falls back to the parent product's first image. This means swapping between two variants of the same product may or may not change the image, depending on whether each variant has its own image set up in Shopify. ### On the Shopify order after acceptance The order ends up showing both: * The original line item with a **refund** applied to it. * The new line item for the replacement, charged at full price. The order total reflects the net result, but the customer's bank statement will show two transactions: one charge for the replacement and one refund for the original. This is how Aftersell processes Replacement Upsell acceptances at the payment level. The net amount matches the displayed Accept Offer button. To reduce confusion: * Include a line in the offer copy that explicitly describes the refund-and-replace mechanic. For example: "When you accept, we will refund the original item and charge for the replacement. You will see two line entries on your statement, the net is the upgrade price shown on this button." * Enable Aftersell's automatic refund-notification email for replacement upsells, which sends the customer a confirmation explaining the refund. ### In the subscription provider portal (when replacement is a subscription) If the replacement is a subscription, the customer will see the new subscription in your subscription provider's customer portal (Recharge, Skio, Loop, Appstle, Smartrr, Stay AI). The portal is owned by your subscription provider, not by Aftersell. Make sure your subscription provider's welcome email is configured to send within minutes of acceptance. ## Compatible subscription platforms When the replacement is a subscription, Replacement Upsell works with any subscription app that uses Shopify's native Subscription API. Aftersell does not call provider APIs directly for this flow; the subscription is created by Shopify and your subscription app picks it up via its own Shopify integration. Compatible providers include Recharge, Skio, Loop, Stay AI, Appstle, Smartrr, Bold Subscriptions (when running on Shopify's native subscriptions API), and Shopify's native selling plans. If your replacement target has a prepaid subscription plan configured (for example, every 3 months charged upfront), confirm with your subscription provider that prepaid is supported as a replacement destination. Prepaid handling varies by provider. ## Payment method requirements Aftersell explicitly blocks Replacement Upsell on some payment gateways because they cannot reliably support the refund-and-recharge pattern in the post-purchase window: * **Authorize.net** (`authorize_net`). Authorize.net requires transactions to settle before refunds can be issued, and settlement has a delay, so Aftersell cannot reliably refund the original and add the replacement on the same Shopify order. If Authorize.net is your payment processor, route those customers to Thank-You-page offers instead. * **Manual payment gateways** (`manual`). This covers cash on delivery, custom payment methods, draft-order checkouts, and any other manual payment processor that does not capture a vaulted authorization. Replacement Upsell needs an active vaulted payment to issue a follow-up charge, which manual gateways do not provide. When the order's payment gateway is one of these, Replacement Upsell silently skips the offer. The skip reason surfaces in the Aftersell order browser as **"Payment gateway does not support replacement upsells."** For the broader list of payment methods that affect all Aftersell post-purchase offers (not just Replacement Upsell), see [Payment Methods](/aftersell/payment_methods). ## Discount handling Replacement Upsell has specific behaviour around discounts that catches partners off guard. ### Discounts on the original line do not carry to the replacement When Aftersell refunds the original line item, any discount that was applied to it goes with it. The replacement line is charged at the full price (or at your replacement-offer discount, if you configured one), but the customer's original discount does not transfer. If you want the customer to keep an equivalent discount, configure it on the replacement offer directly. ### Allow replacement when target has a discount By default, Replacement Upsell **skips** the offer if the trigger line carries an order-level discount. This is a protective default to avoid refund-amount mismatches. To allow the offer to fire even when the trigger has a discount, enable the **Allow replacement when target has a discount** toggle in the offer's advanced settings. When enabled, the refund covers the discounted price (not the full price), and the replacement is charged according to your offer configuration. ### First-cycle discount on subscription replacements When the replacement is a subscription, the discount you configure on the offer applies to the **first billing cycle only**. Future recurring orders charge at the regular subscription price. The customer sees the recurring price under **Recurring subtotal** in the offer. ## Per-variant funnels A single Replacement Upsell offer targets one specific product and variant on each side. If your subscription plans differ per variant (different sizes, flavours, or prices), you cannot configure one offer that says "swap whichever variant the customer bought to its matching subscription variant." Each variant pairing needs its own funnel. For example, if you sell a serum in three sizes (Small / Medium / Large) and want each one to swap to its subscription counterpart, you would build three funnels: * Funnel 1: trigger = Small one-time, replacement = Small subscription. * Funnel 2: trigger = Medium one-time, replacement = Medium subscription. * Funnel 3: trigger = Large one-time, replacement = Large subscription. Aftersell does not currently include a built-in variant pairing feature, so each variant pair needs its own funnel. ## Analytics and reporting Refunds generated by a Replacement Upsell carry the note **"AfterSell Post-Purchase Replacement Upsell"** in Shopify, which makes replacement-related refunds easy to identify. Aftersell analytics do **not** subtract the refunded amount from the upsell value. Replacing a \$100 product with a \$200 product is reported as a \$200 upsell, not a \$100 net. ## The Beta failsafe While Replacement Upsell is in Beta, Aftersell tracks errors on each offer and stops showing the offer to new customers once the error count crosses a threshold. This protects you from a widespread misconfiguration silently impacting many customers. ![Replacement Upsell Beta failsafe in the Order Browser](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/replacement-upsells-order-browser-failsafe.gif?s=0ec4f5a58191b9323de015eae3793c07) ### Configuring the failsafe threshold The failsafe threshold is configurable in **Settings → Replacement Upsells**. It counts replacement errors over a **rolling 7-day window** and pauses replacement upsells once your chosen threshold is reached within that window. You can pick from: * **Stop on any issue in the past 7 days** (recommended, and the default). The offer stops as soon as the first replacement fails within the rolling window. * **Stop after 3 issues in the past 7 days**. * **Stop after 5 issues in the past 7 days**. * **Stop after 7 issues in the past 7 days** (most permissive). * **Custom** reveals a number field where you can enter any whole number from **1 to 100**. Use this if your store processes high order volumes and the presets trip too quickly. Pick a higher threshold if you are confident in the offer's configuration and want to absorb a few transient Shopify or subscription-provider errors without disabling the offer. Pick a lower threshold if customer-facing failures are high-cost for your store. ### What trips the failsafe Any exception in the replacement flow counts as an error within the rolling 7-day window. The most common causes: * Shopify rejects the changeset because the checkout has already completed. * The replacement product was deleted or unpublished between offer setup and the customer accepting. * The selling plan on a subscription replacement was deactivated. * A transient Shopify API or subscription-provider outage. ### When the failsafe trips When the error count within the rolling 7-day window reaches your threshold, the offer **stops being shown** to new customers. You'll know in two places: * **Home page banner.** A warning banner titled **"Replacement upsells are paused"** appears on your Aftersell home page, with a **Review failsafe** button linking to **Settings → Replacement Upsells**. * **Failsafe status card** (Settings → Replacement Upsells). A status card shows a **Failsafe tripped** (amber) or **Not tripped** (green) badge, plus your current rolling count and threshold, for example "4 of 5 errors in the past 7 days". Because the failsafe uses a rolling 7-day window, it **self-heals**: once the error count drops below your threshold, replacement upsells resume automatically, no action required. ### How to reset You can reset the failsafe yourself from **Settings → Replacement Upsells**. Once you've resolved the underlying issue, click **Reset failsafe** and confirm in the modal. The rolling error count clears immediately and replacement upsells resume for new orders. (The button is disabled when your current error count is already zero.) Only reset after fixing the root cause, otherwise the failsafe will trip again once the threshold is reached. If you're unsure what caused the errors, contact support via the in-app chat before resetting. ## Troubleshooting > [accordion] The Replacement Upsell offer type does not appear in my funnel editor > > Replacement Upsell is a Beta feature that requires manual enablement by Aftersell support. Contact support via the in-app chat to request access. Once enabled, the **Replace item in original order with upsell** toggle will appear in the offer's advanced settings. > [accordion] The offer is not showing on test orders > > Three causes: > > * **Funnel trigger mismatch.** Confirm the trigger product is the same product that is in the test order's cart. > * **Order already contains a subscription.** Replacement Upsell skips any order where the trigger line is a subscription. Use Subscription Upgrade instead in that case. > * **Original line has a discount.** By default, Replacement Upsell skips lines with an order-level discount. Enable **Allow replacement when target has a discount** in the offer's advanced settings. > [accordion] The offer shows but the replacement doesn't actually happen (or the customer received the original product) > > A Replacement Upsell offer has three separate product selections in the editor, and they need to be configured consistently for the replacement to fire: > > 1. **Funnel trigger.** Set at the funnel level. Determines which orders see the offer. > 2. **Upsell product.** Set in the offer's Upsell Products section. The product that gets added to the order when the customer accepts. > 3. **Edit product to replace.** Set inside the **Replace item in original order with upsell** section, by clicking the **Edit product to replace** button. This is the exact product and variant in the customer's cart that will be refunded and removed. > > The most common configuration mistake: the **product to replace** does not match the variant that is actually in the customer's cart. When that happens, Aftersell cannot find a matching line item to remove, and the replacement silently does not fire. > > To fix: > > * Open the Replacement Upsell offer. > * Click **Edit product to replace** and confirm the selected product and variant **exactly match** the product+variant the customer should have purchased (per the funnel trigger). > * If you are swapping between variants of the same product (Small → Large), the "product to replace" must point to the Small variant specifically. If you point it to Large or to any variant the customer did not buy, the offer will skip. > * Save and test with a real low-price order that includes the exact variant you want to swap from. > [accordion] My customer thinks they were double-charged > > This is the expected behaviour. The original line is refunded and the replacement is charged, so the customer's bank statement shows two transactions even though the net amount is the displayed offer price. To reduce confusion: > > * Add a sentence to the offer copy explaining the refund-and-replace mechanic. > * Enable Aftersell's automatic refund-notification email for replacement upsells. > * Train your support team to explain the two-line-entry pattern when a customer reaches out. > [accordion] I see "Partial refunds are not allowed until the transaction is settled" > > Some payment gateways (including Authorize.net and others that batch-settle transactions on a delay) do not permit refunds until the original transaction has settled. Because a Replacement Upsell charges the replacement and refunds the original immediately after checkout, the refund step can fail with the error "Partial refunds are not allowed until the transaction is settled. Please try again later." Aftersell does not automatically retry the refund after settlement, so you will need to issue the refund manually from the Shopify order once the original transaction settles (typically within 24 hours, depending on your gateway's settlement schedule). To avoid this scenario, Replacement Upsell is skipped entirely for known unsupported gateways. If you keep seeing it on a supported gateway, contact support so we can investigate. > [accordion] The original order's discount disappeared after the replacement > > When Aftersell refunds the original line item, any discount applied to it goes with the refund. The replacement line is charged separately. If you want the customer to retain the discount, configure it on the replacement offer directly using the offer's discount field. > [accordion] Can Replacement Upsell swap a subscription for another subscription? > > No. If the original line item in the order is already a subscription, Replacement Upsell will not fire. This is because removing the subscription line item does not cancel the subscription contract in your subscription app; the customer would still be billed and also receive the replacement. To modify an existing subscription (change frequency, swap product, or both), use [Subscription Upgrade](/aftersell/subscription-upgrades) instead. > [accordion] My Replacement Upsell offer suddenly stopped firing > > Replacement Upsell tracks errors per offer over a rolling 7-day window and stops showing the offer once the error count crosses your configured threshold in **Settings → Replacement Upsells** (default: stop on any issue in the past 7 days). When the failsafe trips, a **"Replacement upsells are paused"** banner appears on your Aftersell home page with a **Review failsafe** link to **Settings → Replacement Upsells**, where a status card shows your current error count and whether the failsafe is tripped. > > If errors are no longer occurring, the offer resumes automatically once the rolling 7-day count drops below the threshold. To resume immediately after fixing the issue, click **Reset failsafe** on that settings page. If you're unsure of the root cause, contact support via the in-app chat. > [accordion] The replacement product image is wrong or generic > > The offer card uses the variant-specific image when one is tagged on the variant in Shopify. If the variant has no image tagged, the offer card falls back to the parent product's first image. If you are swapping between variants of the same product and the image is not changing, confirm that each variant has its own image set up in Shopify. > [accordion] I want to configure Replacement Upsell across many product variants > > Build one funnel per variant. Each funnel has a product+variant trigger and a corresponding replacement product+variant. Aftersell does not currently include a built-in variant pairing feature. > [accordion] The customer accepted but the new subscription is not in my subscription app > > Same failure mode as Subscription Upsell: most often a selling plan was deactivated between the offer rendering and the customer accepting. Shopify accepts the changeset but no subscription is enrolled downstream. Confirm the selling plan is still active in Shopify and assigned to the replacement product. Check your subscription app's order import or webhook logs for the affected order. If the subscription is missing, your subscription app's support team can usually manually enroll the customer. > [accordion] I want to cancel the new subscription after the customer accepted > > Aftersell does not manage subscription cancellation. Cancellation of future cycles happens in your subscription provider's customer portal or by the customer themselves. The Shopify refund mechanism for the first cycle works the same as any other line item. > [accordion] My Authorize.net customers never see the Replacement Upsell offer > > This is expected. Authorize.net is explicitly blocked from Replacement Upsell in Aftersell's code because it requires transactions to settle before refunds can be issued, and settlement has a delay that breaks the refund-and-recharge pattern Replacement Upsell relies on. Run Thank-You-page offers for Authorize.net customers as an alternative. You can confirm this is the cause by opening the order in the Aftersell order browser; the skip reason will read "Payment gateway does not support replacement upsells." > [accordion] My cash-on-delivery or draft-order customers don't see the offer > > Manual payment gateways (cash on delivery, custom payment methods, draft-order checkouts) are explicitly blocked from Replacement Upsell because they do not vault a card for follow-up charges. The order browser will show "Payment gateway does not support replacement upsells" as the skip reason. For broader payment-method limitations on post-purchase offers, see [Payment Methods](/aftersell/payment_methods). # Manage reports Source: https://docs.aftersell.com/aftersell/reports_dashboards Create and manage custom analytics reports in Aftersell's Reports section. The Reports section lets you build custom reports from saved queries, giving you a flexible view of your store's analytics beyond the standard Analytics tabs. *** ## Navigating your reports When you open the Reports section, you land on the **Reports** table. This table lists every report available to your store, including default reports (provided by Aftersell) and any reports you have created. Each row in the table shows: * **Name** — the report name * **Type** — either **Default** (a report provided by Aftersell) or **Custom** (a report you created) * **Last updated** — the date and time the report was last modified * **Delete** — available on your own (Custom) reports only; Default reports cannot be deleted Click any row to open that report. *** ## Creating a report To create a new report, click **Create report** in the top-right corner of the Reports table. This immediately creates a new blank report named `Untitled report N` and opens it in view mode. Click **Add widget** to start filling it. If you have no reports yet, the same **Create report** button appears in the empty state. *** ## Report controls Three controls apply to every widget on the report at once, so all cards stay in sync. By default, each control is set to **Chart Default**, which inherits the date range, comparison, and timezone of widgets added to the report. * **Date Range** — set the period you want to see. * **Comparisons** — compare the selected period against another. The options are **Chart default**, **No comparison**, and **Previous period**; year-on-year is not offered, because reporting data does not yet go back a full year. * **Time Zone** — set the timezone used for dates and time-based grouping. *** ## Renaming a report You can rename any report you created (Custom reports only — Default reports cannot be renamed). 1. Open the report by clicking its row in the Reports table. 2. Click **Edit report**. A **pencil icon** appears next to the report title in the header. 3. Click the pencil icon, type the new name, and press **Enter**, or click away to save. *** ## Editing a report To add or rearrange widgets on a report you own: 1. Open the report. 2. Click **Edit report** in the header. 3. In edit mode, a **Widgets** panel appears on the left. Drag a saved query from the panel onto the grid to add it as a widget. 4. You can also click **Add widget** to build a new query in the Explorer and add it to the report. 5. When you are done, click **Save** to keep your changes, or **Cancel** to discard them. > [!NOTE] > > Default reports (Type: Default) are read-only and cannot be edited. *** ## Widgets Each item on a report is a **widget** — a saved query rendered as a visualization. For adding, configuring, and arranging widgets, see [Manage widgets](/aftersell/reports_widgets). *** ## Sharing a report When viewing a report, click the **Share** button in the header to generate a shareable link. The recipient opens the report in fullscreen view. The link can only be opened by users authenticated to your Shopify store. *** **Need help?** Contact the Aftersell support team through your report. # Explorer Source: https://docs.aftersell.com/aftersell/reports_explorer Build custom analytics queries visually in the Aftersell Explorer: pick metrics, break them down, filter, set a timezone, and save queries as report widgets. The Explorer lets you build custom analytics queries with a visual query builder. Pick the metrics you want, break them down by a dimension, filter and set a date range, then view the result as a scorecard, chart, or table. Save a query to add it to a report as a widget for ongoing monitoring. > [!TIP] > > You build queries visually with menus - no syntax required. Every query is really an **AftersellQL (AQL)** statement, and the Explorer also exposes that text form for power users who prefer to type. For the metric and dimension catalog, the AQL clause syntax, and the timezone rules, see the [AftersellQL (AQL) reference](/aftersell/aql_reference). *** ## Building a query 1. Open the **Explorer** in your Aftersell admin. 2. In the **metric picker**, choose one or more metrics to measure (for example Revenue, Impressions, Accept Rate). 3. Add a **breakdown** to slice those metrics by a dimension such as Date, Surface, Funnel, or Device. Without a breakdown you get a single total for the whole period. 4. Set the **date range**, and turn on **Compare** if you want to overlay an earlier period. 5. Choose how to display the result (scorecard, line, bar, area, funnel chart, or table). 6. Run the query. Results appear on screen. > [!NOTE] > > Some metric and dimension combinations aren't compatible - for example, Impressions and Accept Rate can't be broken down by device, and Decline rate can't be broken down by currency. The Explorer prevents incompatible combinations automatically. For the full list of metrics, dimensions, and which combinations are allowed, see the [AQL reference](/aftersell/aql_reference#available-metrics). ### Filtering by multiple funnels The **funnel** filter supports multi-select operators so you can scope a query to a subset of your funnels: * **is one of** - includes only the selected funnels. * **is not one of** - excludes the selected funnels. When you choose **is one of** or **is not one of**, the value input changes to a scrollable checkbox list showing all your funnel names. Select as many funnels as you need. When you group results by **Funnel** and apply an **is one of** filter, the line chart shows one line per selected funnel - even if you select more than the default number of series. No selected funnel is collapsed into an "Other" category. *** ## Setting a timezone By default, queries run in UTC. You can override the timezone for a query so date-bucketed results (daily, weekly, monthly breakdowns) reflect your local time. 1. Open the **Explorer** in your Aftersell admin. 2. In the toolbar, click the **Timezone** selector (next to **Compare**). 3. Choose a timezone from the list, or select **Account default** to use the timezone configured in your analytics settings. 4. Run your query. Results are bucketed using the selected timezone. The selected timezone is saved with the query and restored when you reload it. > [!NOTE] > > Queries that include **Impressions**, **Accept Rate**, or **Revenue Per Visit** always bucket dates in UTC, regardless of the timezone you select. For the available zones, the Account-default rules, and the `TIMEZONE` AQL clause, see [Timezones](/aftersell/aql_reference#timezones) in the AQL reference. *** ## Saving a query as a widget Once you have a query you like, save it and add it to a report as a widget so it keeps updating - see [Manage widgets](/aftersell/reports_widgets). To remove a widget you no longer need, load it in the Explorer and click **Delete** in the title bar. Deleting a widget removes it from every report it appears on. The **Delete** button is only shown for widgets you own; global template widgets are read-only. *** ## Exporting results The Explorer shows your query results on screen as a scorecard, chart, or table - it does not download a file directly from the query view. To get the results as a file, save the query and add it to a report as a [widget](/aftersell/reports_widgets). Each widget has its own **Export to CSV** button that downloads the widget's data as a `.csv` file. For the standard Analytics-page exports (Excel and CSV), see [Exporting your data](/aftersell/analytics_in_aftersell#exporting-your-data). *** ## Need help? If you have questions about the Explorer or want to enable access, contact the Aftersell support team through the in-app chat. # Reports overview Source: https://docs.aftersell.com/aftersell/reports_overview Explore your store's performance with custom reports and the query Explorer in the Aftersell Reports section. > [!NOTE] > > Reports is in beta and is being rolled out in stages, so it is not yet enabled on every store. Some stores are switched on automatically as the rollout widens; others are enabled individually. If you don't see the Reports section in your dashboard, your store has not been included yet — contact the Aftersell support team through the in-app chat to ask about access. The Reports section is a flexible way to explore your store's performance. It has two parts that work together: * **Reports** — collections of saved queries shown as widgets, for monitoring the metrics you care about at a glance. * **The Explorer** — a query builder for asking your own questions: pick metrics, break them down by dimensions, filter, and visualize the result. *** ## Reports When you open Reports, you land on the **Reports** table listing every report available to your store. See [Manage reports](/aftersell/reports_dashboards) for creating, editing, and sharing them. *** ## Exploring your data Open the [Explorer](/aftersell/reports_explorer) to build a query from scratch — choose what to measure, how to slice it, and the time range, then view the result as a scorecard, chart, or table. Save a query to reuse it, or add it to a report as a [widget](/aftersell/reports_widgets). Queries are written in **AftersellQL (AQL)**. You build them visually, but you can also type them directly — see [Writing AQL queries](/aftersell/reports_explorer#writing-aql-queries). *** ## Need help? Questions about Reports, or want a specific report set up? Reach out to the customer support team. # Manage widgets Source: https://docs.aftersell.com/aftersell/reports_widgets Add, configure, and arrange widgets — the saved-query cards that make up a Report. A **widget** is a single saved [AftersellQL query](/aftersell/reports_explorer#writing-aql-queries) rendered as a visualization on a report. A report is simply a grid of widgets. > [!NOTE] > > A "widget" here means a widget on a Report. It is not the same as the shopper-facing [checkout widgets](/aftersell/checkout_widget_types) or [post-purchase widgets](/aftersell/post_purchase_widgets), which are upsell offers shown to your customers. *** ## Adding a widget There are two ways to add a widget to a report: * **Drag an existing widget from the Widgets sidebar.** While editing a report (click **Edit report** — see [Manage reports](/aftersell/reports_dashboards)), drag an already-created widget from the **Widgets** sidebar onto the canvas. * **Click Add widget from the report.** From the report's main view, click **Add widget** to build a new query in the Explorer and add it to the report. Once saved, your widget will be added directly to the Report canvas. *** ## Visualizations Depending on the query's shape, a widget renders as one of: * **Scorecard** — a single headline number, for queries with no breakdown. * **Line chart** — a trend over time. * **Area chart** — a trend over time with the area beneath the line filled. * **Bar chart** — a comparison across a dimension. * **Funnel chart** — drop-off across placements, or across a sequence of metrics. * **Table** — rows of values, for detailed or multi-dimension queries. The Explorer recommends a default visualization for each query, and the widget uses it. *** ## Exporting a widget Each widget has an **Export to CSV** button that downloads the widget's current data as a `.csv` file. This exports the underlying query result — the same numbers shown in the widget's chart or table — so you can work with them in a spreadsheet. *** ## Arranging widgets In edit mode you can drag widgets to reorder them and resize them on the grid. When you are done, click **Save** to keep your layout, or **Cancel** to discard your changes. *** ## Deleting a widget You can permanently delete a saved widget from the Explorer. Deleting a widget also removes it from every report it appears on. To delete a widget: 1. Open the report the widget is on. 2. Click the widget's card. This opens it in the **Explorer**. 3. Click **Delete** in the Explorer title bar. 4. Confirm the deletion in the dialog that appears. > [!NOTE] > > The Explorer has no list of saved widgets to pick from — a widget is only opened by clicking its card on a report. The rows in the edit-mode **Widgets** sidebar are drag handles for placing widgets, and cannot be clicked to open one. The widget is permanently removed and any report cards that referenced it are automatically cleaned up. > [!NOTE] > > The **Delete** button is only shown for widgets you created. Global template widgets are read-only and cannot be deleted. *** ## Need help? If you have questions about widgets, reach out to the customer support team. # Rokt Thanks loyalty loop Source: https://docs.aftersell.com/aftersell/rokt_thanks_loyalty_loop How Loyalty Loop drives repeat purchases by sending customers a discount code for your store after they sign up for a Rokt Thanks offer Loyalty Loop is a Rokt Thanks feature that drives repeat purchases on your store. When a customer signs up for a partner offer on your Thank You Page, Rokt automatically sends them a follow-up email containing a unique discount code redeemable on your store - giving them an incentive to come back and buy again. > [!NOTE] > > Loyalty Loop has not been released to merchants yet — the setting is currently visible for internal testing only, so you will not find it in your admin. When it does launch it will require your store to price in USD. *** ## How it works 1. A customer completes a purchase on your store and sees the Rokt Thanks placement. 2. They sign up for a partner offer on that placement. 3. Rokt's system processes the sign-up within 24 hours. Aftersell generates a unique discount code directly in your Shopify admin - you'll see it appear in your Shopify **Discounts** section. 4. The customer receives a follow-up email containing their discount code, redeemable on your store. The discount code is unique to each customer and generated specifically for their session. *** ## Benefits Loyalty Loop turns the revenue earned from Rokt Thanks into a tool for driving repeat purchases. The placement generates revenue from partner advertisers, which offsets the cost of the discount sent to your customers - creating a cycle that rewards loyalty without eroding your margins. Customers who sign up for an offer receive a tangible reward: a discount code they can use on their next purchase with you. *** ## Enabling Loyalty Loop Loyalty Loop can be enabled from **Settings > Rokt Network** in the Aftersell admin. When setting it up, you'll configure the following: * **Discount amount** - the value of the discount code sent to customers (minimum \$5) * **Expiry** - how long the discount code remains valid (minimum 30 days) * **Terms & Conditions** - a link to your T\&Cs, which will be included with the offer shown to customers. You can link to your existing T\&Cs page if it covers this use case, or create a new one and link it here. Once enabled, everything else happens automatically behind the scenes. As customers sign up for the offer, discount codes will be generated and will begin appearing in the **Discounts** section of your Shopify admin, where you can manage them. *** ## Deduplication and delivery To avoid sending duplicate emails, Loyalty Loop deduplicates by sign-up: each sign-up sends at most one follow-up email carrying one discount code, no matter how many times it is processed. Deduplication happens on the coupon record rather than on the mint, so if a sign-up is reprocessed an extra unused code can appear in your Shopify **Discounts** list. It is never sent to the customer and expires on its own at the end of the normal validity window. *** ## FAQ **Are the codes discount codes or gift cards?** Codes generated by Loyalty Loop are one-time use discount codes - not gift cards. **What does the discount code apply to?** The code applies to a customer's entire order, not specific items. Once used, it cannot be used again. Codes cannot be combined with other discount codes. Codes cannot be applied to subscriptions. **Can another customer use my code?** Each code is unique, but may be used by any customer email upon redemption. **Will Loyalty Loop be presented on all offers?** No, it will be presented on a select subsection of eligible offers, when most relevant to customers. *** ## Example Terms & Conditions The following is a sample snippet you can add to your existing Terms & Conditions page to cover Loyalty Loop discount codes. Adjust the details (discount amount, expiry period, store name) to match your configuration. *** **Loyalty Reward Discount Codes** From time to time, customers may receive a unique discount code via email following a purchase on our store. These codes are issued as part of a loyalty reward program and are subject to the following conditions: * Codes are single-use and expire after \[X] days from the date of issue. * Codes apply to the total order value. * Discount codes cannot be applied to subscriptions. * Codes cannot be combined with other offers or discounts unless otherwise stated. * We reserve the right to cancel or void codes in cases of suspected misuse or fraud. # Rokt Thanks payouts Source: https://docs.aftersell.com/aftersell/rokt_thanks_payouts This article outlines how earnings from Rokt Thanks are paid out. Every time a customer opts in to an offer by clicking "Yes", you generate revenue. The amount you generate depends on the number of orders placed by your customers and the number of offers they opt in to. To get started, navigate to the Rokt Thanks tab in Aftersell. > [!NOTE] > > All Rokt Thanks payout amounts are settled in USD, regardless of your store's currency. The amounts shown on the payouts page reflect your actual USD settlement amount. This may differ from the revenue figures shown on the Rokt Thanks analytics tab, which displays estimates in your store's currency. *** ## How Do I Get Paid? Rokt Thanks partner payments are handled through RCIs. You can choose between two payout methods depending on your preference. > [accordion] PayPal > > The default payout method for Rokt Thanks is via PayPal. Open the **Rokt Thanks** tab, click **Settings**, and enter your PayPal email address under **Payment method**. > > If you don't have a PayPal account, you can still enter the email address you wish to receive payments through and PayPal will help you create an account once your first payment is processed. > > > [!WARNING] > > > > Review this email carefully before saving. Once added, you can't edit it yourself in Aftersell - to change it, contact the Rokt Finance team at [ap@rokt.com](mailto:ap@rokt.com). While a requested change is being processed, the field is temporarily locked. > > ![Rokt Thanks Payment method settings with the PayPal email input field](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/rokt-thanks-payouts-payment-method-settings-paypal.gif?s=ec525991c19a3af72c7c89271e398ac3) > [accordion] Direct Deposit (Wire/ACH) > > If you'd like to receive payouts via Direct Deposit, please contact our Support team, who will submit a Finance request on your behalf. To complete setup, our Finance team will need the following information: > > * Account number > * Account name > * Bank name > * Direct deposit type (checking or savings) > > Please also provide the **best phone number** to reach you, as Finance will call to verify these details before activation. *** ## When Do I Get Paid? Revenue is paid out approximately 45 days after the end of the month it was generated in. The payment system works in three steps: * **Month 1:** Revenue generation. Offers are shown to customers on your site and revenue is accrued every time they opt in. * **Month 2:** Revenue collection. We analyze the offers that customers opted in during Month 1 and charge advertisers for these referrals. * **Month 3:** Invoice creation and payment. You will be sent an invoice detailing the exact amount of revenue to be paid out during the following month. The example below outlines how revenue generated in July will be paid out in early October: | July (Month 1) | August (Month 2) | September (Month 3) | | :- | :- | :- | | Offers are shown on your site and revenue is accrued. | Advertisers are charged for the referrals generated in July. | An invoice is sent out detailing the amount you'll be paid during the following month (October). | *** ## Is There a Minimum Payment Threshold? Yes. Minimum thresholds vary by payment method: * **PayPal:** \$100.00 minimum (default for most partners) * **Wire/ACH:** \$300.00 minimum > [!NOTE] > > Your revenue will accrue until the end of a month when it meets the minimum threshold required for payment. If your earnings in one month do not meet the threshold, they will carry over and be combined with the following month's earnings until the threshold is reached. Your first payout will be made once your accrued revenue hits the applicable threshold, provided you have a PayPal email address saved in your Rokt Thanks settings. *** **Want to go further?** * [Activating and Configuring Rokt Thanks](/aftersell/activating_and_configuring_rokt_thanks) - get Rokt Thanks set up on your store * [Rokt Thanks Settings](/aftersell/rokt_thanks_settings) - manage your Rokt Thanks configuration including your payout email # Rokt Thanks settings Source: https://docs.aftersell.com/aftersell/rokt_thanks_settings How to modify Rokt Thanks settings To configure Rokt Thanks settings, click the *Settings* button while in the *Rokt Thanks* tab. ### Payment method The default payment method for **Rokt Thanks** payouts is **PayPal**. Simply enter your PayPal email, and you’ll receive payments once your generated revenue reaches the **\$100 payment threshold** for each payout period. Please note that **PayPal applies a 4% processing fee**, which is deducted from your payout amount. For more information on payments, see our [documentation](/aftersell/rokt_thanks_payouts). * If you have previously added a PayPal account email for payouts and would like to change it, please email the Rokt Finance team at [ap@rokt.com](mailto:ap@rokt.com). *** ## Traffic allocation Use the slider to configure the allocation of traffic that will see Rokt Thanks on your confirmation page. ![Traffic allocation slider set to 100 percent controlling how many customers see the placement](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/rokt-thanks-settings-traffic-allocation-slider-100.gif?s=3cb467f531ed2b7ca90186d9210065a3) When the traffic allocation is set to 100%, Rokt Thanks will appear for every customer provided there is a relevant offer available. Reasons the placement may not appear include: * The customer is from an unsupported geography. * The customer’s browser settings are using an unsupported language. * There are no relevant offers to be displayed based on the available advertisers and the allowed vertical/sub-vertical categories. To ensure the maximum number of advertisers are available, it is recommended that only the necessary verticals or sub-verticals are blocked. *** ### **Aftersell settings** Skip storewide popup timer widget if Rokt content is available to be shown. If Rokt Thanks has content to show and a funnel with a storewide popup has also been triggered, this setting ensures that the Rokt content will be shown instead of the storewide popup. If this is unchecked, then the storewide popup will be favoured instead. * This is currently available only on the Thank you page scripts approach. #### Order tagging On the Thank you page scripts integration, Aftersell applies the Shopify order tag **`AfterSell Network Offer`** to any order where the customer **accepted** a Rokt Thanks offer. This lets you segment and filter those orders in Shopify. * There is no setting for this — tagging is always on for that integration. * Only accepted offers are tagged. An order where the placement was shown but not engaged with is not tagged. * Only orders going forward are tagged — existing orders are not backfilled. *** ### Offer control Our machine learning algorithms ensure that you show the most relevant and engaging offers to each individual. In addition, you have full control over which offer categories to show to your customers. ![Offer control panel listing industry verticals with checkboxes to allow or block offers](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/rokt-thanks-settings-offer-control-verticals.gif?s=30030f4496a9267612dbdb5167608809) By default, all industry verticals and sub-verticals are allowed except for **every sub-vertical inside your store's own vertical**, plus Retail Insurance. This is so that competitors in your vertical are blocked from displaying on your site. Your store's vertical and sub-vertical are shown read-only under **Company information** further down this page — to change them, raise a request with our support team. #### Managing verticals The offer control section includes two tabs: * **Verticals** - Standard industry categories that are available by default * **Growth verticals** - Categories that may be legally or culturally sensitive (e.g., cryptocurrency, dating, fantasy sports, sports betting, paid cashbacks and rewards programs, charities) By default, growth verticals are blocked. You can selectively allow specific growth verticals by switching to the **Growth verticals** tab and checking the categories you want to permit. Only the growth verticals that comply with Shopify's Terms of Service are available for selection. *** ## Block advertisers To block offers from particular advertisers: 1. Enter their domain name(s) in the **Block competitors** field. 2. Select **Block**. A list of all blocked advertisers will appear underneath the field once you’ve saved your changes. *** ### Offers with confirmation emails If you allow Rokt to send offer confirmation emails from your brand, customers who opt into an offer may receive a confirmation email from your brand containing a coupon code or a link to claim the advertiser’s offer. Enabling this feature helps **maximize your revenue potential** by improving offer engagement and redemption. [Learn more](https://docs.rokt.com/user-guides/rokt-ecommerce/controls/resources/customer-confirmation-emails/). # Shopify post-purchase API limitations Source: https://docs.aftersell.com/aftersell/shopify_post_purchase_api_limitations Shopify Post-Purchase Extensions API limits that decide whether a post-purchase offer appears: order and checkout requirements, payment rules, and caps. Shopify's **Post-Purchase Extensions API** has platform-level limits that decide whether a post-purchase offer can appear at all. They apply to **every** post-purchase app, not just Aftersell, and Aftersell cannot override them. When an order doesn't meet them, Shopify skips the post-purchase page (the original order still completes normally). This page is the canonical list of those limits; [Thank You Page upsells](/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell) are the standard way to reach customers whose orders can't show one. > [!NOTE] > > Shopify's own [post-purchase checkout extension documentation](https://shopify.dev/docs/apps/build/checkout/product-offers#limitations) is the **source of truth** for these limitations and may change at any time. Where this page and Shopify's disagree, Shopify's is correct. If you notice a difference, let the docs team know so we can update this page. ## Order and checkout requirements The order must meet **all** of the following, or Shopify will not show the post-purchase page: | Requirement | What it means | | - | - | | **Minimum order value** | At least \$0.50. Fully discounted or free orders don't qualify. | | **Store default currency** | The order must be placed in the store's default currency. Orders in a non-default currency or Shopify Markets market are skipped, even if the payment itself is supported. See [Does multi-currency checkout impact Aftersell?](/aftersell/does_multi_currency_checkout_impact_aftersell) | | **No duties or landed costs** | Orders that include duties or landed costs don't qualify. | | **Shipping destination country** | The order needs a shipping address with a destination country. Digital-only orders and local pickup collect no shipping address, so they can't show post-purchase offers. | | **No local delivery or pickup** | Orders using local delivery or local pickup are skipped. | | **Supported sales channel** | Only the Online Store, a supported headless or custom storefront channel, or a draft-order payment link. POS, marketplaces (for example TikTok), and subscription contract renewal orders are not supported. | ## Payment method restrictions Shopify's post-purchase API works only with specific payment methods. Unsupported methods cause the page to be skipped. The unsupported categories are: * **Buy Now, Pay Later / installments** (Klarna, Afterpay, Affirm, Sezzle, Shop Pay Installments, Zip, and similar) * **Digital wallets and accelerated buttons** (Apple Pay, Google Pay, Amazon Pay, the PayPal button, the Shop Pay button) * **Bank transfers** (iDEAL, Bancontact, Blik, Przelewy24, and similar) * **Providers that retain the CVV/CVN** (PayPal Payments Pro, Payflow Pro, Eway) * **Gift card, COD, or Shopify store credit** (any gift card payment on the order disqualifies it, even partial) For the full provider-by-provider list of supported, conditionally supported, and unsupported methods, see [Payment methods](/aftersell/payment_methods). ## Platform caps | Limit | Detail | | - | - | | **Max 3 accepted offers per checkout** | A customer can accept at most three post-purchase offers per order. The Thank You Page allows one more, separate from this cap. | | **One subscription per order** | Shopify allows only one subscription product per order, so a subscription offer is skipped when the order already contains a subscription. | | **No bundle products as upsells** | Bundle products can't be offered as post-purchase upsell items. A customer can buy a bundle in the original order and still trigger a funnel; the restriction is on the upsell product itself. | ## When Shopify skips the page anyway Even when an order meets every requirement, Shopify can still bypass the post-purchase page: * **Shopify skipped it.** Shopify occasionally bypasses post-purchase for an order with no reason exposed to Aftersell (the Order Browser shows the error code `no_activity`). This is entirely within Shopify's platform, so contact Shopify support. * **Platform load.** During flash sales or unusually high load, Shopify may delay order creation, and the page may not appear. ## Reaching ineligible orders When an order can't show a post-purchase offer for any reason above, [Thank You Page upsells](/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell) are the recommended workaround. They run on the order status page and are not subject to the post-purchase API limits, so they reach payment methods, currencies, sales channels, and order values that post-purchase can't. Product-level limits still apply: bundle products can't be upsold, and the one-subscription-per-order rule holds on the Thank You Page too. ## Related * [Why isn't my post-purchase offer displaying?](/aftersell/why_isnt_my_1_click_offer_displaying) - step-by-step troubleshooting for a specific order * [Order browser reference](/aftersell/order_browser_reference#ineligibility-reasons) - how these reasons appear per order in the Order Browser * [Payment methods](/aftersell/payment_methods) - the full supported and unsupported payment matrix # Show checkout widgets in Shop Pay Source: https://docs.aftersell.com/aftersell/show_checkout_widgets_in_shop_pay How to display checkout widgets in Shop Pay by enabling the Include app block in Shop Pay option under the Checkout behaviour dropdown. To have your checkout widgets display in Shop Pay, you must enable the "Include app block in Shop Pay" option under the "Checkout behaviour" dropdown. If you have not set up checkout widgets yet, you can [follow this guide to learn how to add checkout widgets to your checkout](/aftersell/adding_a_checkout_widget_to_your_shopify_checkout). ![Shopify checkout editor with the Include block in Shop Pay toggle highlighted](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/shop-pay-widgets-checkout-editor-include-block.png?fit=max\&auto=format\&n=SnVX3h-PpMMxQMDU\&q=85\&s=0cda22aafd3fa00dfad09767c7b61c0e) # Smart funnel reference Source: https://docs.aftersell.com/aftersell/smart_funnel_reference How Smart Funnel is evaluated: Priority-0 ordering, AI product substitution, highlighted product behavior, Thank You Page behavior, supported checkout languages, and eligibility insights. This page covers how Smart Funnel is evaluated and how it behaves, alongside the rules and edge cases that decide whether a shopper sees it. For how to turn it on and configure it, see the [Smart funnel](/aftersell/smart_funnel) guide. ## Evaluation order (Priority 0) Smart Funnel is evaluated at **Priority 0**. If a shopper meets the eligibility criteria, the Smart Funnel offer is shown before any manual funnels. If a shopper sees a Smart Funnel post-purchase offer, manual funnel post-purchase offers are suppressed by this priority rule. (Thank You Page widgets are handled separately, see [Thank You Page behaviour](#thank-you-page-behaviour) below.) ## AI recommended products Smart Funnel pulls product recommendations from your selected Product Recommendation Tool, configured under **Settings → Automatic upsells**. Under **Excluded products** on the same page, you can exclude collections: products from those collections aren't used as AI recommendations or as the most or least expensive item in the order. Recommendations also build on each other through the funnel. The first upsell and its downsell are based on the original order. After that, each upsell's first product seeds the next level: the second upsell and its downsell build on the first upsell's product, and the third upsell builds on the second upsell's product. If an earlier upsell is skipped, the next level goes back to the original order. So the products a shopper sees later in the funnel depend on what they were shown first. When your highlighted product is the first product in an upsell, it becomes the basis for the AI's recommendations at the next level. ## Highlighted product A [highlighted product](/aftersell/smart_funnel#highlight-a-product-optional) sets a preference, not a guarantee. Smart Funnel favors it when it builds offers, but how it appears depends on the offer: * **Offers with a specific product slot (single-product, multi-product, and box).** Your highlighted product fills every specific product slot, and the offer's other slots are filled as usual. In a single-product offer built on a specific product, your highlighted product is the offer. * **Offers built from AI picks, collections, or the original order.** Smart Funnel tests different offer layouts to find what converts best. Layouts whose products all come from AI recommendations, collections, or the shopper's original order (such as the most or least expensive item in it) have no slot for a highlighted product, so they never show it. Expect your highlighted product in a share of your offers rather than in all of them. Collection exclusions under **Settings → Automatic upsells** apply to the products Smart Funnel picks for you, not to your highlighted product. A highlighted product that sits in an excluded collection can still be offered. ### When your highlighted product is not shown **It is out of stock.** Smart Funnel checks the product's availability for each order. If none of its variants are available for sale at that moment, Smart Funnel falls back to AI recommendations in every highlighted product slot for that entire order, rather than showing an unavailable item. Keeping the product in stock is the most effective way to keep it in rotation. **The shopper already bought it.** Some offers skip your highlighted product when the shopper already has it in their order. A single-product offer is skipped; an offer with several products usually shows the others instead. ## Discount requirements For best performance, set a non-zero Max Discount, since the templates do not dynamically adjust based on the discount field value. A 0% Max Discount is allowed, but for 0% discount offers a manual funnel is generally a better fit. This may be improved in the future. [Box offers](/aftersell/build-a-box) follow the same discount rules as multi-product offers: their percentage discounts, including tier discounts, scale with your Max Discount. ## Thank You Page behaviour Smart Funnel governs post-purchase upsells only and does not natively support Thank You Page (TYP) upsells. Because of this, when TYP widgets are eligible to display, the system automatically references the first applicable manual funnel that contains TYP upsells. Only the TYP widgets from that funnel are displayed, even though the post-purchase offers from that funnel are not shown earlier in the customer journey. So if a shopper sees a Smart Funnel post-purchase offer, manual funnel post-purchase offers are suppressed, but TYP widgets may still appear based on manual funnel eligibility. To keep serving TYP widgets, run at least one manual funnel that contains them alongside Smart Funnel. ## Supported languages Smart Funnel shows its offers in the shopper's checkout language. It supports the same 32 languages as post-purchase offers: Arabic, Bulgarian, Chinese, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hebrew, Hungarian, Italian, Japanese, Korean, Latvian, Lithuanian, Norwegian, Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swedish, Turkish, and Ukrainian. Smart Funnel reads the **customer's checkout locale**, not your store's default language. Regional locales use their base language, so a shopper who checks out in Canadian French (`fr-CA`) sees the French offer. If the shopper checks out in a language that isn't on this list, Smart Funnel is skipped for that order and your manual funnels are evaluated instead. In the [Order Browser](/aftersell/order_browser_overview), the order's post-purchase stage shows "Smart Funnel was skipped because the buyer's language is unsupported." To keep serving offers to those shoppers, run a manual funnel that matches them, such as a [catch-all funnel](/aftersell/best_practices#set-up-a-catch-all-funnel) or a funnel with a [Customer Language trigger](/aftersell/post_purchase_triggers#customer-language). ## Eligibility and low or zero visits If your Smart Funnel is active and has allocated traffic but is getting very few or no post-purchase visits, an **info icon** (!) appears on the Smart Funnel banner. Clicking it scrolls to and expands the eligibility details panel at the bottom of the Funnels page. > [!NOTE] > > Eligibility insights are not available on every store yet. If you don't see the info icon, contact support and we can look into low or zero visits with you. > [!NOTE] > > The eligibility insights icon only appears when viewing a date range of 30 days or longer. Short or custom date ranges don't provide enough data to diagnose a problem. The icon appears when: * Your Smart Funnel is active with traffic allocated, **and** * Post-purchase visits are **0** (any traffic allocation), **or** * Post-purchase visits are **fewer than 10** with **50% or more** of traffic allocated to the Smart Funnel When you open the eligibility details panel, it lists the most likely causes: * **Shopify eligibility limits (not fixable).** Some orders can't show one-click post-purchase offers, for example orders paid with Apple Pay or Google Pay. This is a Shopify platform restriction. The panel links to Shopify's limitations documentation. * **Excluded collections (fixable).** If you've excluded collections from product recommendations in **Settings → Automatic upsells**, and every AI-recommended product falls within those excluded collections, Smart Funnel skips the offer entirely. The panel shows how many collections you've excluded and links directly to your exclusion settings. * **"Skip products in original order" combined with exclusions (fixable).** If you have both "Skip products in original order" enabled and excluded collections configured, Smart Funnel may skip offers when every recommended product is filtered out by one or both rules. The panel links to your Smart Funnel settings so you can adjust these options. # Spend threshold upsells Source: https://docs.aftersell.com/aftersell/spend_threshold_upsells Intelligently recommend products to help customers reach reward thresholds like free shipping or discounts Spend threshold upsells work with your rewards bar to automatically recommend products that help customers reach goals like free shipping, discounts, or other rewards. The system intelligently selects the most relevant product based on how close the customer is to the threshold. *** ## How it works When you add a spend threshold upsell to your checkout, the system: 1. **Calculates the gap** - Determines how much more the customer needs to spend (or how many more items they need) to reach the reward threshold 2. **Selects the best product** - Chooses from your configured product pool based on the gap: * If the customer is **already qualified** for the reward, shows the **most expensive product** to maximize revenue * If the reward is based on **item count**, shows the **cheapest product** to reduce friction (any product adds 1 item) * If the reward is based on **cart total**, shows the **cheapest product that closes the gap**, or the **most expensive product** if no single product can close the gap 3. **Applies discounts** - If you've configured a discount for the upsell, the system factors that into the product selection *** ## Requirements To use spend threshold upsells, you need: * **Rewards bar enabled** - The spend threshold feature requires an active rewards bar in your checkout * **Reward threshold configured** - Set up your reward goal (cart total or item count) in the rewards bar settings * **Product pool configured** - Choose which products the system can recommend (all products, specific collection, or specific products) *** ## Setting up spend threshold upsells ### Step 1: Enable the rewards bar 1. Open your **Checkout** editor in Aftersell 2. Open the **Upsell** widget you want to use and turn on **Show rewards bar**. The spend threshold product type is greyed out until you do — it reads "Enable "Show rewards bar" to use this option" 3. Configure your reward threshold in the same widget: * Choose **Cart total** or **Item count** as the reward basis * Set the minimum amount or item count * Customize the reward bar text and appearance ### Step 2: Add a spend threshold upsell 1. In your **Upsell** widget, click **Add product** 2. Select **Spend threshold** from the product type options 3. Configure your product pool: * **All products** - System chooses from the first 15 active products in your store * **Specific collection** - System chooses from the first 15 products in the selected collection * **Specific products** - System chooses from the list of products you select > [!NOTE] > > The **All products** and **Specific collection** pools are capped at 15 candidate products. Out-of-stock products and items already in the cart are excluded. If you need control over exactly which products can be offered, use **Specific products**. ### Step 3: Configure discounts (optional) You can add a discount to your spend threshold upsell just like any other upsell product: 1. Click **Add discount** on the upsell offer 2. Choose to **Pick existing** or **Create new** discount 3. The system will factor the discount into product selection, showing products at their discounted price when calculating which product best closes the gap *** ## Best practices * **Match your product pool to your reward** - If offering free shipping, consider featuring products that complement common purchases * **Use collections strategically** - Create a hidden collection of products that work well as threshold-closing items * **Test different configurations** - Try different product pools to see what drives the best conversion rates * **Combine with other upsells** - Use spend threshold upsells alongside specific product upsells for a comprehensive strategy * **Monitor performance** - Check your analytics to see which products are most frequently added through spend threshold upsells *** ## Troubleshooting ### Spend threshold upsells not showing If your spend threshold upsells aren't appearing: * **Check rewards bar status** - Ensure the rewards bar is enabled in your checkout * **Verify product availability** - Make sure products in your pool are in stock and available * **Review triggers** - Confirm your upsell widget triggers are configured correctly * **Check product pool** - Ensure your selected collection or products aren't empty ### Wrong products being recommended If the system is recommending unexpected products: * **Review your product pool** - Check which products are included in your collection or product list * **Verify pricing** - Ensure product prices are correct in Shopify * **Check discount configuration** - If using discounts, verify they're applying correctly * **Consider cart contents** - The system excludes products already in the cart *** ## Need help? If you have questions about spend threshold upsells, contact our support team through **live chat** or email at **[support@aftersell.app](mailto:support@aftersell.app)**. # Evaluate strategy Source: https://docs.aftersell.com/aftersell/strategies_api_reference_evaluate_strategy api/strategies.json POST /api/public/strategy/evaluate Evaluate a strategy against provided context to return the desired experience. # Product targeting API security tokens Source: https://docs.aftersell.com/aftersell/strategies_api_tokens Generate and manage security tokens to authenticate API requests for product targeting strategies Security tokens allow you to authenticate API requests when accessing your product targeting strategies programmatically. You can generate, view, and regenerate tokens directly in the Aftersell admin. ## Generating a security token To generate your first security token: 1. Navigate to **Settings → Product Strategy** in the Aftersell admin 2. Locate the **Security Token** card at the top of the page 3. Click **Generate Token** 4. Your new token will be displayed - click **Copy** to copy it to your clipboard ⚠️ **Important:** Make sure to copy your token immediately after generation. You won't be able to see it again after you leave the page. ## Viewing your token After generating a token, you can: * **Show/hide the token:** Click the eye icon to toggle visibility * **Copy the token:** Click the **Copy** button to copy it to your clipboard The token is masked by default for security. Once you navigate away from the page, the token will be permanently hidden and can only be regenerated (which invalidates the previous token). ## Regenerating a token If you need to create a new token (for example, if your current token was compromised): 1. Navigate to **Settings → Product Strategy** in the Aftersell admin 2. In the **Security Token** card, click **Regenerate** 3. Your new token will be displayed - click **Copy** to save it ⚠️ **Warning:** Regenerating a token will immediately invalidate your previous token. Any API requests using the old token will fail. Make sure to update all systems using the old token before regenerating. ## Using your security token Send your security token in the `X-Strategy-Api-Key` header on every Strategy API request. Keep your token private and secure - treat it like a password. > [!WARNING] > > Only one token can be active per store at a time. Generating a new token immediately invalidates the previous one, so a single token has to be shared by every environment that calls the API - you cannot issue separate development, staging, and production tokens. 💡 **Best practices:** * Store tokens securely (never commit them to version control) * Regenerate tokens if you suspect they've been compromised * Update every system that uses the token before you regenerate it, since the old token stops working immediately * Keep a record of when tokens were generated and where they're being used # Building Strategies Source: https://docs.aftersell.com/aftersell/strategies_building_in_app Create, configure, and manage Strategies from the Aftersell dashboard - no code required. This guide walks through building a Strategy end to end. It introduces each part you'll touch as you go; when you need the exhaustive list of every trigger, operator, action, and filter, keep the [Strategy rules reference](/aftersell/strategies_rules_reference) open alongside it. ## Navigating to Strategies Click **Strategies** in the left sidebar ([or click here](http://admin.shopify.com/apps/aftersell/strategies)) ![Aftersell left sidebar with the Strategies menu item highlighted](https://mintcdn.com/aftersell/C7CuLpiYgZTBZmK_/images/aftersell/strategies-building-menu-item.png?fit=max\&auto=format\&n=C7CuLpiYgZTBZmK_\&q=85\&s=db92cb1860012f0d0bce404d5b67800b) You'll see your existing Strategies, or an empty state prompting you to create your first. ## Creating a Strategy Click **Add Strategy** to open the Strategy editor to create a new Strategy. ![Strategies page empty state with the Add Strategy button highlighted](https://mintcdn.com/aftersell/C7CuLpiYgZTBZmK_/images/aftersell/strategies-building-add-strategy.png?fit=max\&auto=format\&n=C7CuLpiYgZTBZmK_\&q=85\&s=35068983bdcf532f86d168b4c47e6874) Click the **pencil icon** in the top left to give the Strategy a descriptive name - it's how you'll recognize it in the dashboard later. ![Strategy editor with the Edit name pencil icon highlighted](https://mintcdn.com/aftersell/C7CuLpiYgZTBZmK_/images/aftersell/strategies-building-edit-name.png?fit=max\&auto=format\&n=C7CuLpiYgZTBZmK_\&q=85\&s=ac104fa5b1e4f0d1a6c3f13029fdc7b0) From here, you build the Strategy by adding **rules**. ## Creating a rule A rule is a pair: **triggers** decide *when* it applies, and **actions** decide *what* it returns. A Strategy can hold many rules. when you've created your first strategy, it comes with an empty rule that's ready to be defined. ![Strategy editor highlighting a rule with its When and Then sections](https://mintcdn.com/aftersell/C7CuLpiYgZTBZmK_/images/aftersell/strategies-building-empty-rule.png?fit=max\&auto=format\&n=C7CuLpiYgZTBZmK_\&q=85\&s=ace73083689c84eecc5e3c5141ac9300) ### Set the triggers Triggers are the conditions a shopper's context has to meet for the rule to fire. To add one, click "Add trigger", choose a trigger type, pick an **operator**, and enter a value. For example, *Customer Tag* **equals** `VIP`. If you add multiple triggers, you'll see an AND/OR option between the triggers. This decides whether both triggers need to be true to match (AND), or if only one of them needs to be true (OR) to match. The [rules reference](/aftersell/strategies_rules_reference#triggers) lists every trigger type and the operators each one accepts. > [!WARNING] > > Not every surface sends every signal. See each surface's respective documentation to see what is and isn't available as a signal. ![Rule with two customer tag triggers combined by an AND operator](https://mintcdn.com/aftersell/C7CuLpiYgZTBZmK_/images/aftersell/strategies-building-triggers.png?fit=max\&auto=format\&n=C7CuLpiYgZTBZmK_\&q=85\&s=b3d05160d94f8a02d39c49bbc6125864) ### Set the actions Actions decide what the rule returns when it fires. Pick your products from any combination of sources. Hand-picked products, a whole collection, product attributes like tag or vendor, or a dynamic selector such as **Most popular**, **Recently purchased**, or **AI Recommendations**. Everything you choose feeds one pool, deduplicated automatically. The [rules reference](/aftersell/strategies_rules_reference#actions) covers every action type and exactly how the pool is assembled, sorted, and filtered. ![Action category menu listing Product, Dynamic, Filters, and Settings sources](https://mintcdn.com/aftersell/C7CuLpiYgZTBZmK_/images/aftersell/strategies-building-action-selection.png?fit=max\&auto=format\&n=C7CuLpiYgZTBZmK_\&q=85\&s=50f28e216cbf34c812a8232a2e40002e) ![Rule Then section with a Collection action set to VIP Exclusives](https://mintcdn.com/aftersell/C7CuLpiYgZTBZmK_/images/aftersell/strategies-building-actions.png?fit=max\&auto=format\&n=C7CuLpiYgZTBZmK_\&q=85\&s=4943a1a26f4f938257d54df41dd7017b) ## Rules ordering When a Strategy has several rules, they're evaluated top to bottom in steps - Step 1 first. Drag rules to reorder them. Products from every matching rule are pooled together, deduplicated, and trimmed to the Strategy's maximum (20 by default), so the rules nearer the top effectively get first claim on the slots. ## Configuring a catch all The **Catch all** is a special rule with no triggers that fires whenever no other rule matches - so your recommendation slot is never empty. Toggle it on and give it products the same way you would any other rule; a safe collection or a dynamic selector works well as a fallback. Leave it off, and a shopper who matches no rule simply gets nothing back. ## Applying global filters Global filters trim products out of *every* rule at once, so you don't have to repeat the same exclusion rule by rule. Open them from the **filter icon** next to the Strategy name. The common ones exclude out-of-stock products, exclude the product a shopper is currently viewing, or exclude by tag, metafield, or product ID - the [rules reference](/aftersell/strategies_rules_reference#global-filters) has the full set. ## Saving your Strategy The editor won't save while any rule is incomplete - each one needs at least a trigger (or **Always match**) and an action. Incomplete rules show an inline error telling you what's missing; fix the rule or delete it, and the Strategy saves once every rule is valid. ## Next: serve your Strategy on a surface With your Strategy saved, point a surface at it to start showing recommendations. See the [Implementing Strategies](/aftersell/implementing_strategies_post_purchase_upsells) guides for post-purchase, checkout, thank-you, and cart. # Strategies overview Source: https://docs.aftersell.com/aftersell/strategies_overview Learn what Strategies are, how they feed products to your Aftersell surfaces, and how to get started. ## What are Strategies? A Strategy is a set of rules that decides which products to recommend to each shopper based on their context. Strategies don't display anything on their own. They pick *what* to show, and your surfaces (post-purchase offers, checkout widgets, the cart) decide *where* it shows. **Build your rules once, then reuse them across your upselling surfaces.** *Strategies is available to eligible stores; check the [prerequisites](#prerequisites) to see if yours qualifies.* ## Key terms & concepts Expand the sections below to learn more about the terminology and concepts involved. > [accordion] Strategy > > A set of rules that decides which products to recommend. > [accordion] Rule > > A single trigger-action pair that defines **when** an upsell should show, and **what** upsell should show. You can have multiple rules in a Strategy. > [accordion] Trigger > > A condition on the shopper's context (product, cart, customer, location, and more) that decides **when** it matches. > [accordion] Action > > **What** selection of products, plus sorting and filtering are returned when the trigger matches. > [accordion] Catch all > > A rule with no triggers, which returns the product(s) you specify when nothing else matches. > [accordion] Context > > Information relating to your customer's session on their store. Triggers evaluate this context to determine whether the strategy should show or not. For the full catalog of triggers, actions, and filters, see the [Strategy rules reference](/aftersell/strategies_rules_reference). ## How it works 1. **You build a Strategy** - a set of rules that map a shopper's context to the products you want to recommend. 2. **You point a surface at it** - in a post-purchase, checkout, or cart offer, you choose the Strategy as the source of its products. 3. **Aftersell fills the slot** - when a shopper reaches the surface, its assigned Strategy evaluates their context and returns the products to show. ## Prerequisites Strategies is available based on your monthly order volume. When it's enabled, **Strategies** appears as its own tab in the Aftersell app navigation. If you don't see it, contact support or your account manager to check whether your store qualifies. Once you're set up, head to [Building Strategies](/aftersell/strategies_building_in_app) to create your first Strategy, then the [Implementing Strategies](/aftersell/implementing_strategies_post_purchase_upsells) guides to serve it on a surface. ## Custom surfaces If you want to power a custom storefront experience, you can call the Strategies API directly - see [Custom integration](/aftersell/implementing_strategies_custom_integration) in the Reference section. # Strategy rules reference Source: https://docs.aftersell.com/aftersell/strategies_rules_reference The complete catalog of Strategy triggers, operators, actions, filters, and evaluation mechanics behind the in-app Strategy editor. This page is the complete catalog behind the Strategy editor: every trigger and the operators it accepts, every action, the global filters, and how a Strategy is evaluated. It's the companion to the [Building Strategies](/aftersell/strategies_building_in_app) walkthrough - reach for it when you need the exhaustive detail on a specific option. A **rule** pairs **triggers** (the *when*) with **actions** (the *then*), and you can combine up to five triggers under one **AND** / **OR** toggle: with **AND** every trigger must match, with **OR** any one is enough. The sections below follow that shape - [Triggers](#triggers) and [Actions](#actions) first, then the Strategy-level controls that apply across every rule: [rule ordering](#rule-priority-and-evaluation-order), [Global filters](#global-filters), and the [Catch all](#catch-all). ## Triggers Triggers determine when a rule fires. Available trigger types: ### Product triggers Target based on the products in context (the shopper's cart, the just-completed order, or the product being viewed): * **Specific product(s)** - matches specific Shopify products by ID * **Collection** - matches products belonging to specific collections * **Tag(s)** - matches products with specific tags (e.g., "sale", "summer") * **Title** - matches the product title * **Vendor** - matches the vendor/brand name * **Type** - matches the product type field (e.g., "Apparel", "Electronics") * **Handle** - matches the product URL slug * **Metafield** - matches on custom metafield namespace/key/value pairs * **Selling plan** - matches "subscription" or "one-time" products. Only evaluates when the request context supplies a selling plan for the product - Aftersell's checkout and post-purchase upsell surfaces don't send this, so the trigger won't match there unless a custom integration supplies it explicitly ### Customer triggers Target based on who the shopper is: * **Customer tag** - e.g., "VIP", "loyalty-gold" * **Country code** - billing country * **Province code** - billing province/state * **Locale** - customer locale (e.g., "en-US") * **Accepts marketing** - marketing opt-in status * **Order count** - number of previous orders * **Total spent** - lifetime spend ### Cart triggers Target based on the overall cart state: * **Cart subtotal** - e.g., subtotal greater than \$50 * **Item count** - total quantity of items in the cart * **Line count** - number of distinct line items * **Cart attribute** - custom cart attributes set via Shopify's cart API * **Cart note** - the cart note field ### Location triggers Target based on where the shopper is shipping, and the store's currency: * **Shipping country** - shipping destination country * **Shipping province** - shipping destination province/state * **Shipping method** - selected shipping method * **Store currency** - the active store currency code ### Marketing triggers Target based on the page URL the shopper arrived on: * **URL** - matches a substring of the landing URL, so you can target a specific campaign or channel by matching a parameter embedded in the URL (e.g. `utm_source=newsletter`) ### Time triggers Target based on when the request is evaluated, in store time: * **Day of week** - the current day * **Hour of day** - the current hour ### Dynamic triggers * **Always match** - a trigger with no condition that always fires. Use it to make a rule run on every request (this is distinct from the Strategy-level [Catch all](#catch-all), which only fires when no other rule matches). > [!NOTE] > > Not every trigger is populated on every surface. Checkout, for example, only sends product and cart context - customer, location, and marketing triggers won't match there. See the [Implementing Strategies](/aftersell/implementing_strategies_post_purchase_upsells) guides for what each surface sends. ### Operators Each trigger uses an **operator** to define how the value is matched. The operators available depend on the trigger type. | Operator | Description | | - | - | | **Equals** | Matches when the field is exactly the value you specify - e.g., vendor equals "Nike". | | **Does not equal** | Matches when the field is anything other than the value you specify - useful for excluding a specific product type or vendor. | | **Contains any** | Matches when a multi-value field includes at least one value from your list - e.g., a product has any one of several collection memberships. | | **Does not contain any** | Matches when a multi-value field includes none of the values in your list - e.g., exclude products tagged "final-sale". | | **Contains all** | Matches when a multi-value field includes every value in your list - e.g., a product must have both the "sale" and "summer" tags. | | **Does not contain all** | Matches when a multi-value field is missing at least one of the values in your list. | | **Contains** | Matches when a text field includes your value as a substring - e.g., title contains "Gift". | | **Does not contain** | Matches when a text field does not include your value. | | **Greater than** | Matches when a numeric field exceeds your value - e.g., cart subtotal is greater than \$75. | | **Less than** | Matches when a numeric field is below your value - e.g., order count is less than 2 (first-time buyers). | | **Greater than or equal to** | Matches when a numeric field meets or exceeds your value - e.g., total spent is at least \$500. | | **Less than or equal to** | Matches when a numeric field is at or below your value - e.g., cart item count is no more than 3. | Not every operator is available for every trigger: * **List operators** (**Contains any / all** and their negations) apply to multi-value fields like tags, collections, customer tags, and specific products. * **Text operators** (**Equals**, **Contains**, and their negations) apply to single-value text fields like title, vendor, handle, locale, country, and URL. * **Numeric operators** apply to fields like cart subtotal, item count, line count, order count, total spent, and hour of day. Numeric operators have no "does not" variants. * A few fields support only **Equals** and **Does not equal** - selling plan, day of week, and accepts marketing. ## Actions Actions create the experience you want to deliver to the customer. This is where you decide what products to surface, how to surface them, and any additional data to pass alongside them. A rule can have multiple actions configured together to build out the full experience. Per rule, all configured actions contribute to one combined pool. For example, a rule with a specific product action, a collection action, and a tag-based action will return products from all three sources together. If a product matches multiple sources, it is deduplicated. ### Product actions The same product attributes available on the trigger side are also available when defining actions. You can return products based on: * **Specific products** - hand-pick individual products from your Shopify catalog. * **Collection** - return all products belonging to a specific collection. * **Product attributes** - return products matching criteria like tags, vendor, product type, or metafields - the same attribute types used in triggers. ### Dynamic actions Dynamic actions change what is returned based on real-time signals rather than a fixed product list. Available dynamic action types include: * **Most popular** - your store's best-performing products by sales volume, either store-wide or scoped to a collection. * **Recently purchased** - products recently purchased across the store. * **Inherit from when** - reuse the rule's own triggers (the "when") as the product selector, so the products returned match the same criteria the rule fired on. * **AI Recommendations** - personalized suggestions generated by Aftersell's recommendation model. ### Filtering actions Once the product pool is assembled, you can configure how many products are returned and in what order: * **Sort** - control which products are selected: * **Random** - a random selection. * **Price: high → low** - most expensive products are returned first. * **Price: low → high** - least expensive products are returned first. * **Amount/Limit** - set the maximum number of products to return. * **Type** - narrow the assembled product pool to a single Shopify product type. Choose **Equals** for an exact match or **Contains** for a substring match (both are case-insensitive). Only products whose product type matches the value you enter are kept; the rest are removed before the Amount/Limit is applied. > [!NOTE] > > The **Type** filter trims the product pool assembled by your product actions - it is different from the **Product type** product action, which *returns* products of a given type. Use the filter when you want to restrict what a broader action (such as a collection or dynamic action) can return. > [!NOTE] > > Sort is applied first, then Amount/Limit. For example, if your sort is set to **Random**, the full product pool is randomized before the limit is applied - so you always get a random slice, not the same products in a random order. ### Key-value actions Optionally, attach key-value pairs to a rule. When the rule matches, these are returned in `meta.data` in the API response alongside the product results. Common uses include: * Promotional banner text * Campaign labels for analytics > [!NOTE] > > If multiple rules match and emit the same key, the value from the first matching rule wins - later rules cannot override it. ## Rule priority and evaluation order Rules within a Strategy are evaluated in order, one step at a time. Step 1 is evaluated first, and so on. You can reorder rules by dragging and dropping them in the Strategy editor. The evaluation engine: 1. Evaluates each rule's triggers against the provided context. 2. Collects products from all matching rules. 3. Deduplicates and limits the result to the configured maximum (default: 20 products). ## Global filters Global filters remove products from selection eligibility across every rule in a Strategy. You can access them via the **filter icon** next to the Strategy name at the top left of the Strategy editor. Available global filters: * **Exclude out of stock** - automatically exclude any product that is currently unavailable for purchase. * **Exclude input products** - exclude the product(s) that triggered the rule (e.g., the product a shopper is currently viewing on a PDP), so you never recommend the same product the shopper is already looking at. * **Exclude by product tag** - exclude products carrying specific tags. * **Exclude by metafield** - exclude products matching a specific metafield namespace/key/value. * **Exclude by product ID** - exclude specific products by ID. * **Require stock at location** - keep only products that have available inventory at a chosen location (requires inventory and location read permissions). ## Catch all Catch all is a special rule that acts as the final step in every Strategy evaluation. It has no trigger; it fires automatically if no other rule in the Strategy matches the current request. When enabled, the Catch all ensures your recommendation slot is never empty. Its action can be configured using any of the same action types available to regular rules - specific products, collections, dynamic actions, etc. * **Enable/disable** - toggle the Catch all rule on or off for the Strategy. When disabled, requests that match no rules will return empty. * **Configure actions** - define what to return using any combination of available action types, the same as any other rule. When the Catch all fires, the API response will indicate `resolution.fallbackUsed: true`. # Subscription upgrade configuration reference Source: https://docs.aftersell.com/aftersell/subscription-upgrades-configuration-reference Rules behind the Subscription Upgrade setup wizard: API key verification, the Variant on subscription trigger, upgrade timing, and recurring discounts. This page collects the detailed rules behind the Subscription Upgrade setup wizard: how prices are derived, how the timing and discount options behave, the eligibility trigger, and why the offer product is a placeholder. For the step-by-step walkthrough, see [Setting up subscription upgrades](/aftersell/subscription-upgrades-setup). ## API key verification states In Step 1, **Test API key** validates your token against your provider, checking that it authenticates, holds all required scopes, and belongs to your store. The result shows one of two states: * **Green tick, "API key verified".** The token authenticated, all required scopes are present, and the token belongs to your store. **Continue** is enabled. * **Red cancel icon.** The check did not come back clean. The message beside the icon says which of two things happened: your provider **rejected** the token (revoked, or missing required scopes, and the message names the specific problem), or Aftersell **could not complete the check** ("Could not verify the API key. Please try again."), which is a failed call rather than a bad token. Fix the token if it was rejected; otherwise just test again. There is no third, softer state, and a could-not-verify result looks exactly like a rejection, so read the message rather than the icon. **Continue** stays disabled until the check comes back green. Editing the provider or the token clears the previous result, so re-test after any change. This gate exists to prevent subscription upgrade failures that would otherwise only surface after a customer has been charged. ## The eligibility trigger: Variant on subscription The wizard automatically wires a single trigger for you; you do not need to set it up by hand: | Trigger | Setting | | - | - | | **Variant on subscription** | Set to your eligible (target) variant. Fires only when that variant is in the order **on a subscription line**. | All enabled triggers use AND logic: every condition must be met for the funnel to show. You can layer additional optional triggers on top in the funnel editor's **Triggers** step (grouped under a collapsible **Additional triggers** section that shows a count and opens automatically when optional triggers are set). > [!WARNING] > > **Don't replace this with a Product trigger plus a Subscription trigger.** That older combination is two independent conditions, so an order containing your trigger product as a *one-time* purchase alongside an *unrelated* subscription item satisfies both: the funnel fires, and the upgrade then fails downstream because there is no matching subscription to change. **Variant on subscription** is a single condition that can't come apart that way, and the wizard migrates older funnels off the combo automatically. > [!WARNING] > > Without a product-specific trigger, a funnel may show to customers who don't have the eligible subscription product in their order. That wastes impressions and produces a subscription modification that silently fails: the offer product is added to the order, but no subscription is changed in Recharge, Skio, Loop, or Stay AI. > [!WARNING] > > If **Show this funnel for all customers** is enabled, it overrides all other triggers and the funnel fires for every checkout. This is not recommended for subscription upgrade funnels. ## Which price the Recurring subtotal shows The **Recurring subtotal** in the offer tells the customer what their next renewal will cost. Which product that price is taken from depends on the upgrade type: | Upgrade type | Price comes from | | - | - | | Change delivery or billing frequency | The **trigger** product | | Replace with a different subscription product | The **replacement** product | | Both, change frequency and replace subscription product | The **replacement** product | | Add another subscribable item to subscription | The **added** item | This is the most common source of confusion. A frequency-only upgrade keeps the same product by design, so its recurring subtotal can only ever show the trigger product's price, whatever frequency you set. If you expected a different product's price there, you most likely want **Both, change frequency and replace subscription product** instead. The quantity used is taken from **Override subscription quantity**, which appears only on the replacement types. On a frequency-only upgrade it is always 1. ## Upgrade timing By default an upgrade takes effect from the customer's **next billing cycle**, keeping their existing renewal date. If the timing option is enabled for your store, a checkbox appears under the frequency fields: > **My fulfillment provider ships the upgraded item on the current order** Ticking it starts the new billing interval immediately rather than at the next renewal, and it unlocks the **One-time upgrade price** field in Step 4. > [!WARNING] > > Aftersell does not change the order the customer just placed. This setting only moves the billing interval. Tick it only if your fulfillment provider is set up to recognize the upgrade's placeholder product and ship the upgraded item on the current order. > [!NOTE] > > This checkbox is off by default and is not available on every store. It appears only on the **Change delivery or billing frequency** and **Both, change frequency and replace subscription product** upgrade types, and only once the option has been enabled for your store. Contact support through the in-app chat if you need it. ## Recurring discount An optional incentive applied to **every future renewal** of the upgraded subscription (not just the first cycle). Not available for the add-item type. How the field appears depends on whether the selected selling plan has stepped pricing policies: * **When a selling plan with discount tiers is selected** (for example, a plan that applies \$20 off on the first charge and \$10 off from the second charge onward), the free-entry field is replaced by a list of radio buttons, one per tier. Each option shows the discount amount and the charge range it applies to (for example, "Charge 1" or "Charge 2 onward"). Select the tier whose price you want on every renewal of the upgraded subscription. The selected tier, not the plan, sets the renewal price: Aftersell applies this discount to the upgraded subscription itself, not as a second discount on top of the plan. * **When no selling plan is selected, or the selected plan has no discount tiers**, the standard free-entry field appears. Enter the amount and choose **Percentage** or **Fixed amount**. ## One-time upgrade price, by upgrade type The **One-time upgrade price** is what the customer pays on this Shopify order when they accept. * On the **Change delivery or billing frequency** and **Both** types it is locked at `0` by default, because your subscription provider charges at the end of the current billing cycle and the placeholder product appears on the Shopify order at \$0.00. It becomes editable only when the [upgrade-timing checkbox](#upgrade-timing) in Step 3 is ticked. * On **Replace with a different subscription product** and **Add another subscribable item to subscription** the timing checkbox does not apply, so the price field is always editable. What to put in it depends on the upgrade type: * **Frequency, replacement, or both:** the price *difference* between the original and the upgraded subscription. The customer keeps their subscription and this charge covers the delta. * **Add another subscribable item:** the charge for the added item on this order. Nothing is being swapped, so there is no difference to compute: this is simply what the customer pays now for the new item, which then recurs with their subscription. See [Adding an item to an existing subscription](/aftersell/subscription-upgrades-add-item). **First-order discount.** An optional discount applied only to this upgrade purchase, entered as a percentage (`%`) or a fixed amount. It sits beside **One-time upgrade price** and appears whenever that field is editable, on both the **Create new** and **Pick existing** tabs. On the add-item type the field still appears but is always saved as `0`; add-item offers never carry a discount, so set the price you want on the offer product instead. ## Why the offer product is a placeholder The offer product is a **visual placeholder only**, not a real product the customer buys. Shopify does not allow a subscription product to be shown as a post-purchase upsell after an order that already contains a subscription, so Aftersell captures the price between upgrades with a non-subscription placeholder SKU instead. * The image, title, and price you set appear in the offer card. * On accept, the displayed price is charged on the Shopify order and Recharge, Skio, Loop, or Stay AI applies the actual upgrade to the subscription on its next cycle. * If you **Pick existing** instead of creating one, the product must support one-time purchase; subscription-only products are filtered out of the picker. # Subscription upgrades fulfillment & 3PL mapping Source: https://docs.aftersell.com/aftersell/subscription-upgrades-fulfillment The offer product on the Shopify order is a placeholder, not a real product to ship. Your fulfillment provider (3PL) needs to know what to actually send the customer when an upgrade is accepted. ## Mapping the placeholder to a real product Aftersell does not handle the fulfillment side of subscription upgrades. You need to sync with your 3PL provider to confirm the right mapping is in place on their end. In most cases this means: * Mapping the offer product (the placeholder) to the upgraded product the customer should receive. * Confirming the upgrade flows through correctly when the subscription is updated in Recharge, Skio, Loop, or Stay AI. ## If your 3PL integrates with your subscription platform If your 3PL integrates directly with your subscription platform (Recharge, Skio, Loop, or Stay AI), the behaviour may vary depending on the upgrade configuration: * **For most upgrades**, the customer's existing subscription is updated in place and keeps the same subscription ID, so direct integrations pick up the change correctly. * **For prepaid conversions**, Recharge and Skio cancel the original subscription and create a new one to apply the prepaid plan. * **For a single line of a multi-line subscription**, Skio and Loop cannot re-time one line in place. They create a new subscription holding that line and retire it from the original — Skio sets the old line's quantity to `0`, Loop removes it. If it was the original's last active line, Loop cancels the original outright. In both of these cases the upgraded item ends up under a **different subscription ID**, so integrations that rely on stable subscription IDs may need to re-sync after that type of upgrade. This is why it is best to always run a [test order](/aftersell/subscription-upgrades-testing), confirm everything is working as expected, and check in with your 3PL provider for any setup or mapping questions. # Subscription upgrades integrations Source: https://docs.aftersell.com/aftersell/subscription-upgrades-integrations A Subscription Upgrade never changes a subscription inside Aftersell alone. The actual change — a new frequency, a swapped product, or a recurring discount — is applied inside the subscription platform that powers your store's subscriptions. The connection between Aftersell and that platform is the **integration**. ## Why an integration is required When a customer accepts an upgrade, two things happen in parallel: * **In Shopify**, Aftersell adds the offer product (a placeholder line item) to the order. * **In your subscription platform**, Aftersell calls the provider's API to modify the customer's existing subscription. That second step only works if Aftersell is connected to your provider with a valid API token that holds the right permissions. This is why [Step 1 of the setup wizard](/aftersell/subscription-upgrades-setup#step-1-connect-provider) asks you to pick a provider and paste an API token before you can build the offer. Without a working integration, the offer product would be added to the order but no subscription would change. ## Supported platforms Subscription Upgrades is currently compatible with four platforms. Each has its own token scopes, capabilities, and quirks, so follow the dedicated guide for the platform you use. > [card] [Recharge](/aftersell/subscription-upgrades-recharge) > > All upgrade types. Prepaid and postpaid. Near real-time sync. > [card] [Skio](/aftersell/subscription-upgrades-skio) > > All upgrade types. Prepaid and postpaid. Near real-time sync. > [card] [Loop](/aftersell/subscription-upgrades-loop) > > All upgrade types. Postpaid only. > [card] [Stay AI](/aftersell/subscription-upgrades-stay) > > All upgrade types. Prepaid plans cannot be modified. ## If you use a different subscription app If you use a subscription app other than Recharge, Skio, Loop, or Stay AI, you cannot use Subscription Upgrades at this time. That means you cannot offer an upsell that modifies a customer's existing subscription, whether that is changing the delivery or billing frequency, swapping to a different subscription product, or both. You can, however, still use other post-purchase offer types: * [Subscription Upsell](/aftersell/subscriptions_in_post_purchase_offers), to add a new subscription line item to a one-time order. * [Replacement Upsell](/aftersell/replacement_upsells), to swap a one-time product in the order for another product. This covers one-time to one-time (including the same product in a different quantity or variant) and one-time to subscription (the customer's order becomes a subscription order instead of a one-time order). Replacement Upsell cannot operate on a subscription line item in the order. If the original purchase was a subscription, use Subscription Upgrade instead. ## Related * [Overview](/aftersell/subscription-upgrades) — how Subscription Upgrades work end to end. * [Setup & configuration](/aftersell/subscription-upgrades-setup) — connect your provider and build the offer. # Subscription upgrades limitations & important notes Source: https://docs.aftersell.com/aftersell/subscription-upgrades-limitations Constraints before launching a Subscription Upgrade funnel: one change per flow, prepaid conversion behavior, recurring discounts, and add-item limits. Review these constraints and behaviours before you launch a Subscription Upgrade funnel. They explain the edges of what the feature can and cannot do, and prevent the most common surprises. ## Important notes * **One subscription upgrade offer per funnel.** Each funnel supports at most one subscription upgrade offer. The **Subscription upgrade** option in the add-offer menu shows a used count and is disabled once the limit is reached. To add a different upgrade, remove the existing one first. This limit exists because two upgrade offers would compete for the same subscription line. * **One subscription change per post-purchase flow.** Only one subscription offer can be accepted per post-purchase page. If your funnel has multiple subscription-related steps, only the first accepted offer goes through. The funnel editor warns when it detects this conflict. * **Subscriptions only.** This feature only fires when the customer's order contains the subscription version of the eligible product. It will not fire for one-time purchases of the same product. * **Frequency on replacements.** When using **Replace with a different product**, the new item inherits the original subscription's frequency unless you also pick **Both – change frequency and replace product**. * **Multi-product upsells.** Subscription upgrade settings are configured per product. If you are offering multiple products in one upsell, configure each individually. * **Recurring discount applies to every future renewal.** Unlike a one-time discount, this stays in effect on every renewal of the upgraded subscription. * **Prepaid conversion with partial credit is not supported.** If a customer already paid for part of a prepaid cycle, Aftersell cannot pro-rate the remaining shipments, and the original subscription is **never refunded**. On Recharge, converting a subscription to a prepaid plan cancels the original and recreates it on the new plan; if the upgrade is set to start immediately, Aftersell also creates a single-charge \$0 bridge subscription to cover the deliveries the customer has already paid for, so nothing is dropped between the old cycle and the new plan's first charge. A replacement that does not move the customer onto a prepaid plan is applied to the existing subscription in place. ## Add-item upgrades The **Add another subscribable item to subscription** type has its own constraints: * **No discounts.** Add-item offers do not support a first-order or recurring discount. The recurring-discount section is hidden on this type; the **First-order discount** field in Step 4 still appears but is always saved as `0`. Set the price you want on the Step 4 offer product instead. * **Not supported on prepaid Skio or Loop subscriptions, and only Skio is validated.** Skio rejects adding a recurring line to a prepaid subscription; Aftersell blocks the offer at save time when every selling plan on the trigger variant is prepaid, and warns when only some are. The Loop integration does not handle prepaid either, but it is not covered by that save-time check — the offer saves and fails on accept instead. * **Failed calls are retried.** Add-item is part of the automatic retry workflow; a per-provider dedupe guard keeps a replay from adding the item twice. Contact support only if the failure is reported as needing manual reconciliation. * **Adding an item the customer already subscribes to increases that line's quantity** instead of creating a second line. * **Recharge creates a second subscription** rather than adding a line, because it has no add-a-line API. The customer sees two subscriptions on a matching cadence in their portal. For the full behaviour, see [Adding an item to an existing subscription](/aftersell/subscription-upgrades-add-item). ## Subscription upsells on subscription orders Shopify does not allow a post-purchase upsell to add a subscription to an order that already contains one. With Recharge, Skio, Loop, or Stay AI connected, Aftersell creates the new subscription in your provider instead, so subscription offers still reach existing subscribers. Notes and constraints: * **A provider connection is required.** Without one, subscription offers on subscription orders are dropped (subscription-only products) or downgraded to one-time. * **Prepaid plans are unavailable on Loop.** Loop cannot create prepaid subscriptions through this integration, so prepaid plans are hidden from the offer on Loop stores. * **The customer ends up with two independent subscriptions**, each managed separately in the provider portal. * **This does not apply to Subscription Upgrade offers**, which modify the existing subscription rather than adding a new one. See [upselling existing subscribers](/aftersell/subscription-upsell-existing-subscribers) for the full details. ## Template restrictions by provider The **Prepay for 3 months** starter template sets a prepaid cadence (monthly delivery, quarterly billing). This template is not available on Loop stores because supported frequencies, sync timing, and whether selling plans must pre-exist vary by provider — see each provider's integration guide for details. If you select this template on a Loop store, the wizard blocks it before the confirmation step. ## Provider-specific limitations Each subscription platform behaves a little differently — supported frequencies, whether selling plans must already exist, and sync timing vary by provider. For the full per-provider details, see the integration guides: * [Recharge](/aftersell/subscription-upgrades-recharge) * [Skio](/aftersell/subscription-upgrades-skio) * [Loop](/aftersell/subscription-upgrades-loop) ## Related * [Setup & configuration](/aftersell/subscription-upgrades-setup) * [Fulfillment & 3PL mapping](/aftersell/subscription-upgrades-fulfillment) * [Troubleshooting](/aftersell/subscription-upgrades-troubleshooting) # Subscription upgrades with Loop Source: https://docs.aftersell.com/aftersell/subscription-upgrades-loop Step-by-step guide to connecting Loop and setting up Subscription Upgrades in Aftersell, including Loop-specific limitations. This page covers everything specific to using **Loop** with Subscription Upgrades, including its unique limitations. For a full overview of how Subscription Upgrades work, see [Subscription Upgrades](/aftersell/subscription-upgrades). ## Supported features Loop supports all Subscription Upgrade types: * Change delivery or billing frequency * Replace with a different product * Both – change frequency and replace product * Add another subscribable item to subscription (see [Add an item](/aftersell/subscription-upgrades-add-item)) * Postpaid frequencies only (prepaid is not supported — see [Limitations](#loop-specific-limitations) below) ## Loop-specific limitations * **Billing frequency must equal delivery frequency.** Loop does not support prepaid subscriptions through this integration. The billing frequency field is disabled and automatically synced to the delivery frequency. This is the biggest constraint to be aware of if your store relies on prepaid plans. ## Generating your Loop API token 1. Open the Loop app and navigate to **Settings** in the bottom left. 2. Under **Admin**, click **API Tokens**. 3. Set the permissions Aftersell needs: **Read and Write** on Subscription contracts, and **Read** on Orders and Selling plans. Write access is only required for subscriptions. 4. Click **Generate New Token**. 5. Provide a name, select the appropriate scopes, and click **Generate Token**. 6. Click **Show Token** to view and copy your key. Treat it like a password and store it somewhere safe. For more details, see [Loop's API documentation](https://loop.app/docs). ## Connecting Loop in the setup wizard When you reach **Step 1: Connect provider** in the Subscription Upgrade wizard: 1. Select **Loop** from the **Subscription provider** dropdown. 2. Paste your API token into the **API token** field. 3. Click **Test API key**. Aftersell validates the token, checking that it authenticates correctly, holds all required scopes, and belongs to your store. 4. Once the test passes (green check), click **Continue** to move to Step 2. The test result shows one of two states: * **Green tick — "API key verified".** the token authenticated, all required scopes are present, and the token belongs to your store. **Continue** is now enabled. * **Red cancel icon.** The check did not come back clean. Read the message beside the icon: either the token was rejected or is missing required scopes. The message names the specific missing scopes. Fix the token in Loop and test again. or Aftersell could not complete the check ("Could not verify the API key. Please try again."), which is a failed call rather than a bad token — in that case just test again. A could-not-verify result looks exactly like a rejection, so go by the message rather than the icon. **Continue** stays disabled until the check comes back green, and editing the provider or the token clears the previous result. ## Keeping multi-product subscriptions intact By default, when a frequency or frequency-and-product upgrade applies to a customer with two or more active lines on their Loop subscription, Aftersell splits the upgraded product into a new subscription. This keeps the other items on their original billing cadence. If the other products on the subscription are add-ons to the upgraded product (rather than standalone subscriptions), you can enable **Don't split multi-product subscriptions** on the offer. When this is on, Aftersell retimes the whole contract to the new frequency instead of splitting it. **What to expect when this setting is on:** * The other products on the subscription move to the new frequency too. * Those products keep the discount from their original frequency's selling plan, but at the new cadence. * Aftersell does not guarantee correct pricing for sibling items — if a sibling product is on a fixed-price plan with no matching plan at the new frequency, it keeps its original absolute price at the new cadence. > [!WARNING] > > Only enable this when the other products are add-ons to the upgraded product. If they are independent subscriptions, use the default split behavior so each product stays on its own billing schedule. This setting is available for **frequency** and **frequency + product** upgrade types on Loop only. It appears as a checkbox in the offer settings panel. ## Before you configure the upgrade (Step 3) When configuring a frequency change, you can either pick an existing selling plan or set the frequency manually: * **Use an existing selling plan.** Pick from the selling-plan dropdown. The plan must already exist and be active in your Loop dashboard. * **Set the frequency manually.** Enter the delivery frequency yourself. Loop accepts any cadence without requiring a matching selling plan. You can also apply a recurring discount when using a manual frequency. > [!NOTE] > > If you set the frequency manually and the customer's subscription has two or more active product lines (a multi-product or bundle contract), the upgrade will fail unless a matching selling plan exists for the target frequency. See [Limitations](#loop-specific-limitations) for details. ### Selecting a recurring discount tier Some Loop selling plans apply different discounts at different points in the subscription — for example, \$20 off the first charge and \$10 off from the second charge onward. When you select a plan like this, the **Recurring discount** field is replaced by a list of radio buttons showing each of the plan's discount tiers with its charge range (for example, "Charge 1" or "Charge 2 onward"). Aftersell applies the selected discount directly to the upgraded subscription, so the selected tier, not the plan, sets the renewal price. It can appear in Loop as an **AfterSell Upgrade Discount** line, which is this discount, not an extra one. Select the tier whose price you want on every renewal of the upgraded subscription. The selected tier is saved with the offer and applied when a customer accepts the upgrade. If the selected plan has no discount tiers, or you are setting the frequency manually, the standard free-entry discount field appears instead. ## Verifying an upgrade in Loop After placing a test order and accepting the upgrade offer: Go to **Subscriptions** in your Loop dashboard and find the customer's subscription. Loop's upgrade calls are synchronous, so there is no processing delay on Aftersell's side — the change is applied at Loop the moment the call returns. Loop's own subscription *list* can take a little longer to catch up, so if it isn't there yet, wait a few minutes and refresh before treating it as a failure. If the change isn't there, it didn't land — see below. ## Troubleshooting Loop-specific issues **I cannot change the billing frequency** This is expected. Loop does not support prepaid subscriptions through this integration. The billing frequency field is disabled and automatically synced to the delivery frequency. **The upgrade was accepted but the subscription was not modified** If the subscription is unchanged, the most common causes are: * You set the frequency manually and the customer's subscription has two or more active product lines. In this case, Loop requires a matching selling plan for the target frequency. Create the selling plan in Loop, or switch to **Use an existing selling plan** in the offer configuration. * You used **Use an existing selling plan** and the selected selling plan no longer exists in your Loop dashboard. Create the selling plan in Loop and retry. * Your API token is expired or lacks the required permissions: **write** on Subscription contracts, **read** on Orders and Selling plans. Go to **Step 1: Connect provider**, re-test your key, and check the error message for the specific missing scopes. * The eligible product in the funnel does not match what the customer actually subscribed to. Aftersell automatically retries failed provider calls in a background workflow. If all retries fail, contact support with your store URL, the Shopify order ID, the customer's email, the approximate time the upgrade was accepted, and the provider you are using. **The selling plan dropdown is empty** The "Use an existing selling plan" option pulls plans directly from Loop. If the dropdown is empty: * Confirm selling plans are configured in your Loop dashboard. * Make sure your API token has **Read** access to Selling plans. * Go back to **Step 1: Connect provider**, re-test your API key, and continue. **Temporary in-progress lines appear in my Loop dashboard** This is expected when a multi-line subscription upgrade uses the default split behavior. Loop handles them in two steps (split, then remove), which can surface temporary lines during the 24-hour sync window. They resolve automatically once the sync completes. If you want to avoid the split entirely, see [Keeping multi-product subscriptions intact](#keeping-multi-product-subscriptions-intact). *** ← Back to [Subscription upgrades overview](/aftersell/subscription-upgrades) · [Setup & configuration](/aftersell/subscription-upgrades-setup) · [What are integrations?](/aftersell/subscription-upgrades-integrations) # Subscription upgrades with Recharge Source: https://docs.aftersell.com/aftersell/subscription-upgrades-recharge Step-by-step guide to connecting Recharge and setting up Subscription Upgrades in Aftersell. This page covers everything specific to using **Recharge** with Subscription Upgrades. For a full overview of how Subscription Upgrades work, see [Subscription Upgrades](/aftersell/subscription-upgrades). ## Supported features Recharge supports all Subscription Upgrade types: * Change delivery or billing frequency * Replace with a different product * Both – change frequency and replace product * Add another subscribable item to subscription (see [Add an item](/aftersell/subscription-upgrades-add-item)) * Prepaid and postpaid frequencies ## Generating your Recharge API token 1. Log in to your Recharge merchant portal. 2. Navigate to **Tools & Apps → API Tokens**. 3. Click **Create an API Token**. 4. Enter a name and contact email. 5. Set the permissions Aftersell needs: **Read and Write** on Subscriptions, and **Read** on Orders and Plans. No Products scope is required. 6. Click **Save** and copy the API key. The token must hold all four scopes: `read_orders`, `read_subscriptions`, `write_subscriptions`, and `read_plans`. Aftersell checks for all four when you test the key and names any missing ones in the error message. For more details, see [Recharge's API documentation](https://docs.rechargepayments.com/). ## Connecting Recharge in the setup wizard When you reach **Step 1: Connect provider** in the Subscription Upgrade wizard: 1. Select **Recharge** from the **Subscription provider** dropdown. 2. Paste your API token into the **API token** field. 3. Click **Test API key**. Aftersell validates the token, checking that it authenticates correctly, holds all required scopes, and belongs to your store. 4. Once the test passes (green check), click **Continue** to move to Step 2. The test result shows one of two states: * **Green tick — "API key verified".** the token authenticated, all required scopes are present, and the token belongs to your store. **Continue** is now enabled. * **Red cancel icon.** The check did not come back clean. Read the message beside the icon: either the token was rejected or is missing required scopes. The message names the specific missing scopes. Fix the token in Recharge and test again. or Aftersell could not complete the check ("Could not verify the API key. Please try again."), which is a failed call rather than a bad token — in that case just test again. A could-not-verify result looks exactly like a rejection, so go by the message rather than the icon. **Continue** stays disabled until the check comes back green, and editing the provider or the token clears the previous result. ## Verifying an upgrade in Recharge After placing a test order and accepting the upgrade offer: Go to **Customers** in your Recharge dashboard, find the customer, and open **Subscriptions**. The active subscription should reflect the new frequency, product, or discount immediately. Recharge updates in near real-time after acceptance. ## Troubleshooting Recharge-specific issues **The upgrade was accepted but the subscription was not modified** The most common causes: * Your API token is expired or lacks the required permissions. The token must have `read_orders`, `read_subscriptions`, `write_subscriptions`, and `read_plans`. Go to **Step 1: Connect provider**, re-test your key, and check the error message for the specific missing scopes. * The eligible product in the funnel does not match what the customer actually subscribed to. Aftersell automatically retries failed provider calls in a background workflow. If all retries fail, contact support with your store URL, the Shopify order ID, the customer's email, the approximate time the upgrade was accepted, and the provider you are using. **The selling plan dropdown is empty** The "Use an existing selling plan" option pulls plans directly from Recharge. If the dropdown is empty: * Confirm selling plans are configured in your Recharge dashboard. * Make sure your API token has `read_plans` scope. * Go back to **Step 1: Connect provider**, re-test your API key, and continue. *** ← Back to [Subscription upgrades overview](/aftersell/subscription-upgrades) · [Setup & configuration](/aftersell/subscription-upgrades-setup) · [What are integrations?](/aftersell/subscription-upgrades-integrations) # Subscription upgrades with Skio Source: https://docs.aftersell.com/aftersell/subscription-upgrades-skio Step-by-step guide to connecting Skio and setting up Subscription Upgrades in Aftersell. This page covers everything specific to using **Skio** with Subscription Upgrades. For a full overview of how Subscription Upgrades work, see [Subscription Upgrades](/aftersell/subscription-upgrades). ## Supported features Skio supports all Subscription Upgrade types: * Change delivery or billing frequency * Replace with a different product * Both – change frequency and replace product * Add another subscribable item to subscription (see [Add an item](/aftersell/subscription-upgrades-add-item)) * Prepaid and postpaid frequencies ## Generating your Skio API token 1. In your Skio dashboard, go to **API & Integrations → API**. 2. Enter a name for your new API key and click **Generate API key**. 3. Copy the key immediately. It will only be shown once. 4. Skio issues a single full-access API key, so there are no separate scopes to select. The key grants the subscription edit, create, and cancel access the upgrade needs. For more details, see [Skio's API documentation](https://docs.skio.com/). ## Connecting Skio in the setup wizard When you reach **Step 1: Connect provider** in the Subscription Upgrade wizard: 1. Select **Skio** from the **Subscription provider** dropdown. 2. Paste your API token into the **API token** field. 3. Click **Test API key**. Aftersell validates the token, checking that it authenticates correctly and belongs to your store. 4. Once the test passes (green check), click **Continue** to move to Step 2. The test result shows one of two states: * **Green tick — "API key verified".** the token authenticated and belongs to your store. **Continue** is now enabled. * **Red cancel icon.** The check did not come back clean. Read the message beside the icon: either the token was rejected or does not have access to your Skio account. Generate a fresh key in Skio and test again. or Aftersell could not complete the check ("Could not verify the API key. Please try again."), which is a failed call rather than a bad token — in that case just test again. A could-not-verify result looks exactly like a rejection, so go by the message rather than the icon. **Continue** stays disabled until the check comes back green, and editing the provider or the token clears the previous result. ## Verifying an upgrade in Skio After placing a test order and accepting the upgrade offer: Go to **Subscriptions** in your Skio dashboard and find the customer's subscription. The line item, interval, and selling plan should reflect the change immediately. Skio updates in near real-time after acceptance. ## Troubleshooting Skio-specific issues **The upgrade was accepted but the subscription was not modified** The most common causes: * Your API token is expired or no longer valid. Skio uses a single full-access key, so generate a fresh key in Skio, go to **Step 1: Connect provider**, and re-test it. * The eligible product in the funnel does not match what the customer actually subscribed to. Aftersell automatically retries failed provider calls in a background workflow. If all retries fail, contact support with your store URL, the Shopify order ID, the customer's email, the approximate time the upgrade was accepted, and the provider you are using. **The selling plan dropdown is empty** The "Use an existing selling plan" option pulls plans directly from Skio. If the dropdown is empty: * Confirm selling plans are configured in your Skio dashboard. * Make sure your API key is valid and still has access to your Skio account. * Go back to **Step 1: Connect provider**, re-test your API key, and continue. *** ← Back to [Subscription upgrades overview](/aftersell/subscription-upgrades) · [Setup & configuration](/aftersell/subscription-upgrades-setup) · [What are integrations?](/aftersell/subscription-upgrades-integrations) # Subscription upgrades with Stay AI Source: https://docs.aftersell.com/aftersell/subscription-upgrades-stay Connect Stay AI to Subscription Upgrades in Aftersell: generate an API key, use the setup wizard, verify upgrades, and review Stay AI-specific limitations. This page covers everything specific to using **Stay AI** with Subscription Upgrades, including its unique limitations. For a full overview of how Subscription Upgrades work, see [Subscription Upgrades](/aftersell/subscription-upgrades). ## Supported features Stay AI supports all Subscription Upgrade types: * Change delivery or billing frequency (applied to the whole subscription) * Replace with a different product * Both - change frequency and replace product * Add another subscribable item to the subscription (see [Add an item](/aftersell/subscription-upgrades-add-item)). If the customer already subscribes to that product, Stay increases its quantity instead of adding a new line (this has a price-match condition - see the limitations below). * Postpaid (pay-per-delivery) frequencies, including moving a postpaid subscription onto a pay-upfront plan (with the conditions below) Product swaps are supported **except onto a product sold only on pay-upfront plans** - see the prepaid limitation below. ### Moving a subscription onto a pay-upfront plan Switching a postpaid subscription to a pay-upfront (prepaid) plan is supported, with two conditions: * **The pay-upfront plan must already exist in Stay AI and be assigned to the product.** Aftersell cannot create one; the offer only lets you pick from plans already set up in Stay AI. * **The move creates a new subscription and cancels the old one.** Stay makes this change by creating a new subscription on the pay-upfront plan and cancelling the original, so the subscription gets a **new reference**. Warehouse, 3PL, or reporting tools that track subscriptions by reference need to re-sync. See [Fulfillment & 3PL mapping](/aftersell/subscription-upgrades-fulfillment). ## Stay AI-specific limitations * **Prepaid (pay-upfront) subscriptions cannot be modified.** Stay does not allow any change to a subscription the customer has paid upfront for, whatever the upgrade type. If a customer on a prepaid plan accepts an upgrade offer, the upgrade is cancelled and they are refunded, so the subscription is left untouched. For the same reason, you cannot swap a subscription onto a product that is only sold on pay-upfront plans. * **Cancellations are limited to one app per account.** Stay sends cancellation updates to only **one app per account**. If another app or integration registered for Stay's cancellation webhook before Aftersell, Aftersell cannot receive those updates, and the [Subscriptions cancelled chart](/aftersell/analytics_metrics_reference#subscriptions-cancelled-chart) will not reflect Stay cancellations. The API key you connect must include the **Webhooks** permission (see below) for cancellation tracking to work at all. * **A frequency change applies to the whole subscription.** Stay has one schedule per subscription, so changing how often it arrives moves every product on it. When the subscription contains two or more products, you must turn on **Keep on existing subscription** on the offer; otherwise the frequency upgrade is refused and the shopper is refunded. This is only needed for frequency changes - product swaps and add-ons are unaffected and work without it. * **Adding more of a product the customer already subscribes to needs a matching price.** When the add-on is a product the customer already has, Stay increases its quantity rather than adding a line - but only if the offer's price matches what the customer already pays for it. If the prices differ (for example the add-on offers 20% off while their plan is 10% off), the upgrade is refused and the subscription is left unchanged. Give the add-on the same discount as the customer's plan, or offer a different product (a different product is unaffected). * **Currency must match your store's pricing.** If the customer's subscription bills in a currency your store does not price in, the upgrade is refused. * **Duplicate subscriptions from one order cannot be disambiguated.** If a single order started two Stay subscriptions that both contain the offer's product, Aftersell cannot tell which one the customer meant, and the upgrade is refused rather than applied to the wrong contract. * **Rate limits cap throughput.** Stay allows 60 requests per minute per account. One upgrade takes four to six requests, so a store tops out around 10 to 15 upgrades per minute at peak. ## Generating your Stay AI API key 1. In your Stay AI dashboard, go to **Account → API tokens → Add API key**. 2. When creating the key, select **All permissions**. Aftersell needs access to **Subscriptions**, **Orders**, **Selling Plan Groups**, and **Webhooks**. The Webhooks permission is what lets Aftersell hear about cancellations. 3. Copy the key and store it somewhere safe. Treat it like a password. For more details, see [Stay AI's API authentication documentation](https://docs.stay.ai/reference/authentication). ## Connecting Stay AI in the setup wizard When you reach **Step 1: Connect provider** in the Subscription Upgrade wizard: 1. Select **Stay AI** from the **Subscription provider** dropdown. 2. Paste your API key into the **API key** field. 3. Click **Test API key**. Aftersell validates the key, checking that it authenticates and that it belongs to your store. 4. Once the test passes (green check), click **Continue** to move to Step 2. The test result shows one of two states: * **Green tick - "API key verified".** The key authenticated and belongs to your store. **Continue** is now enabled. If the key is missing the **Webhooks** permission, the test still passes but warns that subscription cancellations will not be recorded - re-create the key in Stay AI with **All permissions** if you want cancellation tracking. * **Red cancel icon.** The check did not come back clean. Read the message beside the icon: either the key was rejected, or Aftersell could not complete the check ("Could not verify the API key. Please try again."), which is a failed call rather than a bad key - in that case just test again. A could-not-verify result looks exactly like a rejection, so go by the message rather than the icon. **Continue** stays disabled until the check comes back green, and editing the provider or the key clears the previous result. ## Verifying an upgrade in Stay AI After placing a test order and accepting the upgrade offer: Go to **Subscriptions** in your Stay AI dashboard and find the customer's subscription. The billing frequency, product, or next charge date should reflect the change. The change itself is applied as soon as Aftersell processes the acceptance, but Stay can be slow to ingest a brand-new order: the upgrade usually lands within minutes, and up to 24 hours in the slowest cases. If the change is not there yet, give it a little time before treating it as a failure. ## If an upgrade can't be applied Stay AI upgrades are safe by design - a shopper is never charged for an upgrade that did not happen: * **Failed upgrades are retried automatically.** If a call to Stay AI fails, Aftersell retries it in a background workflow. * **If it still can't be applied, the shopper is refunded.** A Subscription Upgrade charges only a small placeholder line on the Shopify order (not a product the shopper keeps), so Aftersell refunds that charge when the upgrade cannot be completed. * **Anything that can't be confirmed is flagged for manual review** rather than guessed, so a shopper is never charged for an upgrade that did not happen. For the full retry-and-reconciliation mechanics (shared across providers), see [How Subscription Upgrades work](/aftersell/subscription-upgrades#how-subscription-upgrades-work). ## Troubleshooting Stay AI-specific issues **The upgrade was accepted but the subscription was not modified** The most common causes: * The customer is on a **prepaid (pay-upfront)** plan. Stay does not allow prepaid contracts to be modified, so the upgrade is cancelled and refunded. This is expected. * The subscription bills in a **currency your store does not price in**, so the upgrade was refused. * The subscription has **two or more products** and you changed the frequency without turning on **Keep on existing subscription**. * One order started **two Stay subscriptions** that both hold the offer's product, so Aftersell could not tell which to upgrade. * Your API key is from a different store, or is missing a required permission (**Subscriptions**, **Orders**, or **Selling Plan Groups**). Re-create or re-select the key in Stay AI, go to **Step 1: Connect provider**, and re-test it. * The eligible product in the funnel does not match what the customer actually subscribed to. Aftersell automatically retries failed provider calls in a background workflow. If all retries fail, contact support with your store URL, the Shopify order ID, the customer's email, the approximate time the upgrade was accepted, and the provider you are using. **Stay cancellations are not showing in analytics** Stay sends cancellation updates to only one app per account. If another app registered for Stay's cancellation webhook before Aftersell, Aftersell cannot receive them. Confirm no other integration owns Stay's cancellation webhook, and make sure the connected API key includes the **Webhooks** permission. *** ← Back to [Subscription upgrades overview](/aftersell/subscription-upgrades) · [Setup & configuration](/aftersell/subscription-upgrades-setup) · [What are integrations?](/aftersell/subscription-upgrades-integrations) # Subscription upgrades troubleshooting Source: https://docs.aftersell.com/aftersell/subscription-upgrades-troubleshooting Fixes for common Subscription Upgrades issues, including upgrade failure alerts, provider connection problems, and empty selling plan dropdowns. Fixes for the most common Subscription Upgrade issues. If you are still stuck after trying these, contact support with the details listed under [Testing and verifying](/aftersell/subscription-upgrades-testing#when-something-looks-wrong). ## Monitoring upgrade failures Aftersell monitors for terminal upgrade failures over a rolling 7-day window. If the number of failures crosses the alert threshold, a **warning banner** appears on your home page describing how many upgrades failed and over how many days. The same alert also surfaces in the **Needs attention** panel of the [home page](/aftersell/home/needs-attention). The alert includes a **Review orders** button that takes you directly to the order browser filtered to subscription upgrade issues, so you can see the affected orders and the specific cause for each failure. It clears automatically once the failure count drops below the threshold within the rolling window. If you see this alert, open the order browser and check the cause shown on each affected order, then refer to the relevant troubleshooting steps below. > [accordion] I cannot get past Step 1: Connect provider > > The **Subscription Upgrade** template is never hidden — it is always listed under **Add Funnel**, whatever your provider setup. What blocks you is the Step 1 connection check: **Continue** stays disabled until **Test API key** returns **API key verified** with a green tick. > > Two different outcomes render the same red cancel icon, so read the message beside it: > > * **Your provider rejected the key.** The token is missing required scopes or has been revoked, and the message names the specific problem. Issue a new token in your provider dashboard with the scopes listed in [Setup & configuration](/aftersell/subscription-upgrades-setup), paste it in, and test again. > * **Aftersell could not reach your provider** — "Could not verify the API key. Please try again." Nothing is necessarily wrong with the token; the call itself failed. Click **Test API key** again. > > Editing the provider or the token clears the previous verdict, so re-test after any change. > [accordion] My customer sees an unexpected product in their order > > This is expected behaviour. The product is the offer product, the placeholder line item added to the Shopify order as a record of the accepted upgrade. To reduce confusion, rename the offer product to something clear and add a description in Shopify Admin explaining what it represents. See [What the customer sees](/aftersell/subscription-upgrades#what-the-customer-sees). > [accordion] The upgrade was accepted but the subscription was not modified > > The Shopify changeset and the provider API call are independent. If the offer product was added to the order but the subscription was not changed, the most common causes are: > > * Your provider API token is expired or lacks the required permissions. For Recharge, the token must have `read_orders`, `read_subscriptions`, `write_subscriptions`, and `read_plans`. Go to **Step 1: Connect provider**, re-test your key, and check the error message for the specific missing scopes. > * The eligible product in the funnel does not match what the customer actually subscribed to. > * For Loop, the target selling plan does not exist in your Loop dashboard for the configured frequency. > * The retry workflow may still be working through its schedule: after a failed call it tries again at +1 hour, then at +24 hours. This is the same for every provider — Loop included, whose upgrade calls are synchronous and show up in the dashboard immediately when they succeed. > > Aftersell automatically retries failed provider calls in a background workflow. The workflow checks the provider's current state before re-running, so a successful but slow upgrade is not applied twice. > > If a replay can't fix the cause, the workflow either **refunds the charge** — when no provider mutation succeeded and the charged line was a placeholder — or flags the upgrade for **manual reconciliation**, leaving the order intact. Net-new subscriptions and box upgrades are never auto-refunded, because the shopper receives real products. Contact support with the details listed in [Testing and verifying](/aftersell/subscription-upgrades-testing#when-something-looks-wrong). > [accordion] The selling plan dropdown is empty > > The "Use an existing selling plan" option pulls plans directly from Recharge, Skio, Loop, or Stay AI. If the dropdown is empty: > > * Confirm selling plans are configured in your provider dashboard. > * Make sure your API token has read access to Plans (Recharge: `read_plans` scope) or the appropriate scopes (Skio, Loop). > * Go back to **Step 1: Connect provider**, re-test your API key, and continue. > [accordion] I am using Loop and there is no billing frequency field > > This is expected. On Loop the **Billing frequency** field is not shown at all — only **Delivery frequency**, with the note "Loop syncs billing to delivery — customers are charged on each renewal". Whatever you set as the delivery frequency is also the billing frequency. > > That is also why prepaid subscriptions — a billing frequency longer than the delivery frequency — are not supported on Loop: the integration rejects them outright rather than offering a field you cannot use. The other providers show both fields. > [accordion] The order browser shows a Subscription conflict badge > > The offer product is subscription-only — either the product itself, or every one of its variants — and the customer's checkout already contained a subscription. Shopify does not allow a second subscription on the same order, so the offer was skipped. > > The order details panel spells out which case it was: "The customer's checkout already has a subscription, and the offer product is subscription-only", or "All variants of the offer product are subscriptions, and the customer's checkout already has one." Both are fixed the same way — edit the offer's product selection and swap in a one-time-purchase product, or use the **Create new** option in **Step 4: Offer product** to generate a placeholder. > [accordion] My upgrade offer is showing to customers who are not subscribers > > * Check that **Show this funnel for all customers** is not enabled. This overrides all other triggers. > > * Check the **Variant on subscription** trigger. It shows the funnel only when the order includes one of the selected products *purchased as a subscription*. On a funnel that has a subscription upgrade offer, the wizard owns this trigger and keeps it in sync with the product being upgraded, so it is read-only — the panel reads "Managed by this funnel's subscription upgrade offer." If it is targeting the wrong products, correct the upgrade offer's trigger product rather than the trigger itself. > > * Check funnel priority. A higher-priority funnel with broader triggers may be firing first. > > > [!WARNING] > > > > Do not try to reproduce this with a separate product trigger plus a subscription trigger. That pairing is exactly what **Variant on subscription** replaced: the two matched independently, so an order containing your trigger product as a one-time purchase *and* an unrelated subscription item satisfied both, fired the funnel, and the upgrade then failed downstream. One trigger, matching product and subscription state together, is the supported setup. # Subscription upsell reference Source: https://docs.aftersell.com/aftersell/subscriptions_in_post_purchase_offers_reference How Subscription Upsell works: how the subscription is added, how selling plans and discounts resolve, fulfillment, platform limitations, and troubleshooting. This page holds the mechanics and platform rules behind Subscription Upsell: how the subscription is added, how plans and discounts resolve, what the customer sees, fulfillment, the Shopify platform limitations, and the full troubleshooting catalog. For how to build one, see [Subscriptions in post-purchase offers](/aftersell/subscriptions_in_post_purchase_offers). ## How the subscription is added Subscription Upsell uses Shopify's native `add_subscription` post-purchase changeset. Aftersell does not call your subscription app's API directly for this flow: the subscription is created by Shopify and your subscription app picks it up via its own Shopify integration. This is why Subscription Upsell works with any subscription app that uses Shopify's native Subscription API. The first cycle of the subscription is fulfilled from the **original Shopify order** as a normal line item. Subsequent renewals are managed by your subscription provider, the same as any subscription created during regular checkout. ## Compatible subscription platforms Subscription Upsell is fully provider-agnostic on the Aftersell side. Aftersell adds the subscription via Shopify's native `add_subscription` changeset, and Shopify routes the enrollment to whichever subscription app you have installed on the Shopify Subscription API. Any subscription app that uses Shopify's native Subscription API works without additional setup, including Recharge, Skio, Loop, Stay AI, Appstle, Smartrr, Bold Subscriptions (when running on Shopify's native subscriptions API), and Shopify's native selling plans. Selling plans you create in your subscription app are pulled into Aftersell automatically. (Subscription Upgrade compatibility is different and provider-specific; see [Subscription Upgrades](/aftersell/subscription-upgrades).) ## How selling plans resolve ### Allowed subscription plans The **Allowed subscription plans** setting is an allowlist, applied **per variant**. For the variant a customer selects, they see only the allowed plans available for that variant: * If exactly one allowed plan applies, its name is shown as static text and there is no choice to make. * If several apply, the customer picks between them in a **Purchase options** dropdown. * If none apply, that variant falls back to showing all of its own plans. That per-variant scoping means a single allowlist can correctly handle a product whose variants carry different selling plans. If none of the allowed plans are available for a variant (because a plan was removed or disabled in Shopify), the offer falls back to showing all available plans for that variant, so customers can still complete the purchase. The allowed-plans setting is also cleared automatically if you change the product's purchase option to one-time purchase only, which prevents configuration errors when subscription options are removed. ### Which selling plan is shown by default When no plans are selected in **Allowed subscription plans**, the offer preselects the **first selling plan** configured on the product in Shopify. If that variant has more than one plan available, customers can change it in the **Purchase options** dropdown. To control which plan customers see: * **Restrict the plans** (recommended). Use the **Allowed subscription plans** multi-select. Allow exactly one and customers see only that plan, with no dropdown. * **Reorder selling plans in Shopify.** The order of selling plans on the product determines which one is shown first. * **Remove unused selling plans from the product.** If you have multiple frequencies and only want one to surface, keep only the relevant selling plan attached to the product. The most important factor for retention is matching the cadence to actual product usage. A 30-day shampoo subscription where the bottle lasts 60 days will get cancelled; a 60-day subscription where the bottle lasts 30 days will get skipped. Look at your one-time reorder data to find the natural cadence per product. ## How subscription discounts are shown A discount on a Subscription Upsell offer applies to the **first billing cycle only**; future recurring orders are charged at the regular subscription price. The post-purchase offer shows two distinct prices: * The **Accept Offer button** and the line-item subtotal reflect the **first-cycle price**, including any first-cycle discount. * The **Recurring subtotal** field shows what the customer will be charged on **subsequent renewals** at the regular subscription price. This reads cleanly for typical first-cycle discounts (10 to 25 percent off the first delivery). It can read confusingly with an extreme first-cycle discount such as 100% off, because the recurring price (not the \$0 first-cycle price) is the more visible number. If you intend a free first delivery, be explicit in the offer copy ("First box free, then \$59.99 every 30 days"). Discounts can be a **percentage** (for example 15% off) or a **fixed amount** (for example \$5 off). The discount rides on Shopify's `add_subscription` changeset rather than being applied through your subscription app, and it only affects the subscription created by this offer. > [!WARNING] > > The discount only reaches the subscription if you tick **Apply discount to subscriptions**. Without it, the `add_subscription` changeset carries no discount and the subscription bills at full price; the offer's discount then applies to the one-time line only. ## What the customer sees When a customer accepts a Subscription Upsell, three things happen across two systems. **On the Shopify order.** The order confirmation includes both the **original one-time line item** and the **new subscription line item** (billed at the discounted first-cycle price). The customer pays for both lines on the original order, and the first subscription fulfillment ships from this order as a normal line item. **In their email confirmations.** Shopify sends the standard order confirmation with both line items. Your subscription provider typically sends its own subscription welcome email explaining the recurring schedule. Configure that welcome email to send within minutes of acceptance, with the customer's name and product, the cadence, the next charge date, and a direct link to the customer portal. **In the subscription provider portal.** The customer manages the new subscription in your provider's portal, where they can typically pause or skip a delivery, change the cadence, swap products, or cancel. The portal is owned by your provider, not Aftersell; make sure it is accessible from your store's account area or the welcome email, or customers will reach support to cancel. ## Subscription fulfillment * **First cycle.** The first subscription order is part of the original Shopify order, so it flows through whatever fulfillment process you use for one-time orders (3PL, in-house, dropship). The subscription line ships alongside the original one-time purchase. * **Subsequent renewals.** Future cycles are created by your subscription provider on the renewal cadence. Each renewal becomes a new Shopify order, fulfilled the same way as any other order. If your 3PL integrates directly with your subscription provider, renewals usually flow through automatically. If your 3PL syncs only from Shopify orders, no extra setup is needed because each renewal creates a Shopify order. ## Shopify platform limitations A few Shopify platform rules apply to subscription-related post-purchase offers regardless of which Aftersell feature you use. ### One subscription per order Shopify does not allow a post-purchase upsell to add a subscription to an order that already contains a subscription. This restriction is set by Shopify and applies to all post-purchase apps. **Connecting a subscription provider removes this constraint for Subscription Upsell.** When Recharge, Skio, Loop, or Stay AI is connected, Aftersell creates the new subscription in your provider rather than asking Shopify to add it, so subscription offers reach customers whose order already contains a subscription. See [upselling existing subscribers](/aftersell/subscription-upsell-existing-subscribers). If **no provider is connected**, Aftersell handles the "subscription already in cart" case automatically: * **Subscription-only products** in an offer are dropped from the funnel for that customer. * **Dual-mode products** (one-time and subscription) are auto-downgraded to one-time-only, so the offer still shows but without the subscription option. Either way, you can leave a Subscription Upsell offer in your funnel without worrying it will fire incorrectly on subscription-already-present orders. To modify the subscription the customer already has, rather than adding a second one, use [Subscription Upgrade](/aftersell/subscription-upgrades). ### Subscription-only products If a product in your offer is configured to sell only as a subscription, and no provider is connected, the offer is skipped whenever the customer's order already contains a subscription product. What the funnel editor shows depends on your setup: * **A provider is connected.** No banner; the limitation does not apply. * **No provider is connected.** An **Unlock more reach** banner with a **Connect a provider** action, explaining that customers whose order already contains a subscription do not see this offer's subscription option. * **The funnel already excludes subscription orders.** No banner, since the offer never reaches those customers. Where the older **Subscription limitations** warning banner appears, it lists the affected products and suggests setting the **Subscription trigger** to **do not include a subscription**. ### Multiple subscription offers in the same funnel If more than one offer in your funnel contains a subscription product, only the first accepted subscription is added to the order; subsequent subscription offers are skipped. The funnel editor warns you when this conflict is detected, listing the other offers that also contain subscription products. To avoid skipped offers, limit your funnel to one subscription offer, or use the **Subscription trigger** to exclude orders that already contain a subscription. ## Troubleshooting > [accordion] The subscription option is not showing up in my offer editor > > For subscription controls to appear, the product you selected must have at least one active selling plan in Shopify. Check that your subscription app has created selling plans for this product, and that they are active and assigned to the product. > [accordion] How does Aftersell pick which selling plan to show? > > The offer preselects the first selling plan configured on the product in Shopify, and customers can change it in the **Purchase options** dropdown when more than one plan applies to their variant. To control which plan they see, restrict the offer with the **Allowed subscription plans** multi-select, reorder selling plans on the product in Shopify so the desired one is first, or remove unused selling plans from the product entirely. Allowing exactly one plan removes the dropdown. > [accordion] Can the customer pick their delivery frequency on the post-purchase offer? > > Yes, when more than one plan applies to the variant they select, the offer shows a **Purchase options** dropdown. To prevent that, use **Allowed subscription plans** to allow a single plan; the cadence then renders as static text. Customers can still change cadence afterwards in your subscription provider's portal. > [accordion] I want to show this subscription-enabled product as one-time only > > Use the **One-time purchase only** mode in the offer's purchase-option setting. Aftersell has three modes for subscription-enabled products: **One-time purchase only**, **Subscription only**, and **One-time purchase and subscription**. Selecting **One-time purchase only** hides the subscription option entirely, even when the product has active selling plans. > [accordion] My customer accepted the subscription upsell but the subscription is not in my subscription app > > This is one of the most disruptive failure modes because the customer was charged but the subscription was never created in your provider. The most common root cause, by a wide margin, is a **selling plan that was deactivated between the offer rendering and the customer accepting**. Shopify accepts the changeset because it has a valid selling plan ID at render time, but if the plan is deactivated before the customer accepts, no subscription is enrolled downstream and no error is surfaced. > > Other common causes: > > * **Subscription app webhook is failing.** Any subscription app that picks up new subscriptions from Shopify relies on Shopify webhooks. Check webhook delivery health in your subscription app's logs. > * **Selling plan was unlinked from the product** but still has an active ID. Shopify accepts the changeset and the line item lands, but the subscription provider has no record to act on. > > **Important:** there is no automatic retry on the native `add_subscription` path; Shopify owns the enrollment there, so Aftersell has nothing to replay. (The separate provider path, used when the order already contains a subscription, *is* covered by the [subscription-upgrade retry workflow](/aftersell/subscription-upgrades-troubleshooting).) If this happens: > > 1. Confirm the selling plan is still active in Shopify and assigned to the product. > 2. Check your subscription app's order import / webhook logs for the affected order. > 3. If the subscription is truly missing, your subscription app's support team can usually manually enroll the customer from the order ID. > > If multiple customers are affected, contact Aftersell support with the order IDs and your subscription provider, but expect the fix to happen on the subscription provider side, not in Aftersell. > [accordion] The CTA button shows the recurring price instead of the first-cycle discount > > This usually surfaces when the first-cycle discount is extreme (for example 100% off the first cycle). The Accept button reflects the first-cycle price, but if that price reads identically to the recurring price, it can look like the discount is not applied. Confirm in the offer preview that the discount is configured correctly, and rely on the offer copy ("First box free, then \$X every Y days") to make the terms unambiguous. > [accordion] My customer's order was charged without the subscription discount on the second cycle > > Discounts apply to the **first billing cycle only** by default. If a customer asks why their second or third order does not have the discount, that is expected. Recurring orders charge at the regular subscription price, which the customer saw as the **Recurring subtotal** in the offer. > [accordion] The offer is showing on orders that already contain a subscription > > If you have Recharge, Skio, Loop, or Stay AI connected, this is expected and the offer works: Aftersell creates the new subscription in your provider. See [upselling existing subscribers](/aftersell/subscription-upsell-existing-subscribers). > > If no provider is connected, Shopify blocks adding a second subscription and the offer silently skips at runtime. Either connect a provider, or stop the offer from showing to those customers by setting the **Subscription trigger** to **do not include a subscription**. > [accordion] Only one of my subscription offers is firing in the funnel > > Shopify allows only one subscription per order. If you have multiple subscription offers in the same funnel, the first accepted one wins and the rest are skipped. Either limit your funnel to one subscription offer, or use the Subscription trigger to exclude orders that already have a subscription. > [accordion] The customer cannot find the subscription in their account > > The new subscription is managed in your subscription provider's customer portal, not directly in Shopify. Make sure the portal is linked from your store's account area, and confirm your provider's welcome email is configured to send immediately after acceptance. > [accordion] I want to refund or cancel the new subscription after the customer accepted > > The first cycle was paid for as part of the Shopify order, so refunds work the same as any other line item. Cancellation of future cycles happens in your subscription provider, not in Aftersell. Refunding the line in Shopify does not automatically cancel the subscription; you have to cancel it in the provider portal as well. # Testimonials widget Source: https://docs.aftersell.com/aftersell/testimonials-widget-thank-you-page Configure the Thank You Page Testimonials widget in Aftersell to display customer reviews from your connected review app after checkout. The Testimonials widget displays customer reviews on the Thank You page to reinforce purchase confidence and build social proof. This page covers every setting on the widget. For the full funnel setup and Shopify editor steps, see [How to configure thank-you page widgets](/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell). Add the widget from the **Thank You Page** section of your funnel by clicking **Add Widget** and selecting **Testimonials**. ## Connect a review app Testimonials on the Thank You page pull reviews directly from your connected review app. To use this widget, you must first configure your review app credentials in **Settings > Product Reviews**. Supported apps include Judge.me, Klaviyo, Okendo, and Yotpo. For full details on connecting your review app, see [Checkout widget types - Testimonials](/aftersell/checkout_widget_types#testimonials). ## Selection modes The widget offers two selection modes: * **Manual selection** - Choose specific reviews to display * **Dynamic** - Automatically fetch and display reviews based on products in the customer's order In dynamic mode, reviews are imported from your review app and refreshed weekly. To import reviews immediately, go to **Settings > Product Reviews** and click **Sync now**. ## Display settings You can configure: * **Maximum reviews to show** - Control how many reviews appear * **Display type** - Choose between horizontal carousel or vertical stack layout * **Minimum rating** - Set the minimum star rating for reviews to display * **Truncate review text after (optional)** - Set a maximum character length for review text # Text widget (Thank You Page) Source: https://docs.aftersell.com/aftersell/text-widget-thank-you-page Configure the Thank You Page Text widget in Aftersell to share messages, discount codes, or brand stories with customers after checkout. The Text widget displays custom messaging on the Thank You page, such as a welcome note, discount code, or brand story. This page covers every setting on the widget. For the full funnel setup and Shopify editor steps, see [How to configure thank-you page widgets](/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell). Add the widget from the **Thank You Page** section of your funnel by clicking **Add Widget** and selecting **Text**. ## Configure text content 1. Enter your **heading** (optional). 2. Add your **text content** in the editor. 3. Format text using the toolbar (bold, italic, lists, links). 4. Click **Save**. # Tracking Rokt Thanks performance Source: https://docs.aftersell.com/aftersell/tracking_rokt_thanks_performance This article explains how to use Rokt Thanks analytics to track performance. ## Overview You can monitor your **Rokt Thanks** performance directly from your **Aftersell by Rokt** dashboard by clicking on **Analytics** in the **Rokt Thanks** tab. ![Rokt Thanks dashboard section with the Analytics button highlighted](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/rokt-thanks-reporting-dashboard-section-analytics-button.gif?s=11c5b6954288b7d576445df2c838f3f2) Use the **date picker** to view performance metrics for a specific time period. Each card shows the total for the period you select. Unlike other Aftersell analytics tabs, the Rokt Thanks cards do **not** show a period-over-period comparison or a change indicator — to compare two periods, run the report again with the earlier range. *** ## Performance The **Rokt Thanks Analytics** dashboard includes several key metrics to help you understand performance trends and overall campaign effectiveness. Below is a breakdown of what each metric represents: ## **Rokt Transactions** A Rokt Transaction is a Transaction where we select at least one offer from the Rokt Network (i.e. third-party ad or upsell) for rendering to the customer throughout the Transaction Moment. Like Transactions, Rokt Transactions are unique and de-duplicated on the customer order confirmation reference (e.g. revisited confirmation pages or repeated confirmation numbers). *** ## **Number of Transactions** A transaction will be recorded for each unique confirmation reference observed on a partner page configured as a confirmation page (Page Type). Where there is no confirmation reference, a transaction will be recorded per unique sessionID. *** ## **Revenue per Transaction (RPT)** Measures the Revenue generated by Rokt per Transaction completed by a customer. RPT = Revenue / Transactions. *** ## Revenue per Rokt transaction (RPRT) Client Revenue generated by Rokt per Rokt Transaction *** ## Rokt Thanks Revenue An estimate of the revenue that has been generated for the specified account(s) through customer engagement with Rokt offers. Excludes any commissions that may accrue. *** ## Vertical Analytics A new table has been added to the bottom of all Rokt Network analytics pages, showing all verticals that received impressions during the selected period. The table currently includes **impressions, referrals,** and **referral rate**, with more metrics planned for future updates. This gives you greater visibility into vertical performance and helps you identify and block underperforming verticals if needed. *** ## Impressions The total number of impressions across all offers displayed. An impression is measured for each offer viewed. *** ## Referrals The positive outcome of a customer's interaction with an offer — for example, clicking a placement and being directed to a partner site. *** Need Help? If your analytics data isn’t updating or you have questions about interpreting metrics, contact the **Aftersell Support Team** through your dashboard. # Understanding conditional logic for post-purchase triggers Source: https://docs.aftersell.com/aftersell/understanding_conditional_logic_for_post_purchase_triggers This article explains how conditional logic works for post-purchase triggers We will be going over the conditional logic between multiple triggers as well as the logic within each trigger. This will help ensure that your funnels display correctly and target the right customers. Understanding how these triggers operate is fundamental for crafting efficient and impactful funnels tailored to specific customer behaviors. Upsell triggers are conditions set within Aftersell to display upsell funnels based on variables such as customer behavior and specific order attributes. This diagram shows you an overview of the conditional logic: By managing priorities correctly, businesses can ensure their most relevant funnels are displayed to appropriate customer segments, thereby optimizing conversions. ![Customer Attribute Triggers panel illustrating AND between triggers and OR within each trigger](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/trigger-logic-customer-attribute-and-or.png?fit=max\&auto=format\&n=SnVX3h-PpMMxQMDU\&q=85\&s=6b82a64b10d848e6863647235f6a0179) *** # The "AND" Logic Between Triggers Each enabled trigger is evaluated independently and they **all** must be satisfied for the post-purchase action to occur. This means that every trigger must return a match for the funnel to appear to customers. * For example, if you have a trigger set for both **Customer Location = US** and another one for **Order Value > \$50**, the order must meet **both** conditions to qualify. *** # The "OR" Logic Within Each Trigger Within a single trigger, multiple options can be selected. These options are evaluated using an **OR** conditional logic. This means that only one of the options within a trigger needs to match for that trigger to be satisfied. * For example, if a trigger is configured for **Product Category = Shoes, Socks or Pants**, an order only needs to match one of those product categories for the funnel to activate. **Note:** Some triggers, such as the *Product Quantity Trigger*, allow you to switch the condition logic from **OR** to **AND**. ![Product quantity trigger with the Condition Logic dropdown set to AND highlighted](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/trigger-logic-product-quantity-condition-dropdown.png?fit=max\&auto=format\&n=SnVX3h-PpMMxQMDU\&q=85\&s=626b13b2872894f4868ad3c41f10923b) *** # Putting It All Together In summary, an order qualifies when **every enabled trigger** is met, and within each trigger, **at least one** of its options matches the order or customer. For example, setting a funnel for orders with 'Minimum Order Value > \$100' and 'Shipping Method = Express' requires both criteria to be fulfilled for activation. In simple terms: * Each trigger must be true (**AND** logic). * Within each trigger, only one matching option is needed (**OR** logic). This setup keeps post-purchase rules flexible, accurate, and easy to understand. *** Best practices include layering specific and broad triggers, regularly reviewing funnel priorities, and testing scenarios for accuracy and effectiveness. If you're interested in learning more about all available Post-Purchase Triggers, see our comprehensive reference article here: [Post-purchase Triggers](/aftersell/post_purchase_triggers) This includes resources on managing funnel priorities and ensuring compliance with best practices. # What is Rokt Thanks? Source: https://docs.aftersell.com/aftersell/what_is_rokt_thanks An overview of Rokt Thanks and how it can help generate additional profit Rokt Thanks allows you to create a new source of income on your Shopify store at no cost by showing premium offers from brands like Disney+, HelloFresh, and Venmo to your customers on the order confirmation page, order status page, and customer account pages. You earn revenue each time your customers click “Yes, please!” on these offers. Our machine learning uses real-time first party data (e.g. name, gender, age, email, address, city, country, language, etc.) to ensure each offer you show is targeted to each individual customer. This data stays private to your business. ![Rokt Thanks popup offering a free Hulu trial on a Jones Road order confirmation page](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/rokt-thanks-popup-offering-free-hulu.gif?s=10d638ab1786a103e068bfab3b3c8cc1) On average, merchants using Rokt Thanks on their site generate an additional \$0.20 to \$0.30 USD in pure profit per transaction. The amount generated per transaction will vary based on a multitude of factors such as geography, opt-in rate, etc. ![Order confirmation page showing a Rokt Thanks Hulu offer with Yes please and No thanks buttons](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/rokt-thanks-order-confirmation-hulu-offer.gif?s=b4b12ee0da728d6926c809f31e7ee802) *** ## What is Rokt? Rokt is the parent company of Aftersell. As a global leader in eCommerce technology and software solutions, Rokt enhances revenue through personalized experiences. Industry leaders such as Wayfair, Uber, and Ticketmaster rely on Rokt's cutting-edge technology to optimize their customer interactions. *** ## What types of offers are shown? With Rokt Thanks, you have access to an exclusive, closed marketplace of 100s of reputable and recognized advertisers. You have complete control over what categories are shown. Each experience is tailored to the individual shopper, with intelligence powered by billions of transactions across hundreds of leading Ecommerce businesses. This ensures that you will delight your customers with offers they’re sure to love. ![Grid of Rokt Thanks advertiser logos including Verizon, Disney+, Hulu, ESPN+, and Marriott](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/rokt-thanks-advertiser-logo-grid.gif?s=8dccd86967b4907933e7f4bc1a9e682c) *** ## Looking to set up Rokt Thanks? Here is a step by step guide on how to get set up: [Learn More](/aftersell/activating_and_configuring_rokt_thanks) # Why can't I see the checkout tab? Source: https://docs.aftersell.com/aftersell/why_cant_i_see_the_checkout_tab This article outlines why you may not have access to the Checkout plan. The Aftersell checkout tab is made possible by the Checkout Extensibility update by Shopify. This update allows merchants to insert app blocks into their Checkout rather than needing to write custom scripts. ## **Which plans get the Aftersell Checkout tab?** Checkout Extensibility is a Shopify Plus capability, so the Aftersell Checkout tab appears on stores that have it. Aftersell shows the tab for: * **Shopify Plus** stores * Stores on a **Plus Trial** * **Shopify Partner development** stores Merchants on other plans, such as Basic or Advanced, do not have access to the Aftersell Checkout tab. This is a limitation put in place by Shopify, and Aftersell does not have a say in it. If you are interested in upgrading to the Shopify Plus plan to access the Aftersell checkout tab and other exclusive features, please reach out to Shopify's support team for more information and they'd be more than happy to help with that! # Why is Rokt Thanks not showing on my confirmation page? Source: https://docs.aftersell.com/aftersell/why_is_rokt_thanks_not_showing_on_my_confirmation_page Troubleshoot common reasons why Rokt Thanks may not be displaying on your confirmation page, Order Status page, or customer account pages. # Why is Rokt Thanks not showing on my confirmation page? Rokt Thanks can fail to appear for a few different reasons. Work through the steps below in order to identify the cause. > [!NOTE] > > If Rokt Thanks is missing from a *specific* page only (e.g., shows on Thank You but not on Order Status), the cause is almost always app block placement — skip directly to ["The app block isn't placed on every required page"](#the-app-block-isnt-placed-on-every-required-page). ## Start here ### 1. Check your email Before troubleshooting anything else, check the email inbox associated with your Rokt Thanks account — including your **junk** and **spam** folders — for any email from **Rokt**. In some cases, our team will reach out directly with information specific to your store. If you find an email from Rokt, reply to it and our team will assist you from there. ### 2. Confirm setup is complete In the Aftersell admin, navigate to the **Rokt Thanks** tab and check that the setup guide at the top shows every task complete. The guide tracks: * **Enable Rokt Thanks** * **Place app block on Thank you page** * **Place app block on Order status page** * If your store is eligible for Vaulted Rewards, two further tasks for the customer account Orders page The badge reads **Complete** only when every task is done, and shows the count as *n of N tasks complete*. There is no industry-vertical or Terms & Conditions item on this tab — your store's vertical is read-only under Settings → Rokt Thanks → Company information, and the Aftersell terms are accepted once during Aftersell onboarding. ### 3. Wait for propagation After enabling Rokt Thanks (or saving any settings change), allow at least **10 minutes** before testing. The Rokt network needs time to register your store, sync configuration, and become eligible to deliver offers. ### 4. Test from an eligible context A test order from your own browser may not see offers if your IP is in an unsupported region or no relevant offer is currently available for your customer profile. Test from a customer-style session: different network, fresh browser, real shipping address in a supported region. *** ## What's happening? * [The Rokt Thanks tab doesn't appear in my Aftersell admin](#the-rokt-thanks-tab-doesnt-appear-in-my-aftersell-admin) * [I just enabled Rokt Thanks and nothing is showing](#i-just-enabled-rokt-thanks-and-nothing-is-showing) * [Rokt Thanks shows on Thank You but not on Order Status (or vice versa)](#rokt-thanks-shows-on-one-page-but-not-another) * [Rokt Thanks shows for some customers but not others](#rokt-thanks-shows-for-some-customers-but-not-others) * [Rokt Thanks used to show but recently stopped](#rokt-thanks-used-to-show-but-recently-stopped) * [I see the Rokt Thanks block in the editor but nothing renders at checkout](#the-rokt-thanks-block-shows-in-the-editor-but-nothing-renders-live) *** ## The Rokt Thanks tab doesn't appear in my Aftersell admin Rokt Thanks is only surfaced in the Aftersell admin for stores that are eligible at the store level. If you don't see the **Rokt Thanks** tab at all, the most common causes are: ### Rokt Thanks hasn't been switched on for your account The **Rokt Thanks** tab appears once Rokt Thanks has been turned on for your Aftersell account — normally during Aftersell onboarding, or by activating it from the home dashboard — or automatically once your store meets the order-volume threshold for eligibility. Tab visibility is **not** based on your store's country. Rokt Thanks merchant eligibility is country-agnostic. If you don't see the tab, check your Aftersell **Home** page. If your store is eligible, an activation banner appears at the top of the **Grow your store** section showing an estimated monthly earnings figure based on your recent order volume. Click **Activate Rokt Thanks** to begin setup. If you don't see the banner or can't find it, contact support and we can enable it for you. ### Your store sells in a sensitive vertical Stores in certain restricted or sensitive industries are not eligible for Rokt Thanks. If you're unsure whether your vertical is affected, reach out to support and we can confirm. ### Your Aftersell account is on an older version On rare occasions, older installs need to be upgraded before the Rokt Thanks tab appears. Reach out to support and we can refresh your account. If you believe your store should be eligible and the tab is still missing, contact [support@aftersell.app](mailto:support@aftersell.app) with your store URL and primary shipping region. *** ## I just enabled Rokt Thanks and nothing is showing ### The app block isn't placed on every required page Rokt Thanks renders on up to three surfaces: * **Thank You page** — immediately after checkout completion * **Order Status page** — the persistent post-purchase page customers can return to * **Customer Account pages** — Profile and Orders pages, if your store has migrated to Shopify's new customer accounts and Vaulted Rewards is enabled The **Rokt Thanks** app block must be added in the Shopify Checkout Editor on each of these pages individually. Placing it on only one page means it only renders on that page. How to verify and fix: 1. Open the Aftersell admin → **Rokt Thanks** tab. 2. Click **Edit Thank You Page** — confirm a Rokt Thanks block is in the layout. **Save**. 3. Click **Edit Order Status Page** — confirm the same. **Save**. The block can be placed anywhere on the page. We recommend the **Main** section (the central column where the order confirmation banner and line items appear), positioned just below the order confirmation banner so it's visible without scrolling. Avoid placing it in the Order Summary column or the Footer — those sections are smaller and tend to be missed by customers. ### Propagation hasn't completed After enabling Rokt Thanks or saving a settings change, wait at least 10 minutes before testing. ### Traffic allocation is set to 0% In Settings → Rokt Thanks, check the **Traffic allocation** slider. If it's at 0%, no customer will see the placement. *** ## Rokt Thanks shows on one page but not another This is almost always an app block placement issue. * The app block was added on Thank You page but not Order Status page (or vice versa). * The app block was placed on a draft checkout profile but not on the published one. How to verify: Open each page in the Shopify Checkout Editor and confirm the Rokt Thanks block is present and saved. *** ## Rokt Thanks shows for some customers but not others This is expected behavior in many cases. Rokt Thanks uses real-time first-party data and the Rokt network to determine eligibility per customer, so it's normal for offers to display for some shoppers and not others. The most common reasons: ### No offer was available for that customer Rokt Thanks is not limited to English-speaking markets — offers can be served in English, German, French, Dutch, Spanish, and Italian. Advertiser coverage still varies a lot by market, though, so shoppers in smaller markets are less likely to be matched with an offer at any given moment, and the placement does not render when nothing matches. If you sell into non-English-speaking markets, open **Settings → Rokt Thanks → Languages** and enable the languages your customers shop in. English is always included and cannot be turned off. ### Traffic allocation is below 100% If your Traffic allocation slider is below 100%, some customers will be intentionally excluded. To maximize coverage, set it to 100%. ### No relevant offer is available for this customer Rokt's machine learning evaluates each customer against the active advertiser pool. If no advertiser has an offer that matches the customer's profile and geography at that moment, the placement will not render. To improve match rate: * Unblock unnecessary verticals in **Offer control → Verticals** (the more verticals allowed, the more advertisers can match). * Consider enabling specific **Growth verticals** allowed in your store's region. * Remove unnecessary domains from the **Block competitors** list (Settings → Rokt Thanks → Block competitors). It holds competitor domain names — there is no advertiser-level block list. ### Your store's vertical is blocking too many advertisers By default, advertisers from **every sub-vertical inside your store's own vertical** are blocked to prevent competitor offers — not just your own sub-vertical — and Retail Insurance is blocked as well. Depending on how broad your vertical is, that can exclude a large part of the pool. Your store's vertical and sub-vertical are shown under **Settings → Rokt Thanks → Company information**, but they are read-only — the edit button opens a note asking you to raise a support request. If you think your store is categorised wrongly, contact support and we can change it for you. In the meantime you can widen the pool yourself by unblocking individual sub-verticals under **Offer control → Verticals**. ### Growth verticals haven't been enabled By default, growth verticals are blocked. If your customers convert well in those categories and you're in a market where they're permitted, enabling specific growth verticals will increase fill rate. Only growth verticals that comply with Shopify's Terms of Service are available for selection. ### Your store sells in a sensitive vertical If your store sells products in a sensitive industry, Rokt placements may not be available for your account. If you're unsure whether your vertical is affected, reach out to our support team and we'll be able to advise. *** ## Rokt Thanks used to show but recently stopped ### Check your email This is the most important first step. If Rokt Thanks was working and recently stopped, check the email inbox associated with your Rokt account — including your **junk** and **spam** folders — for any email from **Rokt**. In some cases, our team will reach out about changes that affect your placement. If you find an email, reply to it and our team will assist. ### A new checkout profile was published If a new Shopify checkout profile was published without the Rokt Thanks block, Rokt Thanks will stop showing. Re-add the app block to the live profile. ### Rokt Thanks was disabled Confirm the Rokt Thanks tab still shows status **Enabled** — the toggle may have been turned off. ### Traffic allocation was changed Check whether the Traffic allocation slider was recently lowered. ### Verticals or advertisers were newly blocked A recent change to Offer control settings can reduce or eliminate fill rate. Review your blocked verticals and advertisers. ### Migrated from Scripts to Extensions If your store recently migrated from Scripts-based Thank You pages to Checkout Extensibility, the Rokt Thanks block must be added in the new editor. Old Scripts placements do not carry over. *** ## The Rokt Thanks block shows in the editor but nothing renders live ### The block is on a draft profile, not the published one Shopify Admin → Settings → Checkout → confirm which profile is **Published**. Make sure the block is on that profile. ### The Save step was missed Adding the block isn't enough — you must click **Save** in the top right of the Shopify Checkout Editor. ### The block is in a section that's hidden by theme Some Shopify checkout layouts hide sections by default. Confirm the section where you placed the Rokt Thanks block (typically **Main**) is visible. *** ## Still not resolved? Reach out via chat in the Aftersell admin or email [support@aftersell.app](mailto:support@aftersell.app). Include: * A specific order number where Rokt Thanks did not appear * The customer's shipping country (if known) * A screenshot of the Shopify Checkout Editor showing the Rokt Thanks block on the affected page * A screenshot of your Aftersell Rokt Thanks tab showing the setup checklist status * Whether you've received any recent email from Rokt about your account *** ## Related guides * [What is Rokt Thanks?](/aftersell/what_is_rokt_thanks) * [Activating and Configuring Rokt Thanks](/aftersell/activating_and_configuring_rokt_thanks) * [Rokt Thanks Settings](/aftersell/rokt_thanks_settings) * [Rokt Thanks Payouts](/aftersell/rokt_thanks_payouts) # Why isn't my post-purchase offer displaying? Source: https://docs.aftersell.com/aftersell/why_isnt_my_1_click_offer_displaying A complete breakdown of every reason your post-purchase offer may not be showing. Post-purchase upsells can fail to display for several different reasons. Work through the steps below in order to identify the cause. > [!TIP] > > If an offer doesn't display, the original order is always processed as normal. Nothing is lost on the customer's side. > [!NOTE] > > **Thank You Page upsells are a great workaround, and currently the only workaround, for orders that do not meet Shopify's Post-purchase eligibility requirements.** > > If orders are regularly ineligible due to payment method, currency, sales channel, order value, local delivery, duties, etc., [setting up Thank You Page upsells](/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell) ensures those customers still see an offer. > > Note that product-level limitations (such as bundle products as upsell items and subscription-on-subscription conflicts) apply to Thank You Page upsells as well. *** ## Where to start **1. Open the Order Browser and find the order** Go to **Apps → Aftersell → Order Browser** and locate the specific order. Click the order number to review the Post-purchase section. The ineligibility reason shown there identifies which section below applies. Use that as the starting point rather than reading through everything. [Learn how to use the Order Browser →](/aftersell/order_browser_overview) **2. Confirm the setup** * Aftersell is selected as the post-purchase app in Shopify **Settings → Checkout → Post-purchase page** * The funnel is published and active in the Aftersell admin **3. Confirm the order meets Shopify's Post-purchase requirements** Shopify's post-purchase page has specific requirements. If any one of them isn't met, the offer will not display. For the full list, see [Shopify post-purchase API limitations](/aftersell/shopify_post_purchase_api_limitations). One requirement worth checking specifically: if Shopify Markets is enabled and a customer browsed in a non-default market or currency, the offer will not show even if the underlying payment was processed correctly. See [Does Multi-Currency Checkout Impact Aftersell?](/aftersell/does_multi_currency_checkout_impact_aftersell) for more detail. **4. Review the offer** * The upsell product is published and in stock in Shopify * The upsell product is not a bundle (bundle products cannot be used as upsell items due to a Shopify limitation) * If the upsell product is a subscription, confirm the original order does not already contain a subscription. Shopify only supports one subscription product per order. * In the offer editor under the **Product Details** widget, confirm "Skip offer if product is in original order" is not enabled. If it is enabled, the offer will be skipped for any customer who already has that product in their cart * Confirm the funnel's trigger conditions match the order. When multiple triggers are added to a funnel, ALL of them must be met (AND logic between triggers). Within a single trigger, only one of the selected options needs to match (OR logic within a trigger). The one exception is the Product Quantity trigger, which has a toggle to switch its internal logic from OR to AND. If any trigger is not matched, the funnel will not fire for that order. See [Understanding Conditional Logic for Post-Purchase Triggers](/aftersell/understanding_conditional_logic_for_post_purchase_triggers) for more detail. *** ## More detail on each cause If the checklist above didn't resolve it, the sections below cover every possible scenario in full. * [Aftersell is not set as the post-purchase app](#aftersell-is-not-set-as-the-post-purchase-app) * [The payment method is not supported](#the-payment-method-is-not-supported) * [Other Shopify order requirements](#the-order-doesnt-meet-shopifys-requirements) * [There is a product or offer issue](#there-is-a-product-or-offer-issue) * [Nothing above applies](#nothing-above-applies) * [How do I resolve this for all customers?](/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell) *** ## Aftersell is not set as the post-purchase app For post-purchase offers to appear, Aftersell must be selected as the active post-purchase page app in Shopify. To check: go to your Shopify admin, navigate to **Settings → Checkout**, and scroll to the **Post-purchase page** section. Confirm that Aftersell is selected. > [!WARNING] > > **Only one app can be active as the post-purchase page at a time.** Shopify only allows one app to be selected as the post-purchase extension. If you have multiple apps with post-purchase extensions installed, only the one selected in your Checkout settings will show. Other apps such as Thank You Page tools can still run alongside Aftersell since TYP operates separately from the post-purchase step and does not require this setting. *** ## The payment method is not supported Shopify's post-purchase API only works with specific payment methods. If a customer pays with an unsupported method, Shopify will not display the post-purchase page. These are Shopify-imposed limitations that apply to every post-purchase app, not just Aftersell. For the full list of platform-level limits, see [Shopify post-purchase API limitations](/aftersell/shopify_post_purchase_api_limitations). ### Supported and unsupported methods at a glance > [accordion] ✅ Supported payment methods > > | Payment method | Notes | > | - | - | > | **Shopify Payments (credit card)** | Regional sub-methods (iDEAL, Bancontact, Blik) are not supported. These appear under "Shopify Payments" in checkout but are bank transfers, not credit cards, and are not supported for post-purchase offers. In the Order Browser these orders appear as "Non-credit card" or "Unsupported gateway". | > | **Shop Pay (saved card, standard checkout)** | The accelerated button is not supported. Shop Pay as a saved card in standard checkout is supported, the customer goes through checkout normally. The Shop Pay accelerated button ("Buy with Shop Pay") bypasses the standard checkout flow entirely and is not supported. | > | **Authorize.net** | Not supported for [replacement upsells](/aftersell/replacement_upsells) | > | **Adyen** | Includes Adyen Payments credit card processing | > | **Pin Payments** | Credit card processing | > | **Other embedded direct credit card processors** | Must be fully embedded inline in Shopify's checkout, not a redirect | > [accordion] ⚠️ Conditionally supported payment methods > > | Payment method | Notes | > | - | - | > | **PayPal Express** | Requires Automatic Payments (Reference Transactions) to be approved. Shopify submits an approval request automatically when you install Aftersell, but approval can take a few days. Check the status in your PayPal account. Also note: PayPal Express only supports one upsell per checkout, Only the first upsell or downsell will appear. | > | **Braintree** | Without CVV verification only | > | **Stripe** | Older versions only. Newer versions no longer supported by Shopify. | > [accordion] ❌ Not supported payment methods > > | Payment method | Notes | > | - | - | > | **PayPal Payments Pro / Payflow Pro / Eway** | Providers that require the customer's CVN/CVV to be retained are not supported by Shopify's Post-Purchase Extensions API. Orders appear as "Unsupported gateway" in the Order Browser. | > | **BNPL (Klarna, Afterpay, Affirm, Sezzle, Shop Pay Installments, Zip)** | Use Thank You Page upsells instead | > | **Digital wallets + accelerated buttons (Apple Pay, Google Pay, Amazon Pay, PayPal button, Shop Pay button)** | Use Thank You Page upsells instead | > | **Bank transfers (iDEAL, Bancontact, Blik, Przelewy24)** | Use Thank You Page upsells instead | > | **Gift card / COD / Shopify store credit** | **Any** gift card payment on the order disqualifies it, whether the gift card covers the whole total or only part of it | *** ## The order doesn't meet Shopify's requirements Beyond payment method, Shopify enforces additional conditions before the post-purchase page will load. All of these are Shopify-imposed limitations that apply to every post-purchase app. See [Shopify post-purchase API limitations](/aftersell/shopify_post_purchase_api_limitations) for the complete reference. > [accordion] Order value is under \$0.50 > > Orders must be worth at least \$0.50. Fully discounted and free orders do not qualify. > [accordion] Order is in a non-default currency > > If your store has multi-currency enabled and the customer checked out in a currency other than your store's default, Shopify will not display the post-purchase page. > > If Shopify Markets is enabled, this applies at the market level too. A customer browsing in a non-default market may be routed to a different currency even if the payment itself is supported. See [Does Multi-Currency Checkout Impact Aftersell](/aftersell/does_multi_currency_checkout_impact_aftersell)? for more detail and steps to address this. > [accordion] Order includes duties or landed costs > > Orders with duties or landed costs do not qualify. > [accordion] Order is for local delivery > > Orders where the customer selected local delivery at checkout will not show the post-purchase page. > [accordion] Order has no shipping address > > If the order was completed without a shipping address (for example, a digital-only purchase or a customer who selected local pickup), post-purchase offers cannot load. Shopify requires a destination country code to be present. > > This is why orders containing only digital products never show post-purchase offers: checkout doesn't collect a shipping address for them. If the order also includes a physical product, checkout collects a shipping address and the order can still qualify. For digital-only orders, use [Thank You page offers](/aftersell/thank_you_page_extensions_overview) instead. > [accordion] Order was placed through an unsupported sales channel > > Post-purchase upsells only work for orders placed through the Online Store sales channel or an eligible headless/custom storefront channel. Orders from POS, TikTok, and subscription contract renewal orders will not show post-purchase offers. Draft orders are eligible and can show post-purchase offers. > [accordion] Shopify is under extreme load > > During flash sales or unusually high platform load, Shopify may briefly delay order creation. In these scenarios the post-purchase page may not appear even if the order meets all other requirements. *** ## There is a product or offer issue Even when the order qualifies, the offer itself may be blocked from displaying. > [accordion] The offer product is out of stock > > If the product's inventory is tracked and the stock level is zero or below, the offer will not show. Add fallback products or ensure your offer product has available inventory. > [accordion] The offer product is a bundle > > Bundle products cannot be used as post-purchase upsell items due to a Shopify limitation. > > If a product you expect to see as an upsell simply doesn't appear (rather than loading and then disappearing), the most likely cause is a bundle product in the upsell offer. Bundle products are filtered out before the offer renders, so they never show up on the offer card in the first place. Remove any bundle products from the offer and replace them with standalone products. A customer buying a bundle in their original order can still trigger a funnel. The restriction only applies to bundle products as the upsell item itself. > [accordion] Both the original order and the upsell contain subscription products > > If the original order includes a subscription product and the upsell product is also a subscription, the offer will be skipped. Shopify only supports one subscription product per order. > > **How to detect this:** Place a test order that includes a subscription product and watch whether the upsell skips immediately to the downsell without showing. If so, there is a subscription in the original order conflicting with the subscription upsell. > > **To fix this:** Add a "Does not include subscription products" trigger to funnels that contain subscription upsells. This ensures the funnel only fires for orders without a subscription, preventing the conflict entirely and showing the offer to the right customers. > [accordion] The "skip if already in order" setting is enabled > > In the offer editor under the Product Details widget, there is a setting to skip the offer if the upsell product already exists in the original order. If this is enabled and the customer already has that product in their cart, the offer will be silently skipped. Review this setting in your offer and confirm it matches your intended behaviour. > [accordion] All three post-purchase offer slots have already been accepted > > A customer can accept a maximum of three post-purchase offers per checkout. This is a Shopify platform limit. The Thank You Page is a separate experience and allows for one additional accepted offer, so a customer who accepts all three post-purchase offers can still accept one more on the Thank You Page. See [Post-purchase upsells vs Thank You Page upsells.](/aftersell/one_click_upsells_vs_thank_you_page_upsells) *** ## Nothing above applies If all of the above has been checked and the offer still isn't showing, confirm the following: * The funnel's trigger conditions match the order. All conditions use AND logic, meaning every single condition must be met. A single unmatched condition silently blocks the funnel from firing. See [How to Configure Post-Purchase Triggers](/aftersell/how_to_configure_post_purchase_triggers) and [Understanding Conditional Logic for Post-Purchase Triggers](/aftersell/understanding_conditional_logic_for_post_purchase_triggers). * There is at least one funnel with a **Show this funnel for all customers** catch-all trigger set to the lowest priority. Without this, some orders may not match any funnel at all. * The funnel is published and active in the Aftersell admin. * Aftersell is confirmed as the active post-purchase app in Shopify **Settings → Checkout → Post-purchase page**. Still not resolved? Reach out via chat or email us at [support@aftersell.app](mailto:support@aftersell.app) and include the order number. # Why isn't my checkout upsell displaying? Source: https://docs.aftersell.com/aftersell/why_isnt_my_checkout_upsell_displaying A complete breakdown of every reason your checkout upsell may not be showing, including setup, placement, trigger, and product/offer issues. Checkout upsells can fail to display for several different reasons. Work through the steps below in order to identify the cause. > [!NOTE] > > Checkout upsells are only available to Shopify Plus merchants, because Shopify's Checkout Extensibility API is Plus-only. If you are not on Shopify Plus, checkout upsells will not appear regardless of your configuration. See [Why can't I see the checkout tab?](/aftersell/why_cant_i_see_the_checkout_tab) > [!TIP] > > If an upsell doesn't display, the customer's checkout experience is unaffected — nothing breaks on the customer's side. *** ## Where to start Most display problems come down to one of four things: the widget isn't enabled, the app block isn't added/saved in Shopify, the placement doesn't match, or the trigger conditions aren't met. Confirm the basics first: * You are on a **Shopify Plus** plan * The widget is **enabled** in the Aftersell Checkout editor (the **Enable** toggle in the top right of the widget settings is on) * The app block has been **added and saved** in the Shopify Checkout Editor * The placement selected in Shopify **matches** the placement set in Aftersell If those all check out and the upsell still isn't showing, work through the detailed causes below. * [Widget is not enabled or not added to checkout](#widget-is-not-enabled-or-not-added-to-checkout) * [Placement mismatch between Aftersell and Shopify](#placement-mismatch-between-aftersell-and-shopify) * [Trigger conditions are not being met](#trigger-conditions-are-not-being-met) * [There is a product or offer issue](#there-is-a-product-or-offer-issue) * [Shop Pay widgets not showing](#shop-pay-widgets-not-showing) * [Testing in the Shopify preview](#testing-in-the-shopify-preview) * [Nothing above applies](#nothing-above-applies) *** ## Widget is not enabled or not added to checkout For a checkout upsell to display, two things must be true at the same time: 1. The widget must be **enabled** in the Aftersell Checkout editor 2. The app block must be **added and saved** in the Shopify Checkout Editor If either is missing, the widget will not appear. **To enable the widget in Aftersell:** 1. Go to **Apps → Aftersell → Checkout** 2. Open the upsell widget you want to display 3. Confirm the widget is switched on — the header shows a toggle beside an **Active** / **Inactive** badge. (On the earlier Checkout editor this is an **Enable** / **Disable** button pair in the widget card header.) **To add the app block in Shopify:** 1. Go to **Settings → Checkout** in your Shopify Admin 2. Click **Customize** next to your checkout profile 3. Click **Add app block** and select the Aftersell upsell widget 4. Position it where you want it to appear 5. Click **Save** — changes are not applied until saved *** ## Placement mismatch between Aftersell and Shopify A placement mismatch is one of the most common reasons a checkout upsell fails to display. Aftersell supports multiple placements so you can run more than one widget of the same type on the same checkout page. Each placement corresponds to a **separate app block** in the Shopify Checkout Editor, and the placement selected in Shopify must match the one configured in Aftersell. The Upsell Widget app block's **Placement** dropdown offers eight values: **Default placement (Upsell Widget 1)**, **Additional placement 1 (Upsell Widget 2)**, **Additional placement 2 (Upsell Widget 3)**, and five page-widget slots **page-upsell-001** through **page-upsell-005**. If the placements do not match, the widget will not appear or may display in the wrong location. **To fix a placement mismatch:** 1. In the Aftersell Checkout editor, open the upsell widget and note which placement is selected (for example, **Additional placement 1**) 2. In the Shopify Checkout Editor, remove the existing app block for this widget 3. Click **Add app block**, select the Aftersell upsell widget, and choose the **same placement** as configured in Aftersell 4. Save your changes [Learn more about matching placements →](/aftersell/how_to_configure_checkout_widgets#matching-placements-in-the-shopify-checkout-editor) *** ## Trigger conditions are not being met If your upsell widget has triggers configured, it will only display when those conditions are met by the cart. If the cart does not satisfy the trigger conditions, the widget will not appear — this is expected behavior. Available trigger types include: * **Specific products / collections:** a chosen product, variant, or collection is (or is not) in the cart * **Quantity of a specific product:** e.g. 2 or more of a product * **Product tag / product type / variant name:** any cart item matches a Shopify tag, product type, or variant title (case-insensitive) * **Product metafield / variant metafield:** a cart product or variant has a metafield value that matches * **Cart subtotal:** the subtotal meets a threshold (see the note below on how the subtotal is calculated) * **Cart quantity:** total number of items in the cart * **Subscription in cart:** whether any cart item is a subscription * **Cart attribute:** a cart-level attribute key/value matches (useful for data set by other apps) * **Applied discount / discount value:** a specific discount code is applied, or total discount meets a threshold * **Shipping country:** the customer's shipping country (and optionally province) matches * **Customer language:** the checkout's language matches (for example, show French content only to French checkouts) * **Customer tags:** the logged-in customer has the required tags * **Device type:** the customer is on the configured device (desktop or mobile) > [!NOTE] > > The **cart subtotal** used for trigger evaluation excludes any line items already added by accepted upsells (those tagged with the `__as_offer_id` cart attribute). So accepting one upsell will not, by itself, push the subtotal over a threshold that gates another widget. **Combining conditions:** when a widget has multiple conditions, they are joined with either **AND** or **OR** (your choice), and conditions can be nested into groups for more complex logic. Under an **AND** join, every condition must be met — a single unmatched condition silently blocks the widget. Under an **OR** join, any one match is enough. Review each condition individually against your test cart. **To troubleshoot triggers:** 1. Open the widget in the Aftersell Checkout editor and review its trigger conditions 2. Temporarily set the trigger to **Show for all customers** to confirm the widget itself is working, then re-enable your specific triggers 3. Make sure at least one widget uses a **Show for all customers** trigger at the lowest priority as a catch-all, so some offer always displays even when no targeted widget matches [Learn more about checkout triggers →](/aftersell/checkout_triggers) *** ## There is a product or offer issue Even when the widget is enabled, correctly placed, and its triggers match, the offer itself may be filtered out before it displays. > [accordion] The upsell product is out of stock > > If the product's inventory is tracked and no variant is available for sale, the offer will not display. Make sure at least one variant of the upsell product has available inventory, or use a product that doesn't track inventory. > [accordion] The upsell product is in Draft or Archived status > > The upsell product must be a live, sellable product. Products in **Draft** or **Archived** status in Shopify are filtered out and will not appear as offers. Open the product in Shopify Admin and confirm its status is **Active**. > [accordion] The upsell product is already in the cart and 'hide if already in cart' is enabled > > The **Hide offer if product already in cart** setting hides the offer when that product is already in the customer's cart. It is on by default for standard product offers. If you want the upsell to show regardless, disable this setting in the offer configuration. > [accordion] The upsell product is a subscription but has no selling plans > > If **Subscription purchase option** is set to **Subscription** but the product has no selling plans configured in Shopify, the offer is filtered out. Confirm the product has at least one active selling plan, or change **Subscription purchase option** to **One-time product** (the other choices are **Subscription** and **Subscription and a one-time product**). > [accordion] The replacement upsell target product is not in the cart > > If the offer is configured as a replacement upsell, it only displays when the product it is meant to replace is present in the cart. Confirm the correct target product is selected in the replacement upsell configuration. > > A replacement offer is also skipped when the target line **already has a discount applied** — unless you tick **Allow replacement if product has discount applied** — or when the target line's **quantity is above one**, unless you tick **Allow replacement if product quantity greater than 1**. > [accordion] The maximum number of accepted offers has been reached > > If **Max number of accepted offers** is set on the widget, the upsell stops displaying once the customer has accepted that many offers from the widget in the current checkout. This is intentional — once the limit is reached, the widget hides itself. The field applies to Single product and Multi product upsells only; Checkmark upsells have no such limit. > [accordion] The offer was already added to the cart by this widget > > For **single** and **multi-product** upsells, once the customer adds the offer product to their cart, the offer is hidden (the product is already in the cart). **Checkmark** upsells behave differently — they stay visible with the checkbox checked after being accepted. *** ## Shop Pay widgets not showing Checkout widgets do not display in Shop Pay by default. To show your upsell in Shop Pay, you must explicitly enable it: 1. Open the Aftersell upsell app block in the Shopify Checkout Editor 2. In the block settings, find the **Checkout behaviour** section 3. Check the **Include app block in Shop Pay** option 4. Save your changes [Learn more about Shop Pay widgets →](/aftersell/show_checkout_widgets_in_shop_pay) *** ## Testing in the Shopify preview The Shopify Checkout Editor preview does not reliably render widgets. A widget can be configured correctly and still not appear in the editor preview, because the preview can't simulate page tagging and trigger conditions. Don't rely on the editor preview to confirm whether a widget is working. **To test your upsell accurately:** 1. Temporarily set the widget trigger to **Show for all customers** 2. Place a real test order using Shopify's test payment gateway (or a discount code that makes the order free) 3. Confirm the widget appears during the actual checkout flow 4. Reset your triggers after testing *** ## Nothing above applies If you've worked through everything above and the upsell still isn't displaying, confirm the following: * The widget is **enabled** in Aftersell and the app block is **added and saved** in the Shopify Checkout Editor * The **placement** in Aftersell matches the placement selected in Shopify * The trigger conditions match your test cart — remember that under an **AND** join, every condition must be met * There is at least one widget with a **Show for all customers** trigger at the lowest priority as a catch-all * The upsell product is **Active**, in stock, and (for subscription offers) has active selling plans * You are testing with a **real checkout flow**, not the Shopify editor preview * Try clearing your browser cache or testing in an incognito window — changes can take a few minutes to propagate Still not resolved? Reach out via chat or email us at [support@aftersell.app](mailto:support@aftersell.app) and include a description of your widget setup and the test order details. # Thank you page troubleshooting Source: https://docs.aftersell.com/aftersell/widget_not_displaying_on_the_thank_you_page This article covers common reasons why a widget may not appear on the TYP and provides troubleshooting steps to help resolve the issue. If something isn't working on your Thank You Page, start here. This guide covers the most common issues and how to fix them. ## What are you experiencing? * [**My Thank You Page widget is not showing**](#widget-not-displaying) * [**My Thank You Page analytics have dropped to zero**](#analytics-dropping-to-zero) * [**My post-purchase offer is not appearing on the Thank You Page**](#post-purchase-offers-not-appearing) *** ## Widget Not Displaying If your Thank You Page widget is not showing, work through the following checks in order. ### 1. Check the Display Sequence Understanding the upsell display flow can help identify where issues might occur. The sequence follows this order: Customer completes checkout → 1-Click Upsell Offers are presented (if eligible) → Customer proceeds to the Thank You Page where additional upsells and widgets may display 1-Click Upsell Offers appear in a layer between checkout and the Thank You Page. If a 1-Click offer fails to load or is misconfigured — for example, if the product is unavailable or the funnel has no active offers — the customer may be sent directly to the Thank You Page without seeing the upsell, which can make it appear as though Thank You Page widgets are also missing when they are not. ### 2. Check Funnel Priority Another funnel might be displaying instead of the one you're trying to test due to having a higher priority. 1. View the priority of your funnel on the left side of the funnel table. 2. To adjust priority levels, use the **Manage Priority** button at the top right of the funnel table. ![Aftersell post-purchase funnels table highlighting the Priority column and Manage priority button](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/typ-troubleshooting-post-purchase-funnels-table.png?fit=max\&auto=format\&n=SnVX3h-PpMMxQMDU\&q=85\&s=28ffd7ffe9203f3fe7b57dda58836b77) The funnel with priority level 1 is checked first, followed by priority level 2, and so on. ### 3. Check Funnel Triggers The order you're placing may not be meeting the trigger requirements set for your funnel. Review your triggers carefully to ensure they are configured correctly. For example, if your trigger is set to show the widget for orders less than \$50.01, an order with a \$50 item may not qualify once shipping is added, pushing the total above that threshold. Adjusting the trigger value to better reflect real order totals including shipping should resolve this. ### 4. Check Product Availability The product you're trying to upsell may not be available for purchase. For Thank You Page offers to display correctly: * Ensure the product is included in the **Online Store** sales channel and set to **Active** status * Verify the product is in stock - out-of-stock items will not be shown * Check that the product variants you want to offer are properly configured ### 5. Re-Select Upsell Products Aftersell may lose connection to a product if significant changes are made in Shopify, such as a handle change or the removal of variants. To restore the connection, simply reselect the product in the offer settings. This prompts Aftersell to update with the new product information. ### 6. Check Thank You Page Extensibility If you have upgraded to Shopify's Thank You Page extensibility, make sure you are using the Extensions version of the widgets, not the Scripts version. * **Scripts widgets** only work with the Legacy version of the Thank You Page * **Extensions widgets** are required for stores that have upgraded to Thank You Page extensibility Once you have designed your widgets in Aftersell, you need to manually add the app block to your Thank You page in the **Shopify Checkout Editor**. > [!NOTE] > > 1-click upsell offers are automatically integrated and do not need to be manually added to the Thank You Page. Only Thank You Page widgets require manual app block setup. Click the button in Aftersell to open the Shopify Checkout Editor: ![Aftersell Thank You Page Editor with the Open Shopify editor button highlighted](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/typ-troubleshooting-open-shopify-editor-button.png?fit=max\&auto=format\&n=SnVX3h-PpMMxQMDU\&q=85\&s=f75f2c32022470d81a1503e054ea1299) Then add the corresponding app block: ![Shopify Checkout Editor Thank you page block picker listing Aftersell app blocks](https://mintcdn.com/aftersell/SnVX3h-PpMMxQMDU/images/aftersell/typ-troubleshooting-checkout-editor-thank-you.gif?s=c5ad7e5c55ddbef3f14182c5fd920c0e) > [!TIP] > > Place your widget toward the top of the Thank You page for best visibility. Widgets positioned lower on the page may not be seen on all devices, particularly on mobile where customers are less likely to scroll. *** ## Analytics Dropping to Zero If your Thank You Page analytics have suddenly dropped to zero or are showing no impressions, work through the following checks. ### 1. Check the App Block is Still Active The most common cause of analytics dropping to zero is the Thank You Page app block being removed or disabled in the Shopify Checkout Editor. 1. Go to your Shopify Admin and open the Checkout Editor 2. Navigate to the Thank You page 3. Confirm the app block for each widget you use is present and enabled — every widget type is a separate block (**TY Product Recommendation Widget**, **TY Testimonials Widget**, **TY FAQs Widget**, **TY Text Widget**, **TY Image Widget**, or **TY Gift with Purchase**) 4. If it is missing, re-add it and save ### 2. Check Funnel Status Confirm your funnel is still set to **Active** in the Aftersell dashboard. If it was accidentally paused or disabled, no widgets will display and no impressions will be tracked. ### 3. Check Trigger Conditions If your funnel triggers have been updated recently, they may no longer be matching orders. Review your trigger conditions and place a test order that should qualify to confirm whether the widget appears. ### 4. Check the Date Range Make sure the date range in your analytics dashboard is set correctly. If the range was accidentally changed, it may appear as though analytics have dropped when they are actually being filtered out. ### 5. Check for Shopify Updates If Shopify was recently updated or your checkout settings were changed, one or more app blocks may have been removed as part of the update. Each widget type is a separate block, so check every one you use (**TY Product Recommendation Widget**, **TY Testimonials Widget**, **TY FAQs Widget**, **TY Text Widget**, **TY Image Widget**, or **TY Gift with Purchase**), re-add any that are missing to the Thank You page in the Shopify Checkout Editor, and save. *** ## Post-Purchase Offers Not Appearing A **post-purchase offer** is any upsell or cross-sell that a customer sees after they have completed payment. In Aftersell, there are two types: * **1-Click Upsell offers** — appear between the checkout confirmation and the Thank You Page. These use Shopify's native post-purchase extensibility. * **Thank You Page widgets** — appear on the Thank You Page itself, after the customer has already arrived there. If your offer is not appearing, first confirm which type you have set up, then work through the relevant checks below. ### 1. Confirm the Offer Type Make sure you have the correct offer type configured for what you're trying to achieve. If you are expecting a Thank You Page widget but have only set up a 1-Click offer, it will not appear on the Thank You Page. ### 2. Check the Smart Funnel The Smart Funnel does not support Thank You Page upsells. If you are relying on the Smart Funnel to show Thank You Page offers, they will not appear. You need a manual funnel with Thank You Page widgets configured. See [How to Configure Thank You Page Widgets](/aftersell/how_can_i_set_up_and_customize_thank_you_page_upsells_in_aftersell) for setup instructions. ### 3. Check Payment Method Compatibility Unlike 1-Click offers, Thank You Page widgets are not subject to Shopify's payment method restrictions. If your offer is not appearing and you suspect a payment method issue, confirm you have set it up as a Thank You Page widget rather than a 1-Click offer. ### 4. Check Funnel Triggers and Priority Follow the same trigger and priority checks outlined in the [Widget Not Displaying](#widget-not-displaying) section above. *** **Need help?** If you have worked through all the steps above and the issue persists, reach out to our support team via the live chat in the bottom right corner of the app. # Post-purchase analytics metrics reference Source: https://docs.aftersell.com/aftersell/analytics_metrics_reference Metric and formula catalog for Aftersell post-purchase analytics: Funnels, Tests, and Product Page Upsell metrics, and subscription-upgrade chart definitions. This page is the complete metric and formula catalog behind the Aftersell post-purchase [analytics dashboard](/aftersell/analytics_in_aftersell). Throughout the dashboard you can hover the **ⓘ info icon** next to any metric to see how it's calculated; the formulas here match those tooltips. ## How summary numbers are calculated The large summary numbers at the top of each graph are **weighted averages** of the data shown, which gives a more accurate overall view than a simple average. For example, across three days of conversion rates: * **Day 1:** 3 accepted / 10 shown = 30% * **Day 2:** 1 accepted / 9 shown = 11% * **Day 3:** 5 accepted / 15 shown = 33% The summary number is `(3 + 1 + 5) ÷ (10 + 9 + 15) = 26.5%`, not a simple average like `(30 + 11 + 33) ÷ 3 = 24.7%`. Weighting ensures days with more impressions have the right impact on your totals. ## Funnels tab metrics | Metric | What it measures | Formula | | - | - | - | | **Revenue** | The total revenue generated by Aftersell from Post-purchase and Thank You page offers, in the shop currency. Gross before costs, but after any discount the customer received. Revenue from other products in the order is not included. | `sum(upsell revenue) + sum(downsell revenue) + sum(TY page upsell revenue)` | | **Revenue per visit** | The average revenue per unique page visit. A unique visit is counted once per customer, even if they view the page multiple times on a single order. The recommended way to measure performance over time. | Post-purchase: `post-purchase revenue / unique post-purchase visits` TY Page: `TY page revenue / unique TY page visits` | | **Product profit** | The total product profit generated by Aftersell (revenue minus cost of goods sold). | `sum(revenue) - sum(cost of goods sold)` | | **Product profit per visit** | The average product profit per unique page visit. | Post-purchase: `post-purchase profit / unique post-purchase visits` TY Page: `TY page profit / unique TY page visits` | | **Impressions** | The total number of times funnel offers were viewed. Counted once per order, even if the same offer is seen multiple times during the same order. | `sum(offer views across all selected funnel offer types)` | | **Conversion rate** | The percentage of offer views that resulted in an accepted offer. | `(accepted offers / offer impressions) x 100` | | **Accepted offers** | The total number of offers accepted. Counted when a customer clicks "Accept" and completes the purchase. | `sum(accepted offers across all selected funnel offer types)` | | **Product profit margin** | The ratio of product profit to revenue. If your products had no costs, this would be 100%. | `(product profit / revenue) x 100` | | **Average upsell value** | The average revenue per accepted upsell item. Particularly useful when using dynamic products in offers. | `revenue / accepted offers` | > [!NOTE] > > Product profit analytics is currently in Beta; data starts tracking one day after activating, with no historical backfill. Contact support to enable it. ### Top Performing Products table | Column | How it is calculated | | - | - | | **Product** | The upsold product name | | **One column per offer slot** (Upsell #1-3, Downsell #1-2, Thank you page) | The conversion rate for that product in that slot: `(accepted upsells containing the product in that slot / impressions for that product in that slot) x 100` | | **Revenue** | Total revenue generated from accepted upsells of this product | | **RPV** | Revenue per visit for this product | There is no single "Conversion rate" column; the rate is broken out per offer slot. The conversion rate here is based on accepted offers, not individual units sold (one offer containing 3 units counts as 1 accepted offer), but the revenue column reflects the total value of all units purchased. ## Subscription upgrades charts When a subscription provider is connected, the Funnels tab can show subscription-upgrade charts (toggle between one-time and subscription views). The headline area shows **Revenue** (one-time upsell revenue) and **Additional MRR** side by side. Additional MRR is the recurring monthly revenue your offers added in the period (new subscriptions plus products added to existing subscriptions), as contract price normalized to a month, not cash collected; churn is not subtracted. | Chart | What it measures | | - | - | | **Revenue collected from subscriptions** | Cash collected on subscriptions your offers touched: the whole accept-order charge plus every renewal since, not just the part the offer added. | | **New recurring revenue** | Monthly recurring revenue from new subscriptions and lines your offers added to existing ones, normalized to a month so a quarterly plan counts a third of its charge. Repricing an existing plan is not counted. This is the chart view of the **Additional MRR** headline above. | | **Subscriptions started** | Brand-new subscriptions your offers created, per day. Adding a product to an existing subscription counts under Subscriptions modified instead. | | **Subscriptions modified** | Plan changes on subscriptions your offers created or changed, per day. | | **Subscriptions cancelled** | Cancellation events on subscriptions your offers created or changed, per day (see below). | | **Active subscriptions** | Subscriptions your offers created or changed that were still active at the end of the most recent measured day. A balance, not a running total. Narrows by funnel only. | | **Refunds** | Refunded value on subscription upgrade orders, per day. | Coverage notes may appear when data is incomplete: where a provider has never sent cancellation data, Active subscriptions can only rise, so read it as an upper bound. Subscription data is updated every 30 minutes, so it can trail your live one-time numbers. ### Subscriptions cancelled chart This chart counts cancellation **events**, not distinct subscriptions, so a subscription that cancels more than once can be counted more than once. It narrows by funnel only (offer and device filters don't apply). Cancellations reach Aftersell over your subscription provider's webhook; if the webhook isn't set up or needs attention, the chart is replaced by a locked card: | Lock state | What it means | Action | | - | - | - | | **Set up webhook** | No webhook has been configured for your provider. | Open Subscription Upgrades settings and complete webhook setup. | | **Update webhook** | Your webhook credentials are out of date. | Open Subscription Upgrades settings and update your signing secret. | | **Fix webhook** | Your provider refused the webhook registration. | Open Subscription Upgrades settings and re-register the webhook. | ## Tests tab metrics ### Group-level analytics | Metric | What it measures | Formula | | - | - | - | | **Profit per visit** | The average product profit per unique visit for this variation. | `profit for this variation / unique visits for this variation` | | **Profit** | The total product profit generated by this variation. | `revenue for this variation - cost of goods sold for this variation` | | **Revenue per visit** | The average revenue per unique visit for this variation. | `revenue for this variation / unique visits for this variation` | | **Revenue** | Total revenue generated by this variation. | `sum(upsold product revenue for this variation)` | | **Conversion rate** | Percentage of offer views that resulted in an accepted offer for this variation. | `(accepted offers for this variation / impressions for this variation) x 100` | ### Performance by variable Shows how each variable performs on average across all other variables. Switch the metric with the dropdown: | Variable | What it shows | | - | - | | **Profit per visit** | Average profit per visit for each variable value | | **Profit** | Total profit for each variable value | | **Revenue per visit** | Average revenue per visit for each variable value | | **Revenue** | Total revenue for each variable value | | **Conversion rate** | Conversion rate for each variable value | | **Impressions** | Total impressions for each variable value | When picking a winner, look for a variation that performs well across multiple metrics (higher profit per visit, higher revenue per visit, higher conversion rate, and comparable or better average upsell value), not just one. ## Product Page Upsells metrics | Metric | What it measures | Formula | | - | - | - | | **Revenue** | The total revenue from product page upsells. | `sum(PDP upsell revenue)` | | **Revenue per view** | The average revenue generated per unique view. | `revenue / unique impressions` | | **Unique impressions** | The number of unique views on product page upsells. | `sum(unique PDP views)` | | **Conversion rate** | The percentage of unique visitors who completed an order with a product page upsell. | `(upsold orders / unique impressions) x 100` | | **Purchased products** | The number of products purchased through a product page upsell. | `sum(PDP products purchased)` | | **Upsold orders** | The number of orders that included a product purchased through a product page upsell. | `sum(orders with PDP upsell)` | | **Revenue per order** | The average revenue per order containing a product page upsell. | `revenue / upsold orders` | | **Average upsell value** | The average revenue per product page upsell product purchased. | `revenue / purchased products` | | **Profit** | The total profit from product page upsells. | `sum(PDP upsell revenue) - sum(PDP upsell cost of goods sold)` | | **Profit per view** | The average profit generated per unique view. | `profit / unique impressions` | | **Average upsell profit** | The average profit per product page upsell product purchased. | `profit / purchased products` | | **Profit per order** | The average profit per order containing a product page upsell. | `profit / upsold orders` | # AftersellQL (AQL) reference Source: https://docs.aftersell.com/aftersell/aql_reference The AftersellQL query language reference: available metrics and dimensions, AQL clause syntax with examples, and timezone rules for the Explorer. Every query you build in the [Explorer](/aftersell/reports_explorer) is an **AftersellQL (AQL)** statement. Most of the time you build queries visually and never write AQL by hand; this page is the reference for the metrics and dimensions you can pick, the AQL text form, and the timezone rules. ## Available metrics These are the metrics you can pick, grouped the same way the metric picker groups them. ### Revenue & profit | Metric | Description | | - | - | | **Revenue** | Upsell revenue in your store's native currency. | | **Revenue (USD)** | Upsell revenue normalized to USD for cross-currency comparisons. | | **Revenue Per Visit** | Upsell revenue per impression session. Cannot be broken down by product, placement, funnel, or device. | | **Avg. Conversion Value** | Revenue per accepted offer. Also referred to as Average Upsell Value. | | **Upsell Revenue Per Order** | Upsell revenue (USD) divided by total orders. Store-level only. | | **Product Profit** | Revenue minus cost of goods sold (COGS) for upsold products. Relies on merchant-configured COGS, so treat it as an estimate: products without a tracked cost report revenue as profit, and cost coverage varies by store. Product-grain only; cannot be broken down by funnel, placement, or device. | ### Conversions | Metric | Description | | - | - | | **Conversions** | The number of accepted-offer events. One accepted offer is one conversion, so a session that accepts two offers counts twice. | | **Accept Rate** | Session-based: the share of sessions that saw an offer and accepted at least one. Computed independently of Conversions, from a different rollup, so it is not Conversions ÷ Impressions. | | **Units Sold** | Total units sold through upsell offers. | | **Decline Rate** | Percent of post-purchase offers explicitly declined. Post-purchase only. | ### Engagement | Metric | Description | | - | - | | **Impressions** | Unique sessions that saw an offer. | | **Show Rate** | Percent of decisions that resulted in an impression. | ### Store performance | Metric | Description | | - | - | | **Total Store Revenue** | Total Shopify-paid order revenue. Store-level only; cannot be broken down by surface, funnel, placement, or device. | | **Orders** | Total Shopify-paid orders. Store-level only. | | **Average Total Order Value** | Store revenue divided by orders. Store-level average order value. | ### Rokt network | Metric | Description | | - | - | | **Rokt Revenue** | Rokt-network revenue attributed to your store. | | **Rokt Transactions** | Rokt-network transaction count for your store. | | **Rokt Revenue / Transaction** | Rokt revenue divided by transactions per time bucket. | | **Rokt Impressions** | Total Rokt-network impressions across your store's placements. Distinct from upsell **Impressions**. | | **Rokt Referrals** | Rokt-network referrals, positive engagements that sent the shopper to a Rokt partner. | ## Dimensions Dimensions break a metric down by an attribute. Not all dimensions are compatible with every metric; the Explorer automatically prevents incompatible combinations (for example, **Decline rate** and **Show rate** cannot be broken down by **Currency**). ### Available dimensions | Dimension | Description | | - | - | | **Date** | Groups results by day, week, or month. | | **Surface** | The upsell surface: PPU (post-purchase), Checkout, Thank You Page, or Cart. | | **Funnel** | The specific funnel the offer belongs to. | | **Product** | The upselled product. | | **Placement** | The placement within a funnel. | | **Device** | The device type: Mobile, Desktop, or Unknown. There is no separate tablet value. | | **Currency** | The ISO currency code (for example, USD, EUR, GBP). Useful for multi-currency stores. | ### Unavailable dimensions The following are a work in progress. They appear in the picker but show as 'Not compatible' for every metric until implemented. | Dimension | Description | | - | - | | **Flow type** | The type of upsell flow. | | **Experiment** | The A/B test or experiment variant. | | **Outcome** | The decision outcome (for example, eligible, out of stock). | | **Reason code** | The reason for a decision outcome. | | **Scope** | The decision scope (Flow, Experience, Placement, or ItemSlot). | | **Response type** | The offer response (Accepted, Declined, or Timeout). | ## AQL statement syntax An AQL statement is a single question made of clauses. Only `SELECT` and a time range (`SINCE`) are required; everything else is optional. When you include optional clauses, they must appear in this order: ```text theme={"theme":{"light":"snazzy-light","dark":"github-dark"}} SELECT -- what to measure (required) WHERE -- narrow the data GROUP BY -- break the numbers down SINCE