page_view 事件当用户导航到您网站的新页面时,触发 page_view。在网站的每个页面上触发此事件,并可选择包含以下参数。
| 名称 | 类型 | 必要 | 描述 |
|---|---|---|---|
user_id | string | 否 | 客户的唯一标识符。长度至少应为 6 个字符。 |
view_item 事件当用户访问特定产品页面时触发该事件。要发送该事件,请包含下列参数:
| 名称 | 类型 | 必要 | 描述 |
|---|---|---|---|
currency | string | true | 由三个字母组成的 ISO 4217 货币代码 |
items | AxonItem[] | true | 事件中的商品 |
user_id | string | 否 | 客户的唯一标识符。长度至少应为 6 个字符。 |
value | number | 否 | 事件的货币价值。通过对每个商品项的 price × quantity 求和计算得出 |
add_to_cart 事件当用户在购物车中添加商品时触发此事件。要发送该事件,请包含下列参数:
| 名称 | 类型 | 必要 | 描述 |
|---|---|---|---|
currency | string | true | 由三个字母组成的 ISO 4217 货币代码 |
items | AxonItem[] | true | 事件中的商品 |
value | number | 推荐 | 购物车内所添加商品的货币价值。通过对每个商品项的 price × quantity 求和计算得出 |
user_id | string | 否 | 客户的唯一标识符。长度至少应为 6 个字符。 |
begin_checkout 事件当用户启动结账流程时触发此事件。要发送该事件,请包含下列参数:
| 名称 | 类型 | 必要 | 描述 |
|---|---|---|---|
currency | string | true | 由三个字母组成的 ISO 4217 货币代码 |
items | AxonItem[] | true | 事件中的商品 |
value | number | true | 事件的货币价值。通过对每个商品项的 price × quantity 求和计算得出 |
user_id | string | 否 | 客户的唯一标识符。长度至少应为 6 个字符。 |
purchase 事件当用户进行购买时触发此事件。要发送该事件,请包含下列参数:
| 名称 | 类型 | 必要 | 描述 |
|---|---|---|---|
currency | string | true | 由三个字母组成的 ISO 4217 货币代码 |
items | AxonItem[] | true | 事件中的商品 |
transaction_id | string | true | 交易的唯一标识符 |
value | number | true | 事件的货币价值。通过对每个商品项的 price × quantity 求和计算得出 |
shipping | number | 推荐 | 与交易相关的运输成本 |
tax | number | 推荐 | 与交易相关的税务成本 |
user_id | string | 推荐 | 客户的唯一标识符。长度至少应为 6 个字符。 |
AppLovin recommends the events listed below, but they are not required:
add_payment_info 事件Trigger this event when a customer submits their payment information to the site. For example, when a user fills in their payment information when they buy something. To send this event, include these parameters:
| 名称 | 类型 | 必要 | 描述 |
|---|---|---|---|
currency | string | true | 由三个字母组成的 ISO 4217 货币代码 |
items | AxonItem[] | 推荐 | 事件中的商品 |
payment_type | Payment Type | 推荐 | 使用的支付类型 |
value | number | 推荐 | 事件的货币价值。通过对每个商品项的 price × quantity 求和计算得出 |
user_id | string | 否 | 客户的唯一标识符。长度至少应为 6 个字符。 |
generate_lead 事件Trigger this event when a potential customer expresses interest, typically by submitting a form. For example, when a user submits a contact form to receive more information about a product. To send this event, include these parameters:
| 名称 | 类型 | 必要 | 描述 |
|---|---|---|---|
currency | string | 否 | 由三个字母组成的 ISO 4217 货币代码 |
user_id | string | 否 | 客户的唯一标识符。长度至少应为 6 个字符。 |
value | number | 否 | 事件的货币价值 |
login 事件当用户在网站上登入账户时触发该事件。要发送该事件,请包含下列参数:
| 名称 | 类型 | 必要 | 描述 |
|---|---|---|---|
user_id | string | 否 | 客户的唯一标识符。长度至少应为 6 个字符。 |
sign_up 事件Trigger this event when a user registers for an account on the site. For example, when a user registers for a new account by using their email or social media login. To send this event, include these parameters:
| 名称 | 类型 | 必要 | 描述 |
|---|---|---|---|
method | string | 推荐 | The method used for registration |
user_id | string | 否 | 客户的唯一标识符。长度至少应为 6 个字符。 |
search 事件当用户使用搜索栏搜索您网站上的内容时触发该事件。要发送该事件,请包含下列参数:
| 名称 | 类型 | 必要 | 描述 |
|---|---|---|---|
search_term | string | true | The term the user searched for |
results | AxonItem[] | 推荐 | 事件中的商品 |
user_id | string | 否 | 客户的唯一标识符。长度至少应为 6 个字符。 |
subscribe 事件用户订阅服务时触发该事件。例如,当用户订阅在线刊物等高级内容服务时。这通常意味着用户已经为会员付费。要发送该事件,请包含下列参数:
| 名称 | 类型 | 必要 | 描述 |
|---|---|---|---|
currency | string | 否 | 由三个字母组成的 ISO 4217 货币代码 |
user_id | string | 否 | 客户的唯一标识符 |
value | number | 否 | 事件的货币价值 |
remove_from_cart 事件当用户从购物车中移除商品时触发此事件。要发送该事件,请包含下列参数:
| 名称 | 类型 | 必要 | 描述 |
|---|---|---|---|
currency | string | true | 由三个字母组成的 ISO 4217 货币代码 |
items | AxonItem[] | true | 事件中的商品 |
value | number | 推荐 | 事件的货币价值。通过对每个商品项的 price × quantity 求和计算得出 |
user_id | string | 否 | 客户的唯一标识符。长度至少应为 6 个字符。 |
view_cart 事件当用户查看购物车时触发此事件。要发送该事件,请包含下列参数:
| 名称 | 类型 | 必要 | 描述 |
|---|---|---|---|
currency | string | true | 由三个字母组成的 ISO 4217 货币代码 |
items | AxonItem[] | true | 事件中的商品 |
value | number | 推荐 | 事件的货币价值。通过对每个商品项的 price × quantity 求和计算得出 |
user_id | string | 否 | 客户的唯一标识符。长度至少应为 6 个字符。 |
Axon Item 是大多数事件所需的常见对象。quantity1、price、item_name、item_id、item_variant_id、image_url 和 item_category_id 是该对象所必需,且这些字段的命名和格式必须与下表完全一致:
| 名称 | 类型 | 必要 | 描述 |
|---|---|---|---|
item_variant_id | string | true | 商品款式 ID,例如父级产品的一种尺码或颜色。您目录中的每个款式都必须拥有与任何其他款式或商品不同的 item_variant_id。 |
item_id | string | true | 商品本身的 ID,代表不受款式影响的父级产品。多个 item_variant_id 可以使用同一个 item_id。 |
item_name | string | true | 商品名称 |
price | number | true | 一个单位商品的价格。如果适用折扣,请将 price 设置为折扣后的单位价格,并在 discount 参数中指定单位折扣。 |
quantity | number | true1 | 商品数量 |
image_url | string | true | 商品图片 URL。文件扩展名必须为 .PNG、.JPG 或 .JPEG。 |
item_category_id | Category | true | The category ID for the item (see Category IDs below). Send the integer ID of the category. |
affiliation | string | 否 | 与产品相关的具体供应商、公司或实体店 |
discount | number | 否 | 应用于商品的单位折扣 |
item_brand | string | 否 | 商品品牌 |
1 view_item 事件不要求包含 quantity
Your item may be in one of several thousand possible categories.
Set item_category_id to the ID number corresponding to your chosen category.
The following list contains the complete set of categories and their ID numbers (in parentheses).
受支持的支付方式包括:
| 名称 | 描述 |
|---|---|
credit_card | 已保存或手动输入的信用卡 |
deferred | 延迟付款 (如果您计划稍后收款) |
redeemable | 可兑换的支付方式,如礼品卡、商店积分等 |
payment_on_delivery | A payment that is collected on delivery |
wallet | 已集成的钱包,如 PayPal、Google Pay、Apple Pay 等 |
other | 上文未定义的其他支付类型 |