How to A/B test a Subscription Widget
The Subscription Widget empowers you to take your subscription offerings on the Shopify product page to the next level through a highly customized customer experience. You can also use a pre-built A/B testing template to design and test two separate widgets to understand your customers’ preferences.
This guide provides set-up instructions so you can A/B test the Subscription Widget.
- Shopify Checkout Integration
- Migrated Shopify Checkout Integration
Before you start
- This guide refers to the Subscription Widget (formally known as Subscription Widget 2.0). See Legacy Widget for information on the Legacy Widget (formally known as Subscription 1.0).
- The Subscription Widget is available to stores that meet the following criteria:
- Utilizes Product Subscription Plans
- To confirm your store is using Product Subscription Plans, refer to How to confirm your store uses Product Subscription Plans
- Has a Shopify 2.0 theme published
- To confirm that you have a published Shopify 2.0 theme, refer to Confirming the version of your Shopify theme
- Utilizes Product Subscription Plans
- You can only use one subscription widget on a specific product template at a time, and can only display the widget on product pages on your storefront
- You must disable the Legacy Widget when you enable the Subscription Widget
Approve the widget scopes
The first time you use the Subscription Widget, you’ll need to approve the required widget scopes in Shopify:
- Select Cross-Sell & Upsell in the merchant portal and click Product page.
- Click Get started.
- Click Approve permissions in Shopify to open your Shopify admin.
- Click Update. This will enable the following scopes:
write_pixelsread_customer_eventsread_markets
- Navigate back to the Product page in Recharge and click Get started again to design the widget.
Step 1 - Add the widget app block to your Shopify theme
Add the widget app block to the product page in your Shopify theme:
- Select Themes under Online Store to open the Theme Editor in Shopify.
- Click Customize on the theme you wish to edit.
- Use the Page Selector drop-down at the top of the page to switch from the Home Page to the Product page. Select the relevant Product Template or use the default one.
- Review the Product page. Make sure to view the product page for a subscription product.
- Click Add section and select Apps.
- Select Subscription Widget depending on your plan and the type of widget you are creating.
- Drag and position the widget as needed.
- Save your changes.
- Optional - Repeat Steps 4-9 to add the widget to additional product templates.
Step 2 - Access the canvas
Open the flow canvas in your Recharge merchant portal to create and customize your widget:
- Select Cross-Sell & Upsell in the merchant portal and click Subscription widget.
- Click Create widget from template.
- Select A/B test: optimize content and design.
- Click Set starting point to use the default configuration, or select a widget you've used before from the drop-down menu.
Step 3 - Review the trigger node
By default, when activated, Recharge displays the subscription widget to all customers whenever they open a product page for a subscription product.
You can keep this as is, or add a condition so the subscription widget appears only when a product uses a specific product template.
- Click on the Trigger node.
- Click Add to add a condition.
- Select Add product template to choose the template.
- Choose the product template from the list of available templates. You can choose multiple templates.
- Click Apply to set the condition.
Step 4 - Review the A/B test node
Recharge adds the A/B test node to the template by default. The node is automatically set to give customers a 50/50 chance of entering either path. Click a node to adjust the probability of a customer taking each path in the A/B test.
Step 5 - Customize the widget experience
Create and customize your widget directly in Recharge using the widget customizer:
- Click the Subscription widget node on the flow canvas.
- Click Customize subscription widget.
- Update the following settings to edit and customize the widget experience:
Use the widget preview on the right-side of the page to preview your changes in real-time. The widget preview may not display all customizations, as some settings are specific to certain subscription plan types. Be sure to adjust your plan type to view the applicable customizations. For example, the dynamic pricing setting only appears when you select the dynamic pricing plan type.
Default selections
Use the Default selections tab to confirm if customers should:
- Have the subscription or the one-time version of the product immediately selected when they access the product page
- See the one-time or subscription version of the product first when they access the product page
Styling
Change the widget colors, border radius, and size on the Styling tab.
Labels and inputs
Update the widget labels, such as “Subscribe and save”, “One-time” or the delivery frequency options.
Badge
Update the text and color for the subscription discount badge on the widget.
Recharge only displays the badge for products that include a Subscribe and Save discount and are offered as one-time purchases.
Benefits and information
Update the messaging customers see to encourage them to purchase the product as a subscription. This includes the discount amount, any benefits of subscribing, and drawbacks to making a one-time purchase, such as the discount amount they lose.
Variables
Use the following variables when designing your benefits and information content:
Section |
Variable |
Description |
Example |
| Labels and inputs > Frequency save | {discount} |
Inserts the discount value (percentage or amount) applied when a customer chooses a subscription frequency. | Save 15% when you subscribe monthly. |
| Badge > Badge Text | {maxDiscount} |
Displays the maximum available discount across all subscription frequencies. | Up to 25% off with subscription |
| Badge > Badge Text | {discount} |
Inserts the discount value (percentage or amount) applied when a customer chooses a subscription frequency. | Save 15% when you subscribe monthly. |
| Benefits and information > Static pricing | {discountPrice} |
Displays the discounted product price after applying the subscription discount. | Only $18.99 per order. |
| Benefits and information > Dynamic pricing | {initialDiscountAmount} |
Displays the discount amount applied to the first order only. | Get $5.00 off your first box. |
| Benefits and information > Dynamic pricing | {initialDiscountPercentage} |
Displays the discount percentage applied to the first order only. | Enjoy 20% off your first order |
| Benefits and information > Dynamic pricing | {recurringDiscountAmount} |
Displays the discount amount applied to each recurring order. | Save $3.00 on every renewal. |
| Benefits and information > Dynamic pricing | {recurringDiscountPercentage} |
Displays the discount percentage applied to each recurring order. | Enjoy 10% off every delivery. |
| Benefits and information > Dynamic pricing | {recurringDiscountCount} |
Displays the number of recurring orders the discount will apply to. | Discount applies for the first 3 orders |
| Benefits and information > Dynamic pricing | {recurringDiscountCountWithInterval} |
Displays how many orders and at what interval the discount applies. | Discount valid for 3 monthly orders. |
| Benefits and information > Benefits | {discount} |
Inserts the discount value (percentage or amount) applied when a customer chooses a subscription frequency. | Save 15% when you subscribe monthly. |
| Benefits and information > One-time drawbacks | {maxDiscount} |
Displays the maximum discount customers miss out on if they buy as a one-time purchase instead of subscribing. | You’ll miss out on 25% savings by ordering one-time. |
| Interval labels | {interval} |
Inserts the interval number (e.g., 1, 2, 3). | Deliver every 2 weeks. |
| Interval labels | {chargeInterval} |
Combines the interval number with the unit (day, week, month). | Charge every 3 months. |
| Interval labels | {unitPrice} |
Displays the price per unit when sold as part of a subscription. | Only $2.50 per bottle |
Learn more link
Recharge uses HTML and CSS to provide a default learn more template that highlights subscription benefits.
The content used in the default template is a collection of messaging that has been successful for other merchants. You can keep the text as is, or update the learn more content using HTML/CSS with more personalized information.
Interval labels
Update the interval labels used to display the subscription frequencies for the product, such as “day”, “week”, or “month”.
Optional - Preview the widget
Preview the widget on your storefront before activating it to confirm it appears as intended:
- Click the Subscription widget node on the flow canvas.
- Select Customize subscription widget.
- Click preview in your store.
- Use the drop-down menu to select a theme to preview the widget. You can use your active theme or select a draft theme to preview the widget on an unpublished theme.
- Search for a subscription product to use in your preview.
- Click Preview to open the widget on your storefront.
Step 6 - Save and activate the widget
You can test the automated flow before activating it to ensure it works as intended:
- Click Save in the top-right corner.
- Select Activate in the top right corner to enable the widget.
Step 7 - Test the widget on your storefront
Confirm that the widget acts and appears as you intended:
- Navigate to your Shopify storefront.
- Open the product page for a subscription product.
- Confirm that the widget appearance matches what you set in your Recharge merchant portal.
You can finish testing your widget here, or place a test order to fully test the customer experience.
Edit the widget
You cannot change the widgets configured for an A/B test flow after activating the flow. Recharge recommends duplicating your existing flow and applying your changes to the new one to make edits or update the widget.
Follow the steps below if you need to make any changes to A/B test widgets, including updating the benefit text or editing the interval labels:
- Select Cross-Sell & Upsell in the merchant portal and click Product page.
- Access the widget you want to duplicate.
- Click on the three vertical dots menu at top right and select Duplicate.
- Click on the Subscription Widget node to edit the widget. Click Apply to save your changes.
- Save and activate the widget.
- Navigate back to the Product page. Hover over the existing widget and click on the three vertical dots menu to reaccess the Actions menu.
- Click Deactivate to disable the original widget.
After deactivating the original widget, customers will only interact with the new widget that uses your applied changes.
Review Analytics
View your widget analytics to track its performance. Tracking starts automatically when you activate your widget, allowing you to monitor add-to-cart clicks and the resulting checkouts. Widget analytics excludes data from accelerated checkout buttons.
Click the Performance tab to view widget analytics.
- Review the widget analytics to gather more information on the following data points:
- Subscriber opt-in rate
- Page impressions
- Revenue
- Add-to-carts
- Checkout revenue
- Use the
Product,Template,Flow, orA/B testfilters to filter your data and understand how customers interact with the widget.
checkout.liquid theme file to customize the checkout experience. You must upgrade your Shopify Thank you page to ensure accurate tracking. Without Checkout Extensibility enabled, all subscription orders appear as one-time purchases (OTPs) in your Subscription Widget Analytics.Discrepancies between data sources
Subscription Widget analytics uses front-end pixels, which may result in missing data. It is expected that the data shown on the Subscription Widget Performance tab may differ from data available in Shopify, or other Recharge Analytics data.
Recharge doesn’t recommend relying on Widget Analytics as exact figures or a source of truth. However, this data is valuable for understanding trends and for measuring your widget's performance to optimize conversion rates and improve the customer experience.
Considerations
Consider the following when using the Subscription Widget or Advanced Subscription Widget:
Consideration |
Notes |
| Bundles |
|
| Product Subscription Plans |
|
| Page builder apps |
|
| Shopify themes |
|
| Shopify Markets |
|
| Price label |
|
| Quantity adjustments pricing |
|
| Payment |
|
| Compare at price |
|
| Advanced customizations |
|
| Widget placement |
|
Resources
Getting Started resources
Set-up instructions
- How to customize the Subscription Widget
- How to create different widgets for individual products using product templates in Shopify using the Subscription Widget
- How to A/B test a Subscription Widget
Troubleshooting resources
Frequently Asked Questions
Developer Docs
