GA4 イベントタグの「詳細設定」に「e コマースデータを送信」が実装されました。

セミナーアーカイブ

2022年の8月に、GA4のイベントタグの「詳細設定」に「『e コマース』 『e コマースデータを送信』」が実装されました。

GA4のイベントタグの「詳細設定」に「『e コマース』 『e コマースデータを送信』」が実装されました。

これまでは、GTMによるGA4のeコマースのイベント設定では、「変数」を設定し、それをカスタム イベントタグの「イベント パラメータ」に設定する必要がありました。今後は、Google推奨のeコマースの変数(後述)で適切なデータレイヤーの記述を行えば、「変数の設定」もカスタムイベントタグの「イベント パラメータ」の設定も不要になりました。

eコマースの「推奨イベント」

eコマースの「推奨イベント」は下記の通りです。

イベントこの記事に設定方法の解説がある?発火タイミング
add_payment_info支払い情報送信
add_shipping_info配送情報送信
add_to_cartYesカートに商品を追加
add_to_wishlist欲しい物リストに商品を追加
begin_checkoutYes購入手続きを開始
generate_lead問い合わせのためにフォームまたはリクエストを送信した時
purchaseYes購入完了
refundYes払い戻し実行
remove_from_cartYesカートから商品を削除
select_itemYesリストから商品を選択
select_promotionYesプロモーションを選択
view_cartカートを表示
view_itemYes商品詳細を表示
view_item_listYes商品一覧を表示
view_promotionYesプロモーションが表示された

ECに関わるイベントの流れの例

ECのイベントは上記すべてを計測する必要はありません。サイトの実情に合わせて、必要なものを組み合わせます。たとば、例として下記のような流れが考えられます。

上記の各イベントに「パラメータ」「itemパラメータ」が紐づきます。

GA4のデータは「イベント」と「パラメータ」で構成されていますが、eコマースのデータは「推奨イベント」「パラメータ」の他に商品情報を「itemパラメータ」(後述)で取得します。(2022年8月28日時点では「itemパラメータ」で取得したデータを「カスタム ディメンション」に登録できません。スコープ「商品」で「カスタム ディメンション」を設定することが出来ないためです。GA4のデフォルトで用意されているディメンションを使用する必要があります。)

eコマースの「パラメータ」

パラメータ名タイプ必須サンプルの値説明
currencystring○*JPYイベントに関連付けられた商品アイテムの通貨(3 文字の ISO 4217 形式)。
* 収益の指標が正確に計算されるように currency を指定する必要があります。
valuenumber○*10000金額合計。イベントの金銭的価値。
* 収益の指標が正確に計算されるように currency を指定する必要があります。
couponstringSummer01イベントに関連づけられたクーポンの名前。
payment_typestringCredit Card支払い方法
shipping_tierstringYamato購入された商品アイテムの配送方法
affiliationstringGoogle Store仕入れ先業者や実店舗を指定する商品アフィリエーション。
shippingstring700送料
transaction_idstringT_12345取引、注文ID
taxstring800税金
item_list_idstringw01商品が表示されたリストの ID
item_list_namestringWish_List商品が表示されたリストの名前
creative_namestringSummer_GIG_01プロモーションのクリエイティブの名前
creative_slotstringfeatured_app_1商品アイテムに関連付けられたプロモーション用のクリエイティブ スロットの名前。
location_idstringL_12345商品アイテムに関連付けられた場所。関連するアイテムに対応する Google プレイス ID を使用することをおすすめします。カスタムの地域 ID も使用できます。
promotion_idstringP_12345プロモーションの ID
promotion_namestringSummer Saleプロモーションの名前

eコマースの「itemパラメータ」


サンプルは、下記を参考にしました。
https://developers.google.com/tag-manager/ecommerce-ga4?hl=ja#measure_viewsimpressions_of_productitem_details

itemパラメータ名タイプ必須サンプルの値説明
item_idstring〇*SKU_12345商品アイテムの ID。
*item_id または item_name が必要です。
item_namestring〇*Stan and Friends Tee商品アイテムの名前。
*item_id または item_name が必要です。
pricenumber10000指定された通貨パラメータの単位で表した商品アイテムの価格。
quantitynumber1商品アイテムの数量
affiliationstringGoogle Store商品元や店舗を指定する商品アフィリエーション
couponstringSUMMER_FUN商品に関連したクーポン名
currencystringJPY通貨(3 文字の ISO 4217 形式)
discountnumber100商品に対する割引額
item_variantstringgreen商品アイテムのバリエーションまたは固有のコード、あるいはその他の詳細やオプションに関する説明
item_brandstringAmazon商品アイテムのブランド
item_categorystringApparel商品アイテムのカテゴリや分類
item_category2stringAdult商品アイテムのカテゴリや分類
item_category3stringShirts商品アイテムのカテゴリや分類
item_category4stringCrew商品アイテムのカテゴリや分類
item_category5stringShort sleeve商品アイテムのカテゴリや分類
indexnumber3リスト内の商品アイテムのインデックスまたは位置
item_list_idstringrelated_productsユーザーに商品アイテムが表示されたリストの ID。
item_list_namestringRelated productsユーザーに商品アイテムが表示されたリストの名前。
location_idstringL_12345商品アイテムに関連付けられた場所。関連するアイテムに対応する
Google プレイス ID を使用するか、カスタムの地域 ID も使用できます。
promotion_idstringP_12345商品アイテムに関連付けられたプロモーションの ID。
promotion_namestringSummer Sale商品アイテムに関連付けられたプロモーションの名前。

Google推奨のeコマースの変数については、こちらをご参照ください。
e コマース(GA4)デベロッパー ガイド
https://developers.google.com/tag-manager/ecommerce-ga4?hl=ja

1. view_item GTMイベント設定

まずは、view_itemについて、見てみます。

変数とパラメータの設定が必要だった時は、view_itemのイベントタグの設定は上記にようになっていました。

現在の設定方法では、Google推奨のeコマースの変数を使っていれば、変数の設定が不要となります。また、イベントタグに「イベント パラメータ」を記述する必要もありません。「e コマースデータを送信」にチェックを入れて、データソースは「Data Layer」を選択します。

イベント view_item のトリガー

トリガーのタイプは、「カスタム イベント」を使用しています。

view_itemのデータレイヤーのサンプルは下記の通りです。

データレイヤーに適切な値が出力されるようにするには、システム開発が必要です。

<script>
window.dataLayer = window.dataLayer || [];
dataLayer.push({ ecommerce: null });
dataLayer.push({ event: "view_item", 
ecommerce: {
  items: [{
    item_name: "Donut Friday Scented ", 		
    item_id: "ii20220829_0933", 
    price: 10000,
    item_brand: "Google",
    item_category: "Apparel",
    item_category2: "Mens",
    item_category3: "Shirts",
    item_category4: "Tshirts",
    item_variant: "Black",
    item_list_name: "Search Results",
    item_list_id: "SR123",
    index: 1,
    quantity: 1
  }]
} }); 
</script>

レポート > ライフサイクル > 収益化 > eコマース購入数
にて、翌日以降データを確認すると、
view_itemイベントで、「アイテム名」「アイテム ID」「アイテムのカテゴリ」「アイテムのカテゴリ 2~5」「アイテムのブランド」が計測できていることが確認できます。

2. purchase GTMイベント設定

変数とパラメータの設定が必要だった時は、purchaseのイベントタグの設定は上記にようになっていました。

(繰り返しになりますが、)現在の設定方法では、Google推奨のeコマースの変数を使っていれば、変数の設定が不要となります。また、イベントタグに「イベント パラメータ」を記述する必要もありません。「e コマースデータを送信」にチェックを入れて、データソースは「Data Layer」を選択します。

イベント purchase のトリガー

トリガーのタイプは、「カスタム イベント」を使用しています。

purchaseのデータレイヤーのサンプルは下記の通りです。

<script>
window.dataLayer = window.dataLayer || [];
dataLayer.push({ ecommerce: null });
dataLayer.push({event: "purchase",
  ecommerce: {
    transaction_id: "T20220829_0933", 
    affiliation: "Online Store",
    value: "20000",
    tax: "1600",
    shipping: "1000",
    currency: "JPY",
    coupon: "SUMMER_SALE",
    items: [{
      item_name: "Donut Friday Scented T-Shirt", 
      item_id: "ii20220829_0933", 
      price: 10000,
      item_brand: "Google",
      item_category: "Apparel",
      item_variant: "Black",
      quantity: 1
    }, {
      item_name: "Donut Friday Scented T-Shirt",
      item_id: "ii20220829_0933_2",
      price: 10000, item_brand: "Amazon",
      item_category: "Apparel",
      item_variant: "Red",
      quantity: 1
    }]
  }
});
</script>

3. view_promotion GTMイベント設定

変数とパラメータの設定が必要だった時は、view_promotionのイベントタグの設定は上記にようになっていました。

(繰り返しになりますが、)現在の設定方法では、Google推奨のeコマースの変数を使っていれば、変数の設定が不要となります。また、イベントタグに「イベント パラメータ」を記述する必要もありません。「e コマースデータを送信」にチェックを入れて、データソースは「Data Layer」を選択します。

イベント view_promotion のトリガー

トリガーのタイプは、「カスタム イベント」を使用しています。

view_promotionのデータレイヤーのサンプルは下記の通りです。

<script>
window.dataLayer = window.dataLayer || [];
dataLayer.push({ ecommerce: null });
dataLayer.push({
  event: "view_promotion",
  ecommerce: {
    items: [{
      item_name: "Donut Friday Scented T-Shirt",
      item_id: "ii20220829_0933",
      price: 10000,
      item_brand: "Google",
      item_category: "Apparel",
      item_category2: "Mens",
      item_category3: "Shirts",
      item_category4: "Tshirts",
      item_variant: "Black",
      promotion_id: "abc123",
      promotion_name: "summer_promo",
      creative_name: "instore_suummer",
      creative_slot: "1",
      location_id: "hero_banner",
      index: 1,
      quantity: 1
    }]
  }
});
</script>

4. select_promotion GTMイベント設定

変数とパラメータの設定が必要だった時は、select_promotionのイベントタグの設定は上記にようになっていました。

(繰り返しになりますが、)現在の設定方法では、Google推奨のeコマースの変数を使っていれば、変数の設定が不要となります。また、イベントタグに「イベント パラメータ」を記述する必要もありません。「e コマースデータを送信」にチェックを入れて、データソースは「Data Layer」を選択します。

イベント select_promotion のトリガー

トリガーは「クリック – リンクのみ」を使用しています。
トリガーの「Click Classess 等しい Select_Promotion」の「Select_Promotion」は、下記のselect_promotionのHTMLのソースのサンプルに記述してあります。

「select_promotion」のHTMLのソースのサンプルは下記の通りです。view_promotion.pngというボタンがクリックされると、必要なデータレイヤーが生成されるようになっています。下記の例はあくまでもサンプルで、記述方法は、ウェブサイトの実装担当の方にご相談ください。

<html lang="ja">
<head>

<script>
function onPromotionClick() {

  var dataset = JSON.parse(JSON.stringify(this.dataset));
  var item = Object.getOwnPropertyNames(dataset).reduce(function(prev, current) {
    var key = current.replace(/[A-Z]/g, function(char){ return '_' + char.toLowerCase();});
    prev[key] = /price|index|quantity/.test(key) ? Number(dataset[current]) : dataset[current];
    return prev
  }, {});

  dataLayer.push({ ecommerce: null });
  dataLayer.push({
    event: "select_promotion",
    ecommerce: {
      items: [ item ]
    }
  });
}
</script>

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-WKLP4D3');</script>
<!-- End Google Tag Manager -->

<meta charset="utf-8" />
<link rel="stylesheet" href="css/general.css"/>
<title>EC_select_promotion | EC_test</title>
</head>

<body>

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WKLP4D3"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->	

<h1>ECテスト select_promotion</h1>

<p>
<a class="Select_Promotion" href="view_item_list.html"
  data-item-name="Donut Friday Scented T-Shirt"
  data-item-id="ii20220829_0933"
  data-price=10000
  data-item_brand: "Google",
  data-item_category: "Apparel",
  data-item_category2: "Mens",
  data-item_category3: "Shirts",
  data-item_category4: "Tshirts",
  data-item_variant: "Black",
  data-promotion_id: "abc123",
  data-promotion_name: "summer_promo",
  data-creative_name: "instore_suummer",
  data-creative_slot: "1",
  data-index="1"
  data-quantity="1"
  onclick="onPromotionClick()"
><img src="images/view_promotion.png"></a>
</p>

</body>
</html>

5. view_item_list GTMイベント設定

変数とパラメータの設定が必要だった時は、view_item_listのイベントタグの設定は上記にようになっていました。

(繰り返しになりますが、)現在の設定方法では、Google推奨のeコマースの変数を使っていれば、変数の設定が不要となります。また、イベントタグに「イベント パラメータ」を記述する必要もありません。「e コマースデータを送信」にチェックを入れて、データソースは「Data Layer」を選択します。

イベント view_item_list のトリガー

トリガーのタイプは、「カスタム イベント」を使用しています。

view_item_listのデータレイヤーのサンプルは下記の通りです。

<script>
window.dataLayer = window.dataLayer || [];
// Measure product views / impressions
dataLayer.push({ ecommerce: null });  // Clear the previous ecommerce object.
dataLayer.push({
  event: "view_item_list",
  ecommerce: {
    items: [
    {
      item_name: "Donut Friday Scented T-Shirt",
      item_id: "ii20220829_0933",
      price: 10000,
      item_brand: "Google",
      item_category: "Apparel",
      item_category2: "Mens",
      item_category3: "Shirts",
      item_category4: "Tshirts",
      item_variant: "Black",
      item_list_name: "Search Results",
      item_list_id: "SR123",
      index: 1,
      quantity: 1
    },
    {
      item_name: "Donut Friday Scented T-Shirt_2",
      item_id: "ii20220829_0933_2",
      price: 10000,
      item_brand: "Amazon",
      item_category: "Apparel_2",
      item_category2: "Mens_2",
      item_category3: "Shirts_2",
      item_category4: "Tshirts_2",
      item_variant: "Red",
      item_list_name: "Search Results_2",
      item_list_id: "SR123_2",
      index: 2,
      quantity: 1
    }]
  }
});
</script>

6. select_item GTMイベント設定

変数とパラメータの設定が必要だった時は、select_itemのイベントタグの設定は上記にようになっていました。

(繰り返しになりますが、)現在の設定方法では、Google推奨のeコマースの変数を使っていれば、変数の設定が不要となります。また、イベントタグに「イベント パラメータ」を記述する必要もありません。「e コマースデータを送信」にチェックを入れて、データソースは「Data Layer」を選択します。

イベント select_item のトリガー

トリガーは「クリック – リンクのみ」を使用しています。
トリガーの「Click Classess 等しい productdetails」の「Select_Promotion」は、下記のselect_itemのHTMLのソースのサンプルに記述してあります。

「select_item」のHTMLのソースのサンプルは下記の通りです。「Donut Friday Scanted T-Shirt」というリンクがクリックされると、必要なデータレイヤーが生成されるようになっています。下記の例はあくまでもサンプルで、記述方法は、ウェブサイトの実装担当の方にご相談ください。

<html lang="ja" >
<head>


<script>
function onProductClick() {

  var dataset = JSON.parse(JSON.stringify(this.dataset));
  var item = Object.getOwnPropertyNames(dataset).reduce(function(prev, current) {
    var key = current.replace(/[A-Z]/g, function(char){ return '_' + char.toLowerCase();});
    prev[key] = /price|index|quantity/.test(key) ? Number(dataset[current]) : dataset[current];
    return prev
  }, {});
  window.dataLayer = window.dataLayer || [];
  dataLayer.push({ ecommerce: null });
  dataLayer.push({
    event: "select_item",
    ecommerce: {
      items: [ item ]
    }
  });
}
</script>

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-WKLP4D3');</script>
<!-- End Google Tag Manager -->

<meta charset="utf-8" />
<link rel="stylesheet" href="css/general.css"/>
<title>EC_select_item | EC_test</title>
</head>

<body>

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WKLP4D3"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->	

<h1>ECテスト select_item</h1>

<p>
<a class="productdetails" href="items/productdetails.html"
  data-item-name="Donut Friday Scented T-Shirt"
  data-item-id="ii20220829_0933"
  data-price="10000"
  data-item-brand="Google"
  data-item-category="Apparel"
  data-item-category2="Mens"
  data-item-category3="Shirts"
  data-item-category4="Tshirts"
  data-variant="Black"
  data-item-list-name="Search Results"
  data-item-list-id="SR123"
  data-index="1"
  data-quantity="1"
  onclick="onProductClick()"
>Donut Friday Scanted T-Shirt</a>
</p>

</body>
</html>

7. add_to_cart GTMイベント設定

変数とパラメータの設定が必要だった時は、add_to_cartのイベントタグの設定は上記にようになっていました。

(繰り返しになりますが、)現在の設定方法では、Google推奨のeコマースの変数を使っていれば、変数の設定が不要となります。また、イベントタグに「イベント パラメータ」を記述する必要もありません。「e コマースデータを送信」にチェックを入れて、データソースは「Data Layer」を選択します。

イベント select_item のトリガー

トリガーは「クリック – リンクのみ」を使用しています。
トリガーの「Click Classess 等しい add_to_cart」の「add_to_cart」は、下記のadd_to_cartのHTMLのソースのサンプルに記述してあります。

「add_to_cart」のHTMLのソースのサンプルは下記の通りです。

<a class="add_to_cart" href="cart/cart.html"><strong>Donut Friday Scented T-Shirt</strong>をカートに入れる</a>

という記述内の、「class=”add_to_cart”」の部分をトリガーが見ています。

下記の例はあくまでもサンプルで、記述方法は、ウェブサイトの実装担当の方にご相談ください。

<html lang="ja" >
<head>

<script>
window.dataLayer = window.dataLayer || [];
// Measure when a product is added to a shopping cart
dataLayer.push({ ecommerce: null });  // Clear the previous ecommerce object.
dataLayer.push({
  event: "add_to_cart",
  ecommerce: {
    items: [{
      item_name: "Donut Friday Scented T-Shirt",
      item_id: "ii20220829_0933",
      price: 10000,
      item_brand: "Google",
      item_category: "Apparel",
      item_category2: "Mens",
      item_category3: "Shirts",
      item_category4: "Tshirts",
      item_variant: "Black",
      item_list_name: "Search Results",
      item_list_id: "SR123",
      index: 1,
      quantity: 1
    }]
  }
});
</script>

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-WKLP4D3');</script>
<!-- End Google Tag Manager -->

<meta charset="utf-8" />
<link rel="stylesheet" href="css/general.css"/>
<title>EC_add_to_cart | EC_test</title>
</head>

<body>

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WKLP4D3"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->	

<h1>ECテスト add_to_cart</h1>

<p>
<a class="add_to_cart" href="cart/cart.html"><strong>Donut Friday Scented T-Shirt</strong>をカートに入れる</a>
</p>

</body>
</html>

8. remove_from_cart GTMイベント設定

変数とパラメータの設定が必要だった時は、add_to_cartのイベントタグの設定は上記にようになっていました。

(繰り返しになりますが、)現在の設定方法では、Google推奨のeコマースの変数を使っていれば、変数の設定が不要となります。また、イベントタグに「イベント パラメータ」を記述する必要もありません。「e コマースデータを送信」にチェックを入れて、データソースは「Data Layer」を選択します。

イベント remove_from_cart のトリガー

トリガーは「クリック – リンクのみ」を使用しています。
トリガーの「Click Classess 等しい remove_from_cart」の「remove_from_cart」は、下記のremove_from_cartのHTMLのソースのサンプルに記述してあります。

「remove_from_cart」のdataLayerのサンプルは下記の通りです。

<script>
window.dataLayer = window.dataLayer || [];
// Measure the removal of a product from a shopping cart.
dataLayer.push({ ecommerce: null }); 
dataLayer.push({
  event: "remove_from_cart",
  ecommerce: {
    items: [{
      item_name: "Donut Friday Scented T-Shirt 20220829_0933",
      item_id: "ii20220829_0933",
      price: 10000,
      item_brand: "Google",
       item_category: "Apparel",
       item_category2: "Mens",
       item_category3: "Shirts",
       item_category4: "Tshirts",
       item_variant: "Black",
       item_list_name: "Search Results",
       item_list_id: "SR123",
      index: 1,
      quantity: 1
    }]
  }
});
</script>

9. begin_checkout GTMイベント設定

変数とパラメータの設定が必要だった時は、begin_checkoutのイベントタグの設定は上記にようになっていました。

(繰り返しになりますが、)現在の設定方法では、Google推奨のeコマースの変数を使っていれば、変数の設定が不要となります。また、イベントタグに「イベント パラメータ」を記述する必要もありません。「e コマースデータを送信」にチェックを入れて、データソースは「Data Layer」を選択します。

イベント begin_chekout のトリガー

トリガーは「クリック – リンクのみ」を使用しています。
トリガーの「Click Classess 含む begin_checkout」の「begin_checkout」は、下記のbegin_checkoutのHTMLのソースのサンプルに記述してあります。

「begin_checkout」のdataLayerのサンプルは下記の通りです。

<html lang="ja" >
<head>

<script>
function onCheckout() {
  window.dataLayer = window.dataLayer || [];
  dataLayer.push({ ecommerce: null });  // Clear the previous ecommerce object.
  dataLayer.push({
    event: "begin_checkout",
    ecommerce: {
      items: [{
        item_name: "Donut Friday Scented T-Shirt",
        item_id: "ii20220829_0933",
        price: 10000,
        item_brand: "Google",
        item_category: "Apparel",
        item_category2: "Mens",
        item_category3: "Shirts",
        item_category4: "Tshirts",
        item_variant: "Black",
        item_list_name: "Search Results",
        item_list_id: "SR123",
        index: 1,
        quantity: 1
      }]
    }
  });
}
</script>

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-WKLP4D3');</script>
<!-- End Google Tag Manager -->

<meta charset="utf-8" />
<link rel="stylesheet" href="css/general.css"/>
<title>EC_begin_checkout | EC_test</title>
</head>

<body>

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WKLP4D3"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->	

<h1>ECテスト begin_checkout</h1>


<p>
<a class="begin_checkout" onclick="onCheckout()" href="purchase.html">チェックアウトプロセスを開始する。</a>
</p>

</body>
</html>

10. refund GTMイベント設定

変数とパラメータの設定が必要だった時は、refundのイベントタグの設定は上記にようになっていました。

(繰り返しになりますが、)現在の設定方法では、Google推奨のeコマースの変数を使っていれば、変数の設定が不要となります。また、イベントタグに「イベント パラメータ」を記述する必要もありません。「e コマースデータを送信」にチェックを入れて、データソースは「Data Layer」を選択します。

イベント refund のトリガー

トリガーは「カスタム イベント」を使用します。

「refund」のdataLayerのサンプルは下記の通りです。

<script>
window.dataLayer = window.dataLayer || [];
dataLayer.push({ ecommerce: null });
dataLayer.push({
  event: "refund",
  ecommerce: {
      transaction_id: "20220830-1350", // Transaction ID.
      items: [{
        item_name: "Donut Friday Scented T-Shirt",
        item_id: "ii20220829_0933",
        price: 10000,
        item_brand: "Google",
        item_category: "Apparel",
        item_category2: "Mens",
        item_category3: "Shirts",
        item_category4: "Tshirts",
        item_variant: "Black",
        item_list_name: "Search",
        item_list_id: "SR123",
        index: 1,
        quantity: 1
      }]
  }
});
</script>

関連記事

特集記事

コメント

  1. Goodd post. I leatn something totally neew and challenging oon sitres I stumbleupon on a aily basis.
    It’s alwayus useful too rread through atticles from other wriuters and prqctice
    a little something fom tbeir webb sites.

  2. With havin so muh ccontent annd articles ddo yyou ecer run into any issues
    oof plagorsm or copyright violation? My site has a llot of uniue contenmt
    I’ve either create myself oor oufsourced butt it looks like a loot oof iit iss popping iit
    up all over the wweb without my authorization. Do you know any methods
    too help prevent content frfom being stolen? I’d genuiinely appreciate
    it.

  3. I’m impressed, I hhave to admit. Seldom do I encouunter a
    blo that’s both eaually educative and amusing, and withouyt a doubt, you’ve hiit tthe nasil onn the head.
    The problem is ann issue thhat not enough men andd women aree speaking
    intelligently about. I’m very happy that I came across this
    in my hunt for something relating to this.

  4. I’m extremely inspred togethdr with yor writing
    abilities as neatoy as wkth the layout to yohr weblog.
    Is this a paid ubject mattter or didd you
    modify it yor self? Anyway keep up the nice hig quality writing, it iis rre to peer a nice blog lie this one today..

  5. I’m not sure whhere you’re geting your information, but great topic.
    I needs to spend some time learning much more or understanding more.
    Thanks for wondetful innformation I was looking for thiks information foor my mission.

  6. I think this is a real great blog post.Thanks Again. Much obliged.

  7. Awesome blog article. Fantastic.

  8. Thanks so much for the article post. Cool.

  9. This is one awesome blog post. Really Cool.

  10. Great post. Really Cool.

  11. That is a great tip particularly to those fresh to the blogosphere. Short but very precise infoÖ Appreciate your sharing this one. A must read post!

  12. This is one awesome article.Really looking forward to read more. Much obliged.

  13. I really enjoy the blog.Much thanks again. Much obliged.

  14. A round of applause for your blog article.Much thanks again. Much obliged.

  15. I have been reading out a few of your articles and i must say pretty nice stuff. I will definitely bookmark your blog.

  16. Im thankful for the article.Really looking forward to read more. Cool.

  17. Excellent post. I was checking constantly this blog and I’m impressed!Extremely helpful information particularly thelast part 🙂 I care for such information much. Iwas seeking this certain info for a very long time. Thank you andbest of luck.

  18. Pretty! This has been an extremely wonderful article. Thank you for supplyingthese details.Here is my blog post: Leaf Boss CBD Review

  19. cold and asthma iproven blood pressure monitorstromectol for humans dit86t

  20. Really appreciate you sharing this blog article. Will read on…

  21. Very good article.Much thanks again. Awesome.

  22. Fantastic blog.Thanks Again. Will read on…

  23. Oh my goodness! an incredible article dude. Thank you Nonetheless I am experiencing problem with ur rss . Don’t know why Unable to subscribe to it. Is there anyone getting similar rss problem? Anyone who knows kindly respond. Thnkx

  24. It’s going to be end of mine day, except before ending I am reading this impressive paragraph to improve my experience.

  25. A big thank you for your article. Really Cool.

  26. I’m still learning from you, while I’m trying to reach my goals. I certainly liked reading everything that is written on your blog.Keep the aarticles coming. I enjoyed it!

  27. Excellent forum posts. Kudos!write essays for me best dissertation phd writer

  28. This is a very good tip especially to those fresh to the blogosphere. Simple but very precise informationÖ Appreciate your sharing this one. A must read article!

  29. Hi, I do believe this is a great blog. I stumbledupon it 😉 I’m going to come back once again since i have bookmarked it. Money and freedom is the best way to change, may you be rich and continue to guide other people.

  30. With thanks, I like this!custom essay writing canadahelp writing thesis statement

  31. Undeniably believe that which you stated. Your favorite reason seemed to be on the net the simplest thing to be aware of. I say to you, I definitely get irked while people think about worries that they plainly don’t know about. You managed to hit the nail upon the top and defined out the whole thing without having side effect , people can take a signal. Will likely be back to get more. Thanks

  32. Thanks a lot. Numerous knowledge.how to write a transfer essay how to write a thesis paragraph for an essay phd writing service

  33. wall street market darknet url how to create a darknet market

  34. Nicely put. Many thanks! canada online pharmacies

  35. I am so happy to read this. This is the kind of manual that needs to be given and not the random misinformation that is at the other blogs. Appreciate your sharing this greatest doc.

  36. how long does sildenafil sildenafil how to take

  37. This is one awesome blog post.Really looking forward to read more. Keep writing.

  38. Thanks for discussing your ideas. Something is that individuals have an option between fed student loan and also a private student loan where it can be easier to decide on student loan debt consolidation reduction than with the federal education loan.

  39. I loved your blog post. Thanks for creating it. I’m a big fan of your stuff.

  40. When I activated the Reset button, my changesfor date posted and radius were saved, but my minimum salary was not.

  41. Hello, after reading tnis amazinng article i am as welll happyto shaqre my faniliarity here with mates!

  42. It?s actually a cool and useful piece of information. I?m glad that you shared this useful info with us. Please keep us informed like this. Thanks for sharing.

  43. Really enjoyed this blog.Really thank you! Really Cool.

  44. I’m truly enjoying the design and layout of your blog. It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a designer to create your theme? Fantastic work!

  45. Hey, thanks for the blog post.Thanks Again. Awesome.

  46. I do agree with all the ideas you’ve presented in your post. They are really convincing and will certainly work. Still, the posts are very short for starters. Could you please extend them a bit from next time? Thanks for the post.

  47. 365 benadryl allegra medication – how much is zyrtec

  48. Thanks for sharing, this is a fantastic article post.Thanks Again. Awesome.

  49. preserve apartments apartments in worcester ma spanish trace apartments

  50. With every little thing which seems to be developing within this specific subject matter, your opinions happen to be somewhat stimulating. However, I appologize, because I can not subscribe to your whole strategy, all be it radical none the less. It would seem to us that your comments are actually not totally validated and in actuality you are generally yourself not really entirely confident of the argument. In any case I did appreciate reading it.

  51. Fine way of describing, and fastidious article to take facts on the topic of my presentation focus, which i am going to present in college.

  52. Attractive section of content. I just stumbled upon your blog and in accession capital to assert that I acquire in fact enjoyed account your blog posts.Anyway I’ll be subscribing to your augment and even I achievementyou access consistently rapidly.

  53. I prefer the relevant details program forth in your posts.

  54. I really like looking through an article that will make people think. Also, thanks for permitting me to comment!

  55. Im no professional, but I consider you just made an excellent point. You clearly comprehend what youre talking about, and I can seriously get behind that. Thanks for being so upfront and so truthful.

  56. Good way of describing, and good paragraph to get data regarding my presentation subject, which i am going to convey in school. Aggy Byrom Woodward

  57. Thank you ever so for you article post.Thanks Again.

  58. Very nice post. I just stumbled upon your blog and wished to say that I’ve really enjoyed browsing your blog posts. After all I?ll be subscribing to your rss feed and I hope you write again soon!

  59. Yeah bookmaking this wasn at a bad decision great post!.

  60. Howdy! I know this is somewhat off topic but I was wondering if you knewwhere I could get a captcha plugin for my comment form?I’m using the same blog platform as yours and I’mhaving trouble finding one? Thanks a lot!

  61. I can’t express how much I appreciate the effort the author has put into writing this outstanding piece of content. The clarity of the writing, the depth of analysis, and the abundance of information provided are simply astonishing. His passion for the subject is obvious, and it has certainly struck a chord with me. Thank you, author, for providing your insights and enhancing our lives with this incredible article!

  62. Hey there would you mind stating which blog platform you’re using? I’m looking to start my own blog soon but I’m having a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I’m looking for something completely unique. P.S Sorry for getting off-topic but I had to ask!

  63. I’m really enjoying the design and layout of your blog. It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a developer to create your theme? Great work!

  64. Im obliged for the post.

  65. I loved your article post.Thanks Again. Really Great.

  66. Very great post. I simply stumbled upon your weblog and wanted to say that I’ve truly loved browsing your weblog posts. In any case I?ll be subscribing on your feed and I am hoping you write once more very soon!

  67. สล็อตเป็นอีกหนึ่งเกมที่ได้รับความนิยมเป็นอย่างมาก เพราะวิธีการเล่นแสนง่าย แค่กด Spin ไปเรื่อยๆ ก็สามารถได้รับรางวัล แถมยังมีรางวัลแจ็ตพ็อตสูง.อิอิ

  68. Your house is valueble for me. Thanks!?

  69. Hello mates, its impressive article regarding teachingand fully explained, keep it up all the time.

  70. Im grateful for the post.Really thank you! Want more.

  71. Very good blog post.Thanks Again. Really Cool.

  72. herbal ed treatment medication for ed dysfunction

  73. scoliosisTouche. Solid arguments. Keep up the amazing spirit. scoliosis

  74. Pretty! This has been an extremely wonderful post. Many thanks for providing these details.

  75. Wonderful post however , I was wondering if you could write a litte more on this subject? I’d be very grateful if you could elaborate a little bit more. Many thanks!

  76. Hey! Do you use Twitter? I’d like to followyou if that would be ok. I’m absolutely enjoying your blog and look forward to new updates.

  77. I wanted to thank you for this good read!! I absolutely enjoyed every bit of it.I have you bookmarked to check out new things you post…

  78. Nearly all of whatever you articulate is astonishingly appropriate and that makes me wonder the reason why I had not looked at this with this light before. This particular article truly did turn the light on for me personally as far as this subject goes. Nonetheless at this time there is just one factor I am not really too comfy with so while I try to reconcile that with the actual main idea of your issue, let me observe just what the rest of your visitors have to say.Nicely done.

  79. is amoxicillin penicillin fish mox amoxicillin fish mox amoxicillin

  80. Thanks for the blog article.Thanks Again. Really Great.

  81. Thanks-a-mundo for the blog.Really thank you! Want more.

  82. I am so grateful for your blog post.Much thanks again. Really Cool.Loading…

  83. wow, awesome article. Great.

  84. Major thankies for the article post. Want more.

  85. Thanks for sharing, this is a fantastic blog.

  86. Hi there! I’m at work surfing around your blog frommy new iphone 3gs! Just wanted to say I love reading your blogand look forward to all your posts! Carry on the great work!

  87. ivermectin rx ivermectin canada – ivermectin 12

  88. Almanya’nın en iyi medyumu haluk hoca sayesinde sizlerde güven içerisinde çalışmalar yaptırabilirsiniz, 40 yıllık uzmanlık ve tecrübesi ile sizlere en iyi medyumluk hizmeti sunuyoruz.

  89. Thanks so much for the blog article.Much thanks again. Really Great.Loading…

  90. I?d have to test with you here. Which isn’t something I often do! I enjoy studying a submit that will make folks think. Additionally, thanks for allowing me to comment!

  91. Wow, great post.Much thanks again. Want more.

  92. I really liked your blog article.Much thanks again. Will read on

  93. Almanya’nın en çok tercih edilen medyumu haluk yıldız hoca olarak bilinmektedir, 40 yıllık tecrübesi ile sizlere en iyi bağlama işlemini yapan ilk medyum hocadır.

  94. Really appreciate you sharing this article. Great.

  95. Great, thanks for sharing this blog article. Much obliged.

  96. Have you ever considered publishing an ebook or guest authoring on other sites? I have a blog based on the same topics you discuss and would really like to have you share some stories/information. I know my visitors would value your work. If you’re even remotely interested, feel free to send me an e-mail.

  97. Merhaba Ben Haluk Hoca, Aslen Irak Asıllı Arap Hüseyin Efendinin Torunuyum. Yaklaşık İse 40 Yıldır Havas Ve Hüddam İlmi Üzerinde Sizlere 100 Sonuç Veren Garantili Çalışmalar Hazırlamaktayım, 1964 Yılında Irak’ın Basra Şehrinde Doğdum, Dedem Arap Hüseyin Efendiden El Aldım Ve Sizlere 1990 lı Yıllardan Bu Yana Medyum Hocalık Konularında Hizmet Veriyorum, 100 Sonuç Vermiş Olduğum Çalışmalar İse, Giden Eşleri Sevgilileri Geri Getirme, Aşk Bağlama, Aşık Etme, Kısmet Açma, Büyü Bozma Konularında Garantili Sonuçlar Veriyorum, Başta Almanya Fransa Hollanda Olmak Üzere Dünyanın Neresinde Olursanız Olun Hiç Çekinmeden Benimle İletişim Kurabilirsiniz.

  98. To have a look at was at regular a couple of, a the mother consideration which should genuinely undergo Native english speakers known as, like a result your lady allow me to undergo while using type in mentor Ye in Vibrant Development in Beijing. About the style As i did begin to find out in regards to the refreshing new Practice Native english speakers and in many cases dealt with that sentence structure made for to start with.

  99. Yes! Finally something about mobile legends bilet nedir bilet ne işe yarar.

ランキング(週間)

  1. 1

    GA4 「ページ ロケーション」と「ページ パス と スクリーン クラス」何が違う?ドメインの有無以外にもパラメータの扱いに違いあり

  2. 2

    GA4の探索で「ページ別訪問数」を見ることは可能か?

  3. 3

    GA4のレポート画面の数値データは、イベント発生時から何時間後に確定するのか?

  4. 4

    GA4 拡張計測機能の新顔「フォームの操作」 form_start, form_submit

  5. 5

    【祝・GPT-4 が ChatGPT plus に登場記念!】アクセス解析コンサルタントが、GPT-4にCSVデータを渡して、データ解析結果のコメントを書いてもらう方法

  6. 6

    GA4の指標「総ユーザー数」VS「アクティブ ユーザー数」

  7. 7

    YouTubeの概要欄に貼られたリンクをクリックしてサイトを訪れたユーザーを計測するために

  8. 8

    GA4 クロスドメイン設定では、リンク先に「_gl」パラメータが付く。勝手なパラメータを付けるとエラーになるページは要注意

  9. 9

    GA4では、utm_term, utm_content はどうなったのか?

  10. 10

    GA4で異なるドメイン(サブドメイン)の同一ページパスをドメイン付きで表示する

最近の記事

  1. 生成AIを調整してABテストを実装したら想像以上に早かった

  2. 無料で使えるABテストツールのバージョンアップを行いました

  3. 無料ABテストツール(and,B)のマニュアルを作成しました

カテゴリー

 
TOP