Configure Web Products
Overview
Configuring products for web funnels involves several steps:
- Set up products in your web payment provider's dashboard.
- Add products in Product Hub.
- Configure a web paywall.
- Set up a web placement.
Before You Begin
Ensure the following prerequisites are complete before working with products in Flows:
- You have connected your Stripe or Paddle accounts via the Web Payments page.
- All relevant products have been added in their respective dashboards. Refer to our guides for Stripe and Paddle.
Adding Products in Product Hub
Adding New Products
- Navigate to the Product Hub.
- Click Add Product under the desired product group.
- Enter the following information:
- Product Name
- Product ID and Price ID (as defined in Stripe or Paddle).
- Click Save.
Adding Products from the Uncategorized Section
If a product is in the Uncategorized section:
- Click on the product.
- Select Move to Product Group.
- Configure the identifiers as follows:
- Enter Product ID and Price ID.
- Click Save.
Configuring a Web Paywall
Step 1: Create a Web Paywall
- Go to the Web Paywalls page.
- Click Create Paywall.
- Provide a Paywall Name and Identifier, then click Save.
Step 2: Add Products to the Paywall
- After creating the paywall, click the Pencil icon to edit.
- In the paywall editor, click Add Product.
- Use the interface to:
- Add products.
- Delete products.
- Change their order.
For further details, refer to the Paywalls Guide.
Setting Up a Web Placement
Step 1: Create a Web Placement
- Navigate to the Web Placements page.
- Click Create Placement.
- Enter a Placement Name and Identifier, then click Save.
Step 2. Set up paywall target audience.
Select a paywall configured from the previous step for this placement. You can set an audience segment for each paywall in the placement. For additional information, see the Placements Guide.
Setting Up Product Macros
Overview
Macros allow developers to set static values for each product. These values are automatically fetched by a Framer component and applied to the funnel’s paywall, replacing corresponding placeholders.
Example
If you set the full-price
macro to "$9.99", this value will appear in the relevant paywall label.
Current Limitations
- Only static macros are supported (dynamic macros are not available yet).
Available Macros
Macro Name | Description | Example |
---|---|---|
full-price | Displays the full price. | $9.99 |
new-price | Displays the discounted price. | $2.99 |
old-price | Displays the previous (strikethrough) price. | $4.99 |
discount | Shows the discount percentage. | 30% |
duration | Displays the subscription duration. | month |
custom-1 | Custom label for additional messaging. | Sale |
custom-2 | Additional custom label. | Limited Time |
custom-3 | Additional custom label. | Exclusive |
Using Sandbox and Production Environments Simultaneously
You can configure a web placement to include both sandbox and production web products, making it easier to test your website while it is live in production.
Steps to Set Up:
-
Create Test and Production Products
Navigate to the Products section in Product Hub and create separate test and production products. -
Set Up Paywalls
Create two paywalls:- One containing only test products.
- Another containing only production products.
You can use any identifier for the paywalls.
-
Configure Placement with Paywalls
Add the two paywalls to your placement:- Place the paywall with test products at the top.
- Place the paywall with production products below it.
-
Set Paywall Audiences
Assign audiences to the paywalls:- For the top paywall (test products), select the
Sandbox Users
audience. - For the bottom paywall (production products), select the
All users
audience. - Enable both paywalls.
- For the top paywall (test products), select the
-
Update Website Body Script
Replace theApphud.init
method with the following script:const debugParam = new URLSearchParams(window.location.search).get('debug') === 'true'; // Initialize SDK with debug parameter from query parameters apphud.init({ apiKey: "YOUR_API_KEY", version: "1.0", debug: debugParam });
-
Testing
- Test your website by appending
debug=true
to the URL:https://yourwebsite.com?debug=true
- Test your website by appending
-
Once
debug: true
parameter is passed to the Apphud SDK's init method, the current web user will match to the Sandbox Users audience, and a test paywall will be returned. -
Important Note
- To easily identify when you're viewing the test paywall, modify product details in one of the following ways:
- Adjust macros for test products to display distinct prices or custom symbols.
- Use different prices for test and production products.
- To easily identify when you're viewing the test paywall, modify product details in one of the following ways:
This setup ensures seamless testing and clear differentiation between test and production environments.
Updated 3 days ago