创建 Android 订阅介绍性优惠
复制一个包含安装步骤和本插件的完整 Markdown 指南的配置提示。
引入性优惠允许您向符合条件的用户提供免费试用或折扣引入性价格。引入性期限结束后,订阅将自动续订为标准价格,除非已取消。
概述
概述初期优惠是强大的工具,用于:
- 降低新订阅者的进入门槛
- 提高转换率
- 允许用户无风险试用您的高级功能
- 建立长期的订阅者关系
资格
概述用户可以在没有之前购买或接受订阅的初期优惠的情况下接受初期优惠。Google Play会自动处理资格。
前置条件
概述您必须首先 创建一个可自动续订的订阅 才能添加一个介绍性优惠
创建介绍性优惠
标题:创建介绍性优惠-
访问优惠配置
前往Google Play Console中的您的订阅并选择 添加优惠 按钮。

-
选择基本计划
一个模态窗口将出现,要求您选择基本计划。通常,您只会有一个基本计划。点击 添加优惠 继续。

-
配置优惠细节
请输入以下信息:
优惠 ID: 该优惠的唯一标识符
资格: 选择可以接收该优惠的人
- 新客户: 只有从未订阅过的用户
- 现有客户: 用户们之前订阅过
- 开发者决定: 自定义资格逻辑(native-purchases不支持)

-
添加阶段
点击 添加阶段 在页面底部定义您的优惠结构。
您可以添加最多两个阶段,允许组合,如:
- 免费试用仅限
- 仅限折扣价格
- 免费试用后折扣定期付款
-
选择阶段类型
选择三种阶段类型:
免费试用
- 免费试用期限内的免费访问
- 例如:7天免费试用,$9.99/月
一次性付款
- 一次性折扣价格,适用于特定期限
- 例如:$1.99/2个月,$9.99/月
折扣定期付款
- Reduced per-billing-cycle rate for multiple cycles
- Example: $4.99/month for 3 months, then $9.99/month
-
Configure Phase Duration
Set how long the introductory phase lasts:
- Days, weeks, or months
- Number of billing cycles
-
Finalize and Activate
Click Apply, then Save to activate the offer. The Activate button will become available once saved.
Offer Phase Examples
Section titled “Offer Phase Examples”Example 1: Simple Free Trial
Section titled “Example 1: Simple Free Trial”- Phase 1: 7 days free
- Then: $9.99/month standard pricing
Example 2: Discounted Introduction
Section titled “Example 2: Discounted Introduction”- Phase 1: $1.99 for the first month
- Then: $9.99/month standard pricing
示例 3:扩展试用 + 折扣
示例 3:扩展试用 + 折扣- 阶段 1:14 天免费
- 阶段 2:$4.99/月 2 个月
- 然后:$9.99/月标准定价
在您的应用程序中使用
在您的应用程序中使用native-purchases 插件自动处理引导性优惠资格和呈现:
import { NativePurchases, PURCHASE_TYPE } from '@capgo/native-purchases';
// Fetch products (includes intro offer metadata)const { products } = await NativePurchases.getProducts({ productIdentifiers: ['com.example.premium.monthly'], productType: PURCHASE_TYPE.SUBS,});
const product = products[0];
if (product.introductoryPrice) { console.log(`Intro price: ${product.introductoryPriceString}`); console.log(`Regular price: ${product.priceString}`); console.log( `Offer duration: ${product.introductoryPrice.subscriptionPeriod?.numberOfUnits} ${product.introductoryPrice.subscriptionPeriod?.unit}`, );} else { console.log('No intro offer configured for this product');}
// Purchase (Google Play applies intro pricing automatically if the user is eligible)const transaction = await NativePurchases.purchaseProduct({ productIdentifier: 'com.example.premium.monthly', planIdentifier: 'monthly-plan', // Base Plan ID from Google Play Console productType: PURCHASE_TYPE.SUBS,});
console.log('Introductory purchase transaction', transaction.transactionId);最佳实践
最佳实践- 免费试用期:3-14天适合大多数应用
- 折扣期:1-3个月适合培养习惯
- 价格折扣:50-70%折扣常规价格可以促进转化
- 清晰地显示引导价和常规价格
- 展示引导期后发生的事情
- 使取消变得容易和透明
- 提醒用户在引导期结束前
A/B Testing
A/B Testing测试不同优惠结构:
- 免费试用期限
- 折扣百分比
- 折扣时长
- 单阶段与多阶段
重要说明
每个订阅只能激活一个引导期优惠- 用户只能在每个订阅中一次性索取引导期优惠
- __CAPGO_KEEP_0__
- 升级/降级订阅时,优惠活动不适用
- 订阅升级/降级时,优惠活动的变化不会影响现有订阅者
故障排除
故障排除优惠活动未显示:
- 确认在Play Console中激活了该优惠
- 检查用户是否符合条件(可能之前已经使用过优惠)
- 确保应用程序使用最新的产品信息
错误用户接收到优惠:
- 检查是否正确配置了用户资格设置(新用户与老用户)
- 检查用户是否在不同设备上之前订阅过
- 确认Play Store账户历史
不在购买时应用的优惠:
- 确认产品 ID 与之匹配
- 检查该优惠是否仍然有效且未过期
- 验证优惠的日期范围设置
下一步
标题:下一步- 配置沙盒测试环境 测试您的优惠
- 在 Google Play Console 分析中监控转换率
- 考虑创建多个订阅等级,每个等级有不同的优惠
继续从创建 Android 订阅引导优惠
标题:继续从创建 Android 订阅引导优惠如果您正在使用 创建Android订阅介绍性优惠 来规划付款和购买,连接它与 使用@capgo/native-purchases 为native能力在使用@capgo/native-purchases, Capgo Pricing 为产品工作流程在Capgo Pricing, 付款系统 为实现细节在付款系统, @capgo/native-purchases 为实现细节在@capgo/native-purchases, 和 Getting Started for the implementation detail in Getting Started.