Shopify のデータ機能
この記事では、どのようなShopifyデータがトラッキング追跡されるのか、ペイロードの例、履歴の埋め戻し、商品の同期など、Shopify機能の概要を説明する。
Shopify のイベント追跡
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"name": "ecommerce.product_viewed",
"properties": {
"product_id": "12345",
"product_name": "product",
"variant_id": "123",
"image_url": "www.image-url.com",
"product_url": "mystorefront.myshopify.com/product",
"price": 10,
"currency": "USD",
"source": "mystorefront.myshopify.com",
"metadata": {
"sku": "sku"
},
"type": [
"price_drop",
"back_in_stock"
]
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"name": "ecommerce.cart_updated",
"properties": {
"cart_id": "Z2NwLXVzLWVhc3QxOjAxSjk3UFg4RlFZMjVTVkRHRlc1RlI3SlRY",
"currency": "USD",
"total_value": 2000000,
"products": [
{
"product_id": "8266836345064",
"product_name": "PANTS!!!",
"variant_id": "44610569208040",
"image_url": "https://cdn.shopify.com/s/files/1/0604/4211/6328/files/1200px-Trousers-colourisolated.jpg?v=1689256168",
"product_url": "https://test-store.myshopify.com/products/pants?variant=44610569208040",
"quantity": 2,
"price": 1000000,
"metadata": {
"sku": "007"
}
}
],
"source": "https://test-store.myshopify.com",
"metadata": {}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"name": "ecommerce.checkout_started",
"time": "2022-05-23T13:52:38-04:00",
"properties": {
"cart_id": "eeafa272cebfd4b22385bc4b645e762c",
"total_value": 421.88,
"currency": "USD",
"products": [
{
"product_id": "632910392",
"product_name": "IPod Nano - 8GB",
"variant_id": "808950810",
"quantity": 1,
"price": 199,
"metadata": {
"sku": "IPOD2008PINK"
}
}
],
"source": "braze-mock-storefront.myshopify.com",
"checkout_id": "123123123",
"metadata": {
"checkout_url": "https://checkout.local/548380009/checkouts/123123123/recover?key=example-secret-token"
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"name": "ecommerce.order_placed",
"time": "2022-05-23T13:52:38-04:00",
"properties": {
"order_id": "820982911946154508",
"cart_id": "eeafa272cebfd4b22385bc4b645e762c",
"total_value": 421.88,
"currency": "USD",
"total_discounts": 5,
"discounts": [],
"products": [
{
"product_id": "632910392",
"product_name": "IPod Nano - 8GB",
"variant_id": "808950810",
"quantity": 1,
"price": 199,
"metadata": {
"sku": "IPOD2008PINK"
}
}
],
"source": "braze-mock-storefront.myshopify.com",
"metadata": {
"order_status_url": "https://apple.myshopify.com/690933842/orders/123456abcd/authenticate?key=abcdefg",
"order_number": 1234,
"tags": [
"heavy",
"heavy2"
],
"referring_site": "https://www.google.com",
"payment_gateway_names": [
"visa",
"bogus"
]
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"name": "shopify_fulfilled_order",
"time": "2022-05-23T14:44:34-04:00",
"properties": {
"order_id": 4444668657855,
"line_items": [
{
"quantity": 1,
"product_id": 6143032066239,
"sku": null,
"title": "Dark Denim Top",
"variant_id": 40094740549876,
"variant_title": "Small Dark Denim Top",
"vendor": "partners-demo",
"name": "Dark Denim Top",
"properties": [],
"price": "60.00",
"fulfillment_status": "fulfilled"
}
],
"shipping": [
{
"title": "Standard",
"price": "0.00"
}
],
"total_price": "130.66",
"confirmed": true,
"total_discounts": "0.00",
"discount_codes": [],
"order_number": 1093,
"order_status_url": "https://test-store.myshopify.com/",
"cancelled_at": null,
"tags": "",
"closed_at": "2022-05-23T14:44:34-04:00",
"fulfillment_status": "fulfilled",
"fulfillments": [
{
"shipment_status": null,
"status": "success",
"tracking_company": "Other",
"tracking_number": "456",
"tracking_numbers": [
"456"
],
"tracking_url": "https://braze.com",
"tracking_urls": [
"https://braze.com"
],
"line_items": [
{
"fulfillment_status": "fulfilled",
"name": "Dark Denim Top",
"price": "60.00",
"product_id": 6143032066239,
"quantity": 1,
"requires_shipping": true,
"sku": null,
"title": "Dark Denim Top",
"variant_id": 40094740549876,
"variant_title": "Small Dark Denim Top",
"vendor": "partners-demo"
}
]
}
]
},
"braze_id": "123abc123abc"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"name": "shopify_partially_fulfilled_order",
"time": "2022-05-23T14:43:34-04:00",
"properties": {
"order_id": 4444668657855,
"line_items": [
{
"quantity": 1,
"product_id": 6143032066239,
"sku": null,
"title": "Dark Denim Top",
"variant_id": 40094740549876,
"variant_title": "",
"vendor": "partners-demo",
"name": "Dark Denim Top",
"properties": [],
"price": "60.00",
"fulfillment_status": "fulfilled"
}
],
"shipping": [
{
"title": "Standard",
"price": "0.00"
}
],
"total_price": "130.66",
"confirmed": true,
"total_discounts": "0.00",
"discount_codes": [],
"order_number": 1093,
"order_status_url": "https://test-store.myshopify.com/",
"cancelled_at": null,
"tags": "",
"closed_at": null,
"fulfillment_status": "partial",
"fulfillments": [
{
"shipment_status": null,
"status": "success",
"tracking_company": "Other",
"tracking_number": "123",
"tracking_numbers": [
"123"
],
"tracking_url": "https://braze.com",
"tracking_urls": [
"https://braze.com"
],
"line_items": [
{
"fulfillment_status": "fulfilled",
"name": "Dark Denim Top",
"price": "60.00",
"product_id": 6143032066239,
"properties": [],
"quantity": 1,
"requires_shipping": true,
"sku": null,
"title": "Dark Denim Top",
"variant_id": 40094740549876,
"variant_title": "",
"vendor": "partners-demo"
}
]
}
]
},
"braze_id": "abc123abc123"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"name": "shopify_paid_order",
"time": "2022-05-23T13:52:38-04:00",
"properties": {
"order_id": 4444596371647,
"line_items": [
{
"quantity": 1,
"product_id": 6143033344191,
"sku": null,
"title": "LED High Tops",
"variant_id": 40094740549876,
"variant_title": null,
"vendor": "partners-demo",
"name": "LED High Tops",
"properties": [],
"price": "80.00",
"fulfillment_status": null
}
],
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
"name": "ecommerce.order_cancelled",
"time": "2022-05-23T13:52:38-04:00",
"properties": {
"order_id": "820982911946154508",
"cancel_reason": "no longer necessary",
"total_value": 421.88,
"currency": "USD",
"total_discounts": 5,
"discounts": [],
"products": [
{
"product_id": "632910392",
"product_name": "IPod Nano - 8GB",
"variant_id": "808950810",
"quantity": 1,
"price": 199,
"metadata": {
"sku": "IPOD2008PINK"
}
}
],
"source": "braze-mock-storefront.myshopify.com",
"metadata": {
"order_status_url": "https://apple.myshopify.com/690933842/orders/123456abcd/authenticate?key=abcdefg",
"order_number": 1234,
"tags": [
"heavy",
"heavy2"
]
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"name": "ecommerce.order_refunded",
"time": "2022-05-23T13:52:38-04:00",
"properties": {
"order_id": "820982911946154508",
"total_value": 421.88,
"currency": "USD",
"products": [
{
"product_id": "632910392",
"product_name": "IPod Nano - 8GB",
"variant_id": "808950810",
"quantity": 1,
"price": 199,
"metadata": {
"sku": "IPOD2008PINK"
}
}
],
"source": "braze-mock-storefront.myshopify.com",
"metadata": {
"order_note": "item was broken"
}
}
}
1
2
3
4
5
6
{
name: "shopify_account_login",
properties: {
source: "braze-mock-storefront.myshopify.com"
}
}
イベント: ecommerce.product_viewed
タイプ:推奨イベント
トリガー済みいつ顧客が製品ページを表示したのか
ユースケースブラウズ放棄
| 変数|Liquid・テンプレート作成
| — | — |
|——————|—————————————————–|
| product_id
| {{event_properties.${product_id}}}
|
| product_name
| {{event_properties.${product_name}}}
|
| variant_id
| {{event_properties.${variant_id}}}
|
| image_url
| {{event_properties.${image_url}}}
|
| product_url
| <your-store.myshopify.com>{{event_properties.${product_url}}}
URLの前にShopifyサイトのドメインを追加する。|
| price
| {{event_properties.${price}}}
|
|currency
|{{event_properties.${currency}}}
|。
| source
| {{event_properties.${source}}}
|
| sku
| {{event_properties.${metadata}[0].sku}}
|
| type
| event_properties.${type}
|
イベント: ecommerce.cart_updated
タイプ:推奨イベント
トリガー済みいつ顧客がショッピングカートを追加、削除、または更新したのか
ユースケースカート放棄
カート放棄キャンバスでは、まず最初のショッピングカートの Liquid タグを追加し、メッセージ内のショッピングカートのコンテキストを取得する必要があります。
1
{% shopping_cart {{context.${cart_id}}} %}
そして、次のショッピングカートの Liquid タグをメッセージに追加できます。
| 変数|Liquid・テンプレート作成
|——————|—————————————————–|
| cart_id
| {{ shopping_cart.cart_id }}
|
| currency
| {{ shopping_cart.currency }}
|
| total_value
| {{ shopping_cart.total_value }}
|
| product_id
| {{ shopping_cart.products[0].product_id }}
|
|product_name
|{{ shopping_cart.products[0].product_name }}
|。
| variant_id
| {{ shopping_cart.products[0].variant_id }}
|
|image_url
|{{ shopping_cart.products[0].image_url }}
|。
| product_url
| {{ shopping_cart.products[0].product_url }}
|
| quantity
| {{ shopping_cart.products[0].quantity }}
|
|price
|{{ shopping_cart.products[0].price }}
|。
| sku
| {{ shopping_cart.products[0].metadata[0].sku }}
|
| source
| {{ shopping_cart.source }}
|
| metadata (value)
| {{ shopping_cart.metadata[0].<add_value_here> }}
|
すべての商品をダイナミックにメールに追加するための Liquid for
ループの構築方法については、メール用のカート放棄商品のパーソナライゼーションを参照してください。
イベント: ecommerce.checkout_started
タイプ:推奨イベント
トリガー済みいつ顧客がショッピングカートを追加、削除、または更新したのか
ユースケースチェックアウト放棄
放棄されたチェックアウトのキャンバスでは、まず以下の Liquid タグを使う必要があります。
1
2
{% shopping_cart {{context.${cart_id}}} :abort_if_not_abandoned false %}
{{context.${cart_id}}}
次に、以下の Liquid タグをメッセージに追加し、チェックアウト時にカート内の商品を参照できます。
| 変数|Liquid・テンプレート作成
|——————|—————————————————–|
| cart_id
| {{ shopping_cart.cart_id }}
|
| currency
| {{ shopping_cart.currency }}
|
| total_value
| {{ shopping_cart.total_value }}
|
| product_id
| {{ shopping_cart.products[0].product_id }}
|
|product_name
|{{ shopping_cart.products[0].product_name }}
|。
| variant_id
| {{ shopping_cart.products[0].variant_id }}
|
|image_url
|{{ shopping_cart.products[0].image_url }}
|。
| product_url
| {{ shopping_cart.products[0].product_url }}
|
| quantity
| {{ shopping_cart.products[0].quantity }}
|
|price
|{{ shopping_cart.products[0].price }}
|。
| sku
| {{ shopping_cart.products[0].metadata.sku }}
|
| source
| {{ shopping_cart.source }}
|
|checkout_url
|{{ shopping_cart.metadata[0].checkout_url }}
|。
イベント: ecommerce.order_placed
タイプ:推奨イベント
トリガー済みユーザーがチェックアウトプロセスを正常に完了し、注文した場合
ユースケース注文確認、購入後のリターゲティング、アップセルまたはクロスセル
変数|Liquid・テンプレート作成 | |
|————————- | —————————————————– |
cart_id | {{event_properties.${cart_id}}} |
currency | {{event_properties.${currency}}} |
discounts | {{event_properties.${discounts}}} |
order_id | {{event_properties.${order_id}}} |
product_id | {{event_properties.${products}[0].product_id}} |
product_name | {{event_properties.${products}[0].product_name}} |
variant_id | {{event_properties.${products}[0].variant_id}} |
quantity | {{event_properties.${products}[0].quantity}} |
sku | {{event_properties.${products}[0].metadata.sku}} |
total_discounts | {{event_properties.${total_discounts}}} |
order_status_url | {{event_properties.${metadata}.order_status_url}} |
order_number | {{event_properties.${metadata}.order_number}} |
tags | {{event_properties.${metadata}.tags}} |
referring_site | {{event_properties.${metadata}.referring_site}} |
payment_gateway_names | {{event_properties.${metadata}.payment_gateway_names}} |
Shopify のチェックアウト完了 Webhook には、商品 URL や画像 URL が含まれていません。その結果、メール用の放棄カート商品のパーソナライゼーションで述べたように、カタログ Liquid のパーソナライゼーションを使用する必要があります。
イベント: shopify_fulfilled_order
タイプ:カスタムイベント
トリガー済みユーザーの注文が完了し、発送準備ができた場合
ユースケース(トランザクション) フルフィルメントの更新
| 変数|Liquid・テンプレート作成
| — | — |
| オーダーID|{{event_properties.${order_id}}}
|
| 価格|総額|{{event_properties.${total_price}}}
|
| 割引総額|{{event_properties.${total_discounts}}}
|
| 確認ステータス | {{event_properties.${confirmed}}}
|
| 注文状況URL|{{event_properties.${order_status_url}}}
|
| 注文番号|{{event_properties.${order_number}}}
|
| キャンセルされたタイムスタンプ |{{event_properties.${cancelled_at}}}
|
| クローズド・タイムスタンプ|{{event_properties.${closed_at}}}
|
| アイテムID|{{event_properties.${line_items}[0].product_id}}
|
| アイテム数量 | {{event_properties.${line_items}[0].quantity}}
|
| アイテムSKU|{{event_properties.${line_items}[0].sku}}
|
| アイテムタイトル | {{event_properties.${line_items}[0].title}}
|
| アイテムベンダー | {{event_properties.${line_items}[0].vendor}}
|
| アイテム名|{{event_properties.${line_items}[0].name}}
|
| アイテムプロパティ | {{event_properties.${line_items}[0].properties}}
|
| アイテム価格 | {{event_properties.${line_items}[0].price}}
|
| 配送タイトル | {{event_properties.${shipping}[0].title}}
|
| 価格|送料|{{event_properties.${shipping}[0].price}}
| フルフィルメントステータス | {{event_properties.${fulfillment_status}}}
|
| フルフィルメント出荷ステータス | {{event_properties.${fulfillments}[0].shipment_status}}
|
| ステータス| {{event_properties.${fulfillments}[0].status}}
|
|{{event_properties.${fulfillments}[0].Fulfillment tracking_company}}
|フルフィルメント・トラッキング・カンパニー|Fulfillment Tracking Company|フルフィルメント・トラッキング・カンパニー
| フルフィルメント追跡番号|{{event_properties.${fulfillments}[0].Fulfillment tracking_number}}
|
| フルフィルメント追跡番号|{{event_properties.${fulfillments}[0].Fulfillment tracking_numbers}}
|
| フルフィルメント・トラッキングURL|{{event_properties.${fulfillments}[0].Fulfillment tracking_url}}
|
| フルフィルメント・トラッキングURL|{{event_properties.${fulfillments}[0].Fulfillment tracking_urls}}
|
| フルフィルメントステータス | {{event_properties.${fulfillments}[0].line_items[0].fulfillment_status}}
|
| フルフィルメント名 | {{event_properties.${fulfillments}[0].line_items[0].name}}
|
| フルフィルメント価格|{{event_properties.${fulfillments}[0].line_items[0].price}}
|
| フルフィルメント・プロダクトID|{{event_properties.${fulfillments}[0].line_items[0].product_id}}
|
| フルフィルメント数量 | {{event_properties.${fulfillments}[0].line_items[0].quantity}}
|
| フルフィルメント配送 | {{event_properties.${fulfillments}[0].line_items[0].requires_shipping}}
|
| フルフィルメント SKU|{{event_properties.${fulfillments}[0].line_items[0].sku}}
| フルフィルメントタイトル| {{event_properties.${fulfillments}[0].line_items[0].title}}
|
| フルフィルメントベンダー | {{event_properties.${fulfillments}[0].line_items[0].vendor
|
| バリアント ID | {{event_properties.${line_items}[0].variant_id}}
|
| バリアントタイトル |{{event_properties.${line_items}[0].variant_title}}
|
イベント: shopify_partially_fulfilled_order
タイプ:カスタムイベント
トリガー済みユーザーの注文の一部が完了し、出荷準備が整った場合。
ユースケース(トランザクション) フルフィルメントの更新
| 変数|Liquid・テンプレート作成
| — | — |
| オーダーID|{{event_properties.${order_id}}}
|
| 価格|総額|{{event_properties.${total_price}}}
|
| 割引総額|{{event_properties.${total_discounts}}}
|
| 確認ステータス | {{event_properties.${confirmed}}}
|
| 注文状況URL|{{event_properties.${order_status_url}}}
|
| 注文番号|{{event_properties.${order_number}}}
|
| キャンセルされたタイムスタンプ |{{event_properties.${cancelled_at}}}
|
| クローズド・タイムスタンプ|{{event_properties.${closed_at}}}
|
| アイテムID|{{event_properties.${line_items}[0].product_id}}
|
| アイテム数量 | {{event_properties.${line_items}[0].quantity}}
|
| アイテムSKU|{{event_properties.${line_items}[0].sku}}
|
| アイテムタイトル | {{event_properties.${line_items}[0].title}}
|
| アイテムベンダー | {{event_properties.${line_items}[0].vendor}}
|
| アイテム名|{{event_properties.${line_items}[0].name}}
|
| アイテムプロパティ | {{event_properties.${line_items}[0].properties}}
|
| アイテム価格 | {{event_properties.${line_items}[0].price}}
|
| 配送タイトル | {{event_properties.${shipping}[0].title}}
|
| 価格|送料|{{event_properties.${shipping}[0].price}}
| フルフィルメントステータス | {{event_properties.${fulfillment_status}}}
|
| フルフィルメント出荷ステータス | {{event_properties.${fulfillments}[0].shipment_status}}
|
| フルフィルメントステータス | {{event_properties.${fulfillments}[0].status}}
|
|{{event_properties.${fulfillments}[0].tracking_company}}
|フルフィルメント・トラッキング・カンパニー|Fulfillment Tracking Company|フルフィルメント・トラッキング・カンパニー
| フルフィルメント追跡番号|{{event_properties.${fulfillments}[0].tracking_number}}
|
| フルフィルメント追跡番号|{{event_properties.${fulfillments}[0].tracking_numbers}}
|
| フルフィルメント・トラッキングURL|{{event_properties.${fulfillments}[0].tracking_url}}
|
| フルフィルメント・トラッキングURL|{{event_properties.${fulfillments}[0].tracking_urls}}
|
| フルフィルメントステータス | {{event_properties.${fulfillments}[0].line_items[0].fulfillment_status}}
|
| フルフィルメント名 | {{event_properties.${fulfillments}[0].line_items[0].name}}
|
| フルフィルメント価格|{{event_properties.${fulfillments}[0].line_items[0].price}}
|
| フルフィルメント・プロダクトID|{{event_properties.${fulfillments}[0].line_items[0].product_id}}
|
| フルフィルメント数量 | {{event_properties.${fulfillments}[0].line_items[0].quantity}}
|
| フルフィルメント配送 | {{event_properties.${fulfillments}[0].line_items[0].requires_shipping}}
|
| フルフィルメント SKU|{{event_properties.${fulfillments}[0].line_items[0].sku}}
| フルフィルメントタイトル| {{event_properties.${fulfillments}[0].line_items[0].title}}
|
| フルフィルメントベンダー | {{event_properties.${fulfillments}[0].line_items[0].vendor
|
| バリアント ID | {{event_properties.${line_items}[0].variant_id}}
|
| バリアントタイトル |{{event_properties.${line_items}[0].variant_title}}
|
イベント: shopify_paid_order
タイプ:カスタムイベント
トリガー済みユーザーの注文がShopify内で支払い済みとマークされた場合
ユースケース(トランザクション) 支払いの確認
変数|Liquid・テンプレート作成 | |
---|---|
オーダーID|{{event_properties.${order_id}}} | |
|
確認ステータス | {{event_properties.${confirmed}}} |
注文状況URL|{{event_properties.${order_status_url}}} | |
|
注文番号|{{event_properties.${order_number}}} | |
|
キャンセルされたタイムスタンプ | {{event_properties.${cancelled_at}}} |
割引総額|{{event_properties.${total_discounts}}} | |
|
価格|総額|{{event_properties.${total_price}}} | |
|
タグ: | {{event_properties.${tags}}} |
割引コード|{{event_properties.${discount_codes}}} |
|
アイテムID|{{event_properties.${line_items}[0].product_id}} | |
|
アイテム数量 | {{event_properties.${line_items}[0].quantity}} |
アイテムSKU|{{event_properties.${line_items}[0].sku}} | |
|
アイテムタイトル | {{event_properties.${line_items}[0].title}} |
アイテムベンダー | {{event_properties.${line_items}[0].vendor}} |
アイテムプロパティ | {{event_properties.${line_items}[0].properties}} |
アイテム価格 | {{event_properties.${line_items}[0].price}} |
配送タイトル | {{event_properties.${shipping}[0].title}} |
価格|送料|{{event_properties.${shipping}[0].price}} |
|
バリアント ID | {{event_properties.${line_items}[0].variant_id}} |
バリアントタイトル | {{event_properties.${line_items}[0].variant_title}} |
イベント: shopify_cancelled_order
タイプ:カスタムイベント
トリガー済みユーザーの注文がキャンセルされた場合
ユースケース(取引)注文のキャンセル確認
変数|Liquid・テンプレート作成 | |
---|---|
オーダーID|{{event_properties.${order_id}}} | |
|
価格|総額|{{event_properties.${total_price}}} | |
|
割引総額|{{event_properties.${total_discounts}}} | |
|
確認済み | {{event_properties.${confirmed}}} |
注文状況URL|{{event_properties.${order_status_url}}} | |
|
注文番号|{{event_properties.${order_number}}} | |
|
キャンセルされたタイムスタンプ | {{event_properties.${cancelled_at}}} |
タグ: | {{event_properties.${tags}}} |
割引コード|{{event_properties.${discount_codes}}} |
|
フルフィルメントステータス | {{event_properties.${fulfillment_status}}} |
フルフィルメント | {{event_properties.${fulfillments}}} |
アイテムID|{{event_properties.${line_items}[0].product_id}} | |
|
アイテム数量 | {{event_properties.${line_items}[0].quantity}} |
アイテムSKU|{{event_properties.${line_items}[0].sku}} | |
|
アイテムタイトル | {{event_properties.${line_items}[0].title}} |
アイテムベンダー | {{event_properties.${line_items}[0].vendor}} |
アイテム名|{{event_properties.${line_items}[0].name}} | |
|
アイテムプロパティ | {{event_properties.${line_items}[0].properties}} |
フルフィルメントステータス | {{event_properties.${line_items}[0].fulfillment_status}} |
配送タイトル | {{event_properties.${shipping}[0].title}} |
価格|送料|{{event_properties.${shipping}[0].price}} |
|
バリアント ID | {{event_properties.${line_items}[0].variant_id}} |
バリアントタイトル | {{event_properties.${line_items}[0].variant_title}} |
イベント: shopify_order_refunded
タイプ:カスタムイベント
トリガー済みユーザーの注文が返金される場合
ユースケース(取引) 返金の確認
変数|Liquid・テンプレート作成 | |
---|---|
オーダーID|{{event_properties.${order_id}}} | |
|
注文メモ | {event_properties.${note}}} |
アイテムID|{{event_properties.${line_items}[0].product_id}} | |
|
アイテム数量 | {{event_properties.${line_items}[0].quantity}} |
アイテムSKU|{{event_properties.${line_items}[0].sku}} | |
|
アイテムタイトル | {{event_properties.${line_items}[0].title}} |
アイテムベンダー | {{event_properties.${line_items}[0].vendor}} |
アイテム名|{{event_properties.${line_items}[0].name}} | |
|
アイテムプロパティ | {{event_properties.${line_items}[0].properties}} |
アイテム価格 | {{event_properties.${line_items}[0].price}} |
バリアント ID | {{event_properties.${line_items}[0].variant_id}} |
バリアントタイトル | {{event_properties.${line_items}[0].variant_title}} |
サポートされているShopifyカスタム属性
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"attributes": [
{
"shopify_tags": "VIP_customer",
"shopify_total_spent": "60.00",
"shopify_order_count": "3",
"shopify_last_order_id": "1234567",
"shopify_last_order_name": "test_order",
"shopify_zipcode": "10001",
"shopify_province": "null"
}
]
}
属性名 | 説明 |
---|---|
shopify_total_spent |
注文履歴全体で顧客が支払った総額。 |
|shopify_order_count |この顧客に関連する注文数。テストオーダーとアーカイブオーダーはカウントされない。 |
|
|shopify_last_order_id |
顧客の最後の注文のID。 |
|shopify_last_order_name |
顧客の最後の注文の名前。これは、注文リソースの name フィールドに直接関係しています。 |
|shopify_zipcode |顧客のデフォルト住所の郵便番号。 |
|
shopify_province |
顧客のデフォルトの住所の都道府県。 |
Liquid のパーソナライゼーション
Shopify カスタム属性に Liquid パーソナライゼーションを追加するには、[+ パーソナライゼーション] を選択します。次に、[パーソナライゼーションタイプ] として [カスタム属性] を選択します。
カスタム属性を選択したら、デフォルト値を入力して Liquid スニペットをメッセージにコピーします。
サポートされるShopify標準属性
- メール
- 名
- 姓
- 電話
- 市区町村
- 国
Brazeは、サポートされているShopifyカスタム属性とBraze標準属性を更新するのは、既存のユーザープロファイルとデータに違いがある場合のみである。たとえば、インバウンド Shopify データに Bob という名前が含まれており、Bob が Braze のユーザープロファイルに名前としてすでに存在している場合、Braze では更新はトリガーされず、データポイントにつ課金されません。
SDK によるデータ収集
Braze SDK が収集するデータの詳細については、SDK データ収集を参照してください。
歴史的埋め戻し
Shopify ストアのオンボーディング中に、履歴バックフィルを通して初期データ同期を開始し、顧客とすぐにやり取りすることができます。このバックアップの一環として、Brazeは、Shopify統合接続前の過去90日間のすべての顧客と注文の初期データ同期を実行する。Braze が Shopify の顧客をインポートする際、設定にて選択した external_id
タイプを割り当てます。
Shopify 履歴バックフィルの設定
- Shopify データの追跡ステップで、履歴バックフィルをオンにします。
- 統合設定が完了すると、Braze は最初のデータ同期を開始します。進捗状況は、統合設定の [Shopify データ] タブで確認できます。
同期データ
初期データ同期では、Braze は、Shopify 統合接続前の過去90日間の顧客と注文をインポートします。Braze が Shopify の顧客をインポートする際、設定にて選択した external_id
タイプを割り当てます。