【注意事項】
以下は、ecコンシェルの設置法の一例となっておりますので、
貴社テストサイト等での動作をご確認頂き、本番サイトに導入するようお願い致します。
【導入手順】
下記手順を1. から順番に行ってください。太字の設定(1, 2, 7, 8)は必須になります。
- タグの設置場所を確認する
- 共通出力 (計測タグ)
- トップページ
- 商品一覧(商品グループ / バンドル商品 / クーポン対象商品)
- 商品検索結果一覧
- 商品詳細ページ
- ショッピングカートページ (カートタグ)
- 注文完了ページ (コンバージョンタグ)
- 会員登録完了
- メールマガジン申込完了
【コマースクリエイターの置換文字をカスタム属性に設定する手順】
【タグの設置場所を確認する】
管理画面上から、「構築メニュー」→「プロモーション管理」→「測定タグ一覧」と進みます。
測定タグ一覧画面が表示され、測定タグ新規登録ボタンをクリックするとタグの設定画面へ遷移します。
測定タグ設定の利用設定にチェックを入れ、設定名に「ecコンシェル」と入力してください。
またアカウント名にはこちらから確認したサイト識別子を入力してください。
【共通出力 (計測タグ ※必須)】
共通出力欄へタグを設置します。このタグは必ず設置してください。
出力設定に「<head>タグ内に出力する」を選択し、出力内容に下記のタグを貼り付けてください。
◆出力内容に設置するタグ
<script>
(function(w,d,url,a,s,e){
w[a]= (w[a]||[]);
s = d.getElementsByTagName("script")[0];e = d.createElement("script");e.src=url;e.async=1;s.parentNode.insertBefore(e,s);
})(window,document,'//ec-concier.com/{% analytics.account_id %}/analytics.js','ara');
ara.push(['init','{% analytics.account_id %}', {subdomain:true}]);
ara.push(['custom_set', 'account_id', '{% analytics.account_id %}']);
ara.push(['custom_set', 'placeholder1', '{% analytics.placeholder1 %}']);
ara.push(['custom_set', 'placeholder2', '{% analytics.placeholder2 %}']);
ara.push(['custom_set', 'placeholder3', '{% analytics.placeholder3 %}']);
ara.push(['custom_set', 'device', '{% analytics.device %}']);
ara.push(['custom_set', 'login_flag', {@ member.logged_in @}]);
ara.push(['custom_set', 'member_id', {@ member.id @}]);
ara.push(['custom_set', 'member_stage_name', '{@ member.stage_name @}']);
ara.push(['custom_set', 'member_total_points', {@ member.total_points @}]);
ara.push(['custom_set', 'member_active_points', {@ member.active_points @}]);
</script>
【トップページ】
トップページにはタグ設置の必要はありません。
【商品一覧(商品グループ / バンドル商品 / クーポン対象商品)】
商品一覧(商品グループ / バンドル商品 / クーポン対象商品)ページへタグを設置します。
出力設定に「<head>タグ内に出力する」を選択し、出力内容及び商品置換文字の設定に
下記の内容をそれぞれ貼り付けてください。※区切り文字には何も入力しないでください。
最大出力件数は商品置換文字の設定欄の内容を出力する件数になります。入力が無い場合エラーになります。
※件数分の商品情報がカスタム属性にコンマ区切りの文字列で格納されます。10より大きい値(200まで)も設定は可能ですが20程度までが推奨です
◆出力内容に設置するタグ
<script>
(function() {
var ITEM = {
PRODUCT_ID: 0, PRODUCT_NO: 1, PRODUCT_URL: 2, PRODUCT_NAME: 3, PRODUCT_IMAGE_PATH: 4,
PRODUCT_IMAGE_THUMB: 5, PRODUCT_PRICE_EXCLUDING_TAX: 6, PRODUCT_PRICE_INCLUDING_TAX: 7,
TAX: 8, PRODUCT_MEMBER_PRICE_INCLUDING_TAX: 9, PRODUCT_MEMBER_PRICE_EXCLUDING_TAX: 10,
PRODUCT_MEMBER_TAX: 11
}
var itemInfoArray = new Array(Object.keys(ITEM).length);
for (var i = 0; i < itemInfoArray.length; i++) {
itemInfoArray[i] = [];
}
{% analytics.item_info %}
for (var i = 0; i < itemInfoArray.length; i++) {
itemInfoArray[i] = itemInfoArray[i].filter(function(value, index, array) { return value.length > 0 }).join(',');
}
ara.push(['custom_set', 'catalog_category_name', '{% analytics.category.name %}']);
ara.push(['custom_set', 'catalog_category_url', '{% analytics.category_url %}']);
ara.push(['custom_set', 'bundle_name', '{% analytics.bundle.name %}']);
ara.push(['custom_set', 'bundle_url', '{% analytics.bundle.url %}']);
ara.push(['custom_set', 'search_product_id', itemInfoArray[ITEM.PRODUCT_ID]]);
ara.push(['custom_set', 'search_product_no', itemInfoArray[ITEM.PRODUCT_NO]]);
ara.push(['custom_set', 'search_product_url', itemInfoArray[ITEM.PRODUCT_URL]]);
ara.push(['custom_set', 'search_product_name', itemInfoArray[ITEM.PRODUCT_NAME]]);
ara.push(['custom_set', 'search_product_image_path', itemInfoArray[ITEM.PRODUCT_IMAGE_PATH]]);
ara.push(['custom_set', 'search_product_image_thumb', itemInfoArray[ITEM.PRODUCT_IMAGE_THUMB]]);
ara.push(['custom_set', 'search_product_price_excluding_tax', itemInfoArray[ITEM.PRODUCT_PRICE_EXCLUDING_TAX]]);
ara.push(['custom_set', 'search_product_price_including_tax', itemInfoArray[ITEM.PRODUCT_PRICE_INCLUDING_TAX]]);
ara.push(['custom_set', 'search_tax', itemInfoArray[ITEM.TAX]]);
ara.push(['custom_set', 'search_product_member_price_including_tax', itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_INCLUDING_TAX]]);
ara.push(['custom_set', 'search_product_member_price_excluding_tax', itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_EXCLUDING_TAX]]);
ara.push(['custom_set', 'search_product_member_tax', itemInfoArray[ITEM.PRODUCT_MEMBER_TAX]]);
})();
</script>
◆商品置換文字の設定に設置するコード
itemInfoArray[ITEM.PRODUCT_ID].push('{% analytics.product_id %}');
itemInfoArray[ITEM.PRODUCT_NO].push('{% analytics.product_no %}');
itemInfoArray[ITEM.PRODUCT_URL].push('{% analytics.product.url %}');
itemInfoArray[ITEM.PRODUCT_NAME].push('{% analytics.product_name %}');
itemInfoArray[ITEM.PRODUCT_IMAGE_PATH].push('{% analytics.product.image_path %}');
itemInfoArray[ITEM.PRODUCT_IMAGE_THUMB].push('{% analytics.product.image_thumbnail_path %}');
itemInfoArray[ITEM.PRODUCT_PRICE_EXCLUDING_TAX].push('{% analytics.product.price_excluding_tax %}');
itemInfoArray[ITEM.PRODUCT_PRICE_INCLUDING_TAX].push('{% analytics.product.price_including_tax %}');
itemInfoArray[ITEM.TAX].push('{% analytics.tax %}');
itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_INCLUDING_TAX].push('{% analytics.product.member_price_including_tax %}');
itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_EXCLUDING_TAX].push('{% analytics.product.member_price_excluding_tax %}');
itemInfoArray[ITEM.PRODUCT_MEMBER_TAX].push('{% analytics.product.member_tax %}');
【商品検索結果一覧】
商品検索結果一覧ページへタグを設置します。
出力設定に「<head>タグ内に出力する」を選択し、出力内容及び商品置換文字の設定に
下記の内容をそれぞれ貼り付けてください。※区切り文字には何も入力しないでください。
最大出力件数は商品置換文字の設定欄の内容を出力する件数になります。入力が無い場合エラーになります。
※件数分の商品情報がカスタム属性にコンマ区切りの文字列で格納されます。10より大きい値(200まで)も設定は可能ですが20程度までが推奨です
◆出力内容に設置するタグ
<script>
(function() {
var ITEM = {
PRODUCT_ID: 0, PRODUCT_NO: 1, PRODUCT_URL: 2, PRODUCT_NAME: 3, PRODUCT_IMAGE_PATH: 4,
PRODUCT_IMAGE_THUMB: 5, PRODUCT_PRICE_EXCLUDING_TAX: 6, PRODUCT_PRICE_INCLUDING_TAX: 7,
TAX: 8, PRODUCT_MEMBER_PRICE_INCLUDING_TAX: 9, PRODUCT_MEMBER_PRICE_EXCLUDING_TAX: 10,
PRODUCT_MEMBER_TAX: 11
}
var itemInfoArray = new Array(Object.keys(ITEM).length);
for (var i = 0; i < itemInfoArray.length; i++) {
itemInfoArray[i] = [];
}
{% analytics.item_info %}
for (var i = 0; i < itemInfoArray.length; i++) {
itemInfoArray[i] = itemInfoArray[i].filter(function(value, index, array) { return value.length > 0 }).join(',');
}
ara.push(['custom_set', 'search_product_id', itemInfoArray[ITEM.PRODUCT_ID]]);
ara.push(['custom_set', 'search_product_no', itemInfoArray[ITEM.PRODUCT_NO]]);
ara.push(['custom_set', 'search_product_url', itemInfoArray[ITEM.PRODUCT_URL]]);
ara.push(['custom_set', 'search_product_name', itemInfoArray[ITEM.PRODUCT_NAME]]);
ara.push(['custom_set', 'search_product_image_path', itemInfoArray[ITEM.PRODUCT_IMAGE_PATH]]);
ara.push(['custom_set', 'search_product_image_thumb', itemInfoArray[ITEM.PRODUCT_IMAGE_THUMB]]);
ara.push(['custom_set', 'search_product_price_excluding_tax', itemInfoArray[ITEM.PRODUCT_PRICE_EXCLUDING_TAX]]);
ara.push(['custom_set', 'search_product_price_including_tax', itemInfoArray[ITEM.PRODUCT_PRICE_INCLUDING_TAX]]);
ara.push(['custom_set', 'search_tax', itemInfoArray[ITEM.TAX]]);
ara.push(['custom_set', 'search_product_member_price_including_tax', itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_INCLUDING_TAX]]);
ara.push(['custom_set', 'search_product_member_price_excluding_tax', itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_EXCLUDING_TAX]]);
ara.push(['custom_set', 'search_product_member_tax', itemInfoArray[ITEM.PRODUCT_MEMBER_TAX]]);
})();
</script>
◆商品置換文字の設定に設置するコード
itemInfoArray[ITEM.PRODUCT_ID].push('{% analytics.product_id %}');
itemInfoArray[ITEM.PRODUCT_NO].push('{% analytics.product_no %}');
itemInfoArray[ITEM.PRODUCT_URL].push('{% analytics.product.url %}');
itemInfoArray[ITEM.PRODUCT_NAME].push('{% analytics.product_name %}');
itemInfoArray[ITEM.PRODUCT_IMAGE_PATH].push('{% analytics.product.image_path %}');
itemInfoArray[ITEM.PRODUCT_IMAGE_THUMB].push('{% analytics.product.image_thumbnail_path %}');
itemInfoArray[ITEM.PRODUCT_PRICE_EXCLUDING_TAX].push('{% analytics.product.price_excluding_tax %}');
itemInfoArray[ITEM.PRODUCT_PRICE_INCLUDING_TAX].push('{% analytics.product.price_including_tax %}');
itemInfoArray[ITEM.TAX].push('{% analytics.tax %}');
itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_INCLUDING_TAX].push('{% analytics.product.member_price_including_tax %}');
itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_EXCLUDING_TAX].push('{% analytics.product.member_price_excluding_tax %}');
itemInfoArray[ITEM.PRODUCT_MEMBER_TAX].push('{% analytics.product.member_tax %}');
【商品詳細ページ】
商品詳細ページへタグを設置します。出力設定に「<head>タグ内に出力する」を選択し、出力内容に下記のタグを貼り付けてください。
◆出力内容に設置するタグ
<script>
ara.push(['custom_set', 'goods_category_name', '{% analytics.category.name %}']);
ara.push(['custom_set', 'goods_category_url', '{% analytics.category_url %}']);
ara.push(['custom_set', 'goods_product_id', {% analytics.product_id %}]);
ara.push(['custom_set', 'goods_product_no', '{% analytics.product_no %}']);
ara.push(['custom_set', 'goods_product_url', '{% analytics.product.url %}']);
ara.push(['custom_set', 'goods_product_name', '{% analytics.product_name %}']);
ara.push(['custom_set', 'goods_product_image_path', '{% analytics.product.image_path %}']);
ara.push(['custom_set', 'goods_product_image_thumb', '{% analytics.product.image_thumbnail_path %}']);
ara.push(['custom_set', 'goods_product_price_excluding_tax', {% analytics.product.price_excluding_tax %}]);
ara.push(['custom_set', 'goods_product_price_including_tax', {% analytics.product.price_including_tax %}]);
ara.push(['custom_set', 'goods_tax', {% analytics.tax %}]);
ara.push(['custom_set', 'goods_product_member_price_including_tax', {% analytics.product.member_price_including_tax %}]);
ara.push(['custom_set', 'goods_product_member_price_excluding_tax', {% analytics.product.member_price_excluding_tax %}]);
ara.push(['custom_set', 'goods_product_member_tax', {% analytics.product.member_tax %}]);
ara.push(['custom_set', 'earn_points', {% analytics.earn_points %}]);
</script>
【ショッピングカートページ (カートタグ)】
ショッピングカートページへタグを設置します。出力設定に「<head>タグ内に出力する」を選択し、出力内容及び商品置換文字の設定に
下記の内容をそれぞれ貼り付けてください。※区切り文字には何も入力しないでください。
◆出力内容に設置するタグ
<script>
(function (){
var ITEM = {
CATEGORY_NAME: 0, CATEGORY_URL: 1, PRODUCT_ID: 2, PRODUCT_NO: 3, PRODUCT_SKU: 4,
PRODUCT_URL: 5, PRODUCT_PATH: 6, PRODUCT_JAN_CODE: 7, PRODUCT_NAME: 8,
PRODUCT_IMAGE_PATH: 9, PRODUCT_IMAGE_THUMB: 10, PRODUCT_PRICE_EXCLUDING_TAX: 11,
PRODUCT_PRICE_INCLUDING_TAX: 12, PRODUCT_PRICE_WITH_OPTIONS_EXCLUDING_TAX: 13,
PRODUCT_PRICE_WITH_OPTIONS_INCLUDING_TAX: 14, PRODUCT_MEMBER_PRICE_INCLUDING_TAX: 15,
PRODUCT_MEMBER_PRICE_EXCLUDING_TAX: 16, QUANTITY: 17
}
var itemInfoArray = new Array(Object.keys(ITEM).length);
for (var i = 0; i < itemInfoArray.length; i++) {
itemInfoArray[i] = [];
}
{% analytics.item_info %}
for (var i = 0; i < itemInfoArray.length; i++) {
itemInfoArray[i] = itemInfoArray[i].filter(function(value, index, array) { return value.length > 0 }).join(',');
}
var format = function(str) {
str = str !== '' ? str.substring(0, 4) + '-' + str.substring(4, 6) + '-' + str.substring(6, 8) : false;
return str ? new Date(str) : '';
}
ara.push(['cart', {cartPrice:{% analytics.purchase_price_with_options_including_tax %}}]);
ara.push(['custom_set', 'param1', '{% analytics.param1 %}']);
ara.push(['custom_set', 'param2', '{% analytics.param2 %}']);
ara.push(['custom_set', 'param3', '{% analytics.param3 %}']);
ara.push(['custom_set', 'timestamp', {% analytics.timestamp %}]);
ara.push(['custom_set', 'prefecture', '{% analytics.prefecture %}']);
ara.push(['custom_set', 'gender', '{% analytics.gender %}']);
ara.push(['custom_set', 'birthday', format('{% analytics.birthday %}')]);
ara.push(['custom_set', 'age', {% analytics.age %}]);
ara.push(['custom_set', 'age_group', {% analytics.age_group %}]);
ara.push(['custom_set', 'member_times_purchased', {% analytics.member.times_purchased %}]);
ara.push(['custom_set', 'first_buy_date', format('{% analytics.first_buy_date %}')]);
ara.push(['custom_set', 'cart_total_quantity', {% analytics.total_quantity %}]);
ara.push(['custom_set', 'purchase_price_including_tax', {% analytics.purchase_price_including_tax %}]);
ara.push(['custom_set', 'purchase_price_with_options_including_tax', {% analytics.purchase_price_with_options_including_tax %}]);
ara.push(['custom_set', 'purchase_price_with_options_excluding_tax', {% analytics.purchase_price_with_options_excluding_tax %}]);
ara.push(['custom_set', 'quantity_list', '{% analytics.quantity_list %}']);
ara.push(['custom_set', 'google_adwords_prodid', "{% analytics.google_adwords_prodid %}"]);
ara.push(['custom_set', 'google_adwords_totalvalue', {% analytics.google_adwords_totalvalue %}]);
ara.push(['custom_set', 'cart_category_name', itemInfoArray[ITEM.CATEGORY_NAME]]);
ara.push(['custom_set', 'cart_category_url', itemInfoArray[ITEM.CATEGORY_URL]]);
ara.push(['custom_set', 'cart_product_id', itemInfoArray[ITEM.PRODUCT_ID]]);
ara.push(['custom_set', 'cart_product_no', itemInfoArray[ITEM.PRODUCT_NO]]);
ara.push(['custom_set', 'cart_product_sku', itemInfoArray[ITEM.PRODUCT_SKU]]);
ara.push(['custom_set', 'cart_product_url', itemInfoArray[ITEM.PRODUCT_URL]]);
ara.push(['custom_set', 'cart_product_path', itemInfoArray[ITEM.PRODUCT_PATH]]);
ara.push(['custom_set', 'cart_product_jan_code', itemInfoArray[ITEM.PRODUCT_JAN_CODE]]);
ara.push(['custom_set', 'cart_product_name', itemInfoArray[ITEM.PRODUCT_NAME]]);
ara.push(['custom_set', 'cart_product_image_path', itemInfoArray[ITEM.PRODUCT_IMAGE_PATH]]);
ara.push(['custom_set', 'cart_product_image_thumb', itemInfoArray[ITEM.PRODUCT_IMAGE_THUMB]]);
ara.push(['custom_set', 'cart_product_price_excluding_tax', itemInfoArray[ITEM.PRODUCT_PRICE_EXCLUDING_TAX]]);
ara.push(['custom_set', 'cart_product_price_including_tax', itemInfoArray[ITEM.PRODUCT_PRICE_INCLUDING_TAX]]);
ara.push(['custom_set', 'cart_product_price_with_options_excluding_tax', itemInfoArray[ITEM.PRODUCT_PRICE_WITH_OPTIONS_EXCLUDING_TAX]]);
ara.push(['custom_set', 'cart_product_price_with_options_including_tax', itemInfoArray[ITEM.PRODUCT_PRICE_WITH_OPTIONS_INCLUDING_TAX]]);
ara.push(['custom_set', 'cart_product_member_price_including_tax', itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_INCLUDING_TAX]]);
ara.push(['custom_set', 'cart_product_member_price_excluding_tax', itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_EXCLUDING_TAX]]);
ara.push(['custom_set', 'cart_quantity', itemInfoArray[ITEM.QUANTITY]]);
})();
</script>
◆商品置換文字の設定に設置するコード
itemInfoArray[ITEM.CATEGORY_NAME].push('{% analytics.category.name %}');
itemInfoArray[ITEM.CATEGORY_URL].push('{% analytics.category_url %}');
itemInfoArray[ITEM.PRODUCT_ID].push('{% analytics.product_id %}');
itemInfoArray[ITEM.PRODUCT_NO].push('{% analytics.product_no %}');
itemInfoArray[ITEM.PRODUCT_SKU].push('{% analytics.product.sku %}');
itemInfoArray[ITEM.PRODUCT_URL].push('{% analytics.product.url %}');
itemInfoArray[ITEM.PRODUCT_PATH].push('{% analytics.product_path %}');
itemInfoArray[ITEM.PRODUCT_JAN_CODE].push('{% analytics.product.jan_code %}');
itemInfoArray[ITEM.PRODUCT_NAME].push('{% analytics.product_name %}');
itemInfoArray[ITEM.PRODUCT_IMAGE_PATH].push('{% analytics.product.image_path %}');
itemInfoArray[ITEM.PRODUCT_IMAGE_THUMB].push('{% analytics.product.image_thumbnail_path %}');
itemInfoArray[ITEM.PRODUCT_PRICE_EXCLUDING_TAX].push('{% analytics.product.price_excluding_tax %}');
itemInfoArray[ITEM.PRODUCT_PRICE_INCLUDING_TAX].push('{% analytics.product.price_including_tax %}');
itemInfoArray[ITEM.PRODUCT_PRICE_WITH_OPTIONS_EXCLUDING_TAX].push('{% analytics.product.price_with_options_excluding_tax %}');
itemInfoArray[ITEM.PRODUCT_PRICE_WITH_OPTIONS_INCLUDING_TAX].push('{% analytics.product.price_with_options_including_tax %}');
itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_INCLUDING_TAX].push('{% analytics.product.member_price_including_tax %}');
itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_EXCLUDING_TAX].push('{% analytics.product.member_price_excluding_tax %}');
itemInfoArray[ITEM.QUANTITY].push('{% analytics.quantity %}');
【注文完了ページ (コンバージョンタグ)】
注文完了ページへタグを設置します。出力設定に「<head>タグ内に出力する」を選択し、出力内容及び商品置換文字の設定に
下記の内容をそれぞれ貼り付けてください。※区切り文字には何も入力しないでください。
◆出力内容に設置するタグ
<script>
(function (){
var ITEM = {
CATEGORY_NAME: 0, CATEGORY_URL: 1, PRODUCT_ID: 2, PRODUCT_NO: 3, PRODUCT_SKU: 4,
PRODUCT_URL: 5, PRODUCT_PATH: 6, PRODUCT_JAN_CODE: 7, PRODUCT_NAME: 8,
PRODUCT_IMAGE_PATH: 9, PRODUCT_IMAGE_THUMB: 10, PRODUCT_PRICE_EXCLUDING_TAX: 11,
PRODUCT_PRICE_INCLUDING_TAX: 12, PRODUCT_PRICE_WITH_OPTIONS_EXCLUDING_TAX: 13,
PRODUCT_PRICE_WITH_OPTIONS_INCLUDING_TAX: 14, PRODUCT_MEMBER_PRICE_INCLUDING_TAX: 15,
PRODUCT_MEMBER_PRICE_EXCLUDING_TAX: 16, QUANTITY: 17
}
var itemInfoArray = new Array(Object.keys(ITEM).length);
for (var i = 0; i < itemInfoArray.length; i++) {
itemInfoArray[i] = [];
}
{% analytics.item_info %}
for (var i = 0; i < itemInfoArray.length; i++) {
itemInfoArray[i] = itemInfoArray[i].filter(function(value, index, array) { return value.length > 0 }).join(',');
}
var format = function(str) {
str = str !== '' ? str.substring(0, 4) + '-' + str.substring(4, 6) + '-' + str.substring(6, 8) : false;
return str ? new Date(str) : '';
}
ara.push(['conversion_type', {conversion_type:'goal', sumValue:{% analytics.purchase_price_with_options_including_tax %}}]);
ara.push(['custom_set', 'param1', '{% analytics.param1 %}']);
ara.push(['custom_set', 'param2', '{% analytics.param2 %}']);
ara.push(['custom_set', 'param3', '{% analytics.param3 %}']);
ara.push(['custom_set', 'timestamp', {% analytics.timestamp %}]);
ara.push(['custom_set', 'prefecture', '{% analytics.prefecture %}']);
ara.push(['custom_set', 'gender', '{% analytics.gender %}']);
ara.push(['custom_set', 'birthday', format('{% analytics.birthday %}')]);
ara.push(['custom_set', 'age', {% analytics.age %}]);
ara.push(['custom_set', 'age_group', {% analytics.age_group %}]);
ara.push(['custom_set', 'member_times_purchased', {% analytics.member.times_purchased %}]);
ara.push(['custom_set', 'first_buy_date', format('{% analytics.first_buy_date %}')]);
ara.push(['custom_set', 'cart_total_quantity', {% analytics.total_quantity %}]);
ara.push(['custom_set', 'purchase_price_including_tax', {% analytics.purchase_price_including_tax %}]);
ara.push(['custom_set', 'purchase_price_with_options_including_tax', {% analytics.purchase_price_with_options_including_tax %}]);
ara.push(['custom_set', 'purchase_price_with_options_excluding_tax', {% analytics.purchase_price_with_options_excluding_tax %}]);
ara.push(['custom_set', 'quantity_list', '{% analytics.quantity_list %}']);
ara.push(['custom_set', 'google_adwords_prodid', "{% analytics.google_adwords_prodid %}"]);
ara.push(['custom_set', 'google_adwords_totalvalue', {% analytics.google_adwords_totalvalue %}]);
ara.push(['custom_set', 'order_no', {% analytics.order_no %}]);
ara.push(['custom_set', 'first_purchase', {% analytics.first_purchase %}]);
ara.push(['custom_set', 'total_postage', {% analytics.total_postage %}]);
ara.push(['custom_set', 'product_name_list', '{% analytics.product_name_list %}']);
ara.push(['custom_set', 'product_no_list', '{% analytics.product_no_list %}']);
ara.push(['custom_set', 'product_url_list', '{% analytics.product_url_list %}']);
ara.push(['custom_set', 'product_sales_price_list', '{% analytics.product_sales_price_list %}']);
ara.push(['custom_set', 'line_total_list', '{% analytics.line_total_list %}']);
ara.push(['custom_set', 'sku_list', '{% analytics.sku_list %}']);
ara.push(['custom_set', 'jan_code_list', '{% analytics.jan_code_list %}']);
ara.push(['custom_set', 'used_coupon_id_list', '{% analytics.used_coupon_id_list %}']);
ara.push(['custom_set', 'cart_category_name', itemInfoArray[ITEM.CATEGORY_NAME]]);
ara.push(['custom_set', 'cart_category_url', itemInfoArray[ITEM.CATEGORY_URL]]);
ara.push(['custom_set', 'cart_product_id', itemInfoArray[ITEM.PRODUCT_ID]]);
ara.push(['custom_set', 'cart_product_no', itemInfoArray[ITEM.PRODUCT_NO]]);
ara.push(['custom_set', 'cart_product_sku', itemInfoArray[ITEM.PRODUCT_SKU]]);
ara.push(['custom_set', 'cart_product_url', itemInfoArray[ITEM.PRODUCT_URL]]);
ara.push(['custom_set', 'cart_product_path', itemInfoArray[ITEM.PRODUCT_PATH]]);
ara.push(['custom_set', 'cart_product_jan_code', itemInfoArray[ITEM.PRODUCT_JAN_CODE]]);
ara.push(['custom_set', 'cart_product_name', itemInfoArray[ITEM.PRODUCT_NAME]]);
ara.push(['custom_set', 'cart_product_image_path', itemInfoArray[ITEM.PRODUCT_IMAGE_PATH]]);
ara.push(['custom_set', 'cart_product_image_thumb', itemInfoArray[ITEM.PRODUCT_IMAGE_THUMB]]);
ara.push(['custom_set', 'cart_product_price_excluding_tax', itemInfoArray[ITEM.PRODUCT_PRICE_EXCLUDING_TAX]]);
ara.push(['custom_set', 'cart_product_price_including_tax', itemInfoArray[ITEM.PRODUCT_PRICE_INCLUDING_TAX]]);
ara.push(['custom_set', 'cart_product_price_with_options_excluding_tax', itemInfoArray[ITEM.PRODUCT_PRICE_WITH_OPTIONS_EXCLUDING_TAX]]);
ara.push(['custom_set', 'cart_product_price_with_options_including_tax', itemInfoArray[ITEM.PRODUCT_PRICE_WITH_OPTIONS_INCLUDING_TAX]]);
ara.push(['custom_set', 'cart_product_member_price_including_tax', itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_INCLUDING_TAX]]);
ara.push(['custom_set', 'cart_product_member_price_excluding_tax', itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_EXCLUDING_TAX]]);
ara.push(['custom_set', 'cart_quantity', itemInfoArray[ITEM.QUANTITY]]);
})();
</script>
◆商品置換文字の設定に設置するコード
itemInfoArray[ITEM.CATEGORY_NAME].push('{% analytics.category.name %}');
itemInfoArray[ITEM.CATEGORY_URL].push('{% analytics.category_url %}');
itemInfoArray[ITEM.PRODUCT_ID].push('{% analytics.product_id %}');
itemInfoArray[ITEM.PRODUCT_NO].push('{% analytics.product_no %}');
itemInfoArray[ITEM.PRODUCT_SKU].push('{% analytics.product.sku %}');
itemInfoArray[ITEM.PRODUCT_URL].push('{% analytics.product.url %}');
itemInfoArray[ITEM.PRODUCT_PATH].push('{% analytics.product_path %}');
itemInfoArray[ITEM.PRODUCT_JAN_CODE].push('{% analytics.product.jan_code %}');
itemInfoArray[ITEM.PRODUCT_NAME].push('{% analytics.product_name %}');
itemInfoArray[ITEM.PRODUCT_IMAGE_PATH].push('{% analytics.product.image_path %}');
itemInfoArray[ITEM.PRODUCT_IMAGE_THUMB].push('{% analytics.product.image_thumbnail_path %}');
itemInfoArray[ITEM.PRODUCT_PRICE_EXCLUDING_TAX].push('{% analytics.product.price_excluding_tax %}');
itemInfoArray[ITEM.PRODUCT_PRICE_INCLUDING_TAX].push('{% analytics.product.price_including_tax %}');
itemInfoArray[ITEM.PRODUCT_PRICE_WITH_OPTIONS_EXCLUDING_TAX].push('{% analytics.product.price_with_options_excluding_tax %}');
itemInfoArray[ITEM.PRODUCT_PRICE_WITH_OPTIONS_INCLUDING_TAX].push('{% analytics.product.price_with_options_including_tax %}');
itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_INCLUDING_TAX].push('{% analytics.product.member_price_including_tax %}');
itemInfoArray[ITEM.PRODUCT_MEMBER_PRICE_EXCLUDING_TAX].push('{% analytics.product.member_price_excluding_tax %}');
itemInfoArray[ITEM.QUANTITY].push('{% analytics.quantity %}');
【会員登録完了】
会員登録完了ページへタグを設置します。※同ページをコンバージョン計測する方法はこちら出力設定に「<head>タグ内に出力する」を選択し、出力内容に下記のタグを貼り付けてください。
◆出力内容に設置するタグ
<script>
(function() {
var format = function(str) {
str = str !== '' ? str.substring(0, 4) + '-' + str.substring(4, 6) + '-' + str.substring(6, 8) : false;
return str ? new Date(str) : '';
}
ara.push(['custom_set', 'param1', '{% analytics.param1 %}']);
ara.push(['custom_set', 'param2', '{% analytics.param2 %}']);
ara.push(['custom_set', 'param3', '{% analytics.param3 %}']);
ara.push(['custom_set', 'timestamp', {% analytics.timestamp %}]);
ara.push(['custom_set', 'prefecture', '{% analytics.prefecture %}']);
ara.push(['custom_set', 'gender', '{% analytics.gender %}']);
ara.push(['custom_set', 'birthday', format('{% analytics.birthday %}')]);
ara.push(['custom_set', 'age', {% analytics.age %}]);
ara.push(['custom_set', 'age_group', {% analytics.age_group %}]);
})();
</script>
【メールマガジン申込完了】
メールマガジン申込完了ページへタグを設置します。※同ページをコンバージョン計測する方法はこちら出力設定に「<head>タグ内に出力する」を選択し、出力内容に下記のタグを貼り付けてください。
◆出力内容に設置するタグ
<script>
(function() {
var format = function(str) {
str = str !== '' ? str.substring(0, 4) + '-' + str.substring(4, 6) + '-' + str.substring(6, 8) : false;
return str ? new Date(str) : '';
}
ara.push(['custom_set', 'param1', '{% analytics.param1 %}']);
ara.push(['custom_set', 'param2', '{% analytics.param2 %}']);
ara.push(['custom_set', 'param3', '{% analytics.param3 %}']);
ara.push(['custom_set', 'timestamp', {% analytics.timestamp %}]);
ara.push(['custom_set', 'newsletter_member_id', {% analytics.newsletter_member_id %}]);
ara.push(['custom_set', 'prefecture', '{% analytics.prefecture %}']);
ara.push(['custom_set', 'gender', '{% analytics.gender %}']);
ara.push(['custom_set', 'birthday', format('{% analytics.birthday %}')]);
ara.push(['custom_set', 'age', {% analytics.age %}]);
ara.push(['custom_set', 'age_group', {% analytics.age_group %}]);
ara.push(['custom_set', 'member_times_purchased', {% analytics.member.times_purchased %}]);
ara.push(['custom_set', 'first_buy_date', format('{% analytics.first_buy_date %}')]);
})();
</script>
ここまでのタグ設置が完了したら、登録ボタンを押下してください。
以上でタグの設置は終了です。
【コマースクリエイターの置換文字をカスタム属性に設定する手順】
ecコンシェルでは、futureshop コマースクリエイターで利用できる置換文字を
カスタム属性に登録することで、様々な条件の接客に利用することができます。
例えば「会員限定で接客したい」「誕生日クーポンを発行したい」等の場合にオススメです。
最新の項目はこちらをご参照ください。下記の表より増えている場合があります。
- 使用できる置換文字の詳細ページ (futureshopのページへジャンプします)
- カスタム属性の設定方法について
【登録が必要なカスタム属性】
◆全ページで取得できる値
カスタム属性名 | カスタム属性のキー | データ種別 | 値の一例 |
---|---|---|---|
アカウント名 | account_id | 文字列 | (測定タグ設定で入力した値) |
共通置換文字1 | placeholder1 | 文字列 | (測定タグ設定で入力した値) |
共通置換文字2 | placeholder2 | 文字列 | (測定タグ設定で入力した値) |
共通置換文字3 | placeholder3 | 文字列 | (測定タグ設定で入力した値) |
デバイス | device | 文字列 | (測定タグ設定で入力した値) |
ログイン状態 | login_flag | 数値 | 会員なら"1" 非会員なら"0" |
会員ID | member_id | 数値 | 10 |
会員ステージ | member_stage_name | 文字列 | ゴールド Aランク |
保有ポイント | member_total_points | 数値 | 1150 |
利用可能ポイント数 | member_active_points | 数値 | 100 |
◆商品一覧(商品グループ / バンドル商品 / クーポン対象商品)ページで取得できる値
カスタム属性名 | カスタム属性のキー | データ種別 | 値の一例 |
---|---|---|---|
商品グループ名(メイン) | catalog_category_name | 文字列 | アパレル レディース |
商品グループURLコード (メイン) |
catalog_category_url | 文字列 | fashion ladies |
バンドル販売名 | bundle_name | 文字列 | レディースバンドル SALEバンドル |
バンドル販売URLコード | bundle_url | 文字列 | Ladies_set SALE_set |
商品ID | search_product_id | 文字列 | 1,2,77,53 |
商品番号 | search_product_no | 文字列 | blueT,gd17,redT |
商品URLコード | search_product_url | 文字列 | aloha_ladies |
商品名 | search_product_name | 文字列 | クッション,デニムのズボン |
商品画像URL | search_product_image_path | 文字列 | https://exampleshop.itembox.design/ product/000/ 000000000010/000000000010-01-l.jpg?t=20190830050238 |
サムネイル画像URL | search_product_image_thumb | 文字列 | https://exampleshop.itembox.design/ product/000/ 000000000010/000000000010-01-m.jpg?t=20190830050238 |
商品単価 (オプション価格除く・税抜) |
search_price_excluding_tax | 文字列 | 3000,2000,1000 |
商品単価 (オプション価格除く・税込) |
search_price_including_tax | 文字列 | 3300,2200,1100 |
消費税(販売価格) | search_tax | 文字列 | 300,200,100 |
会員価格(税込) | search_member_price_including_tax | 文字列 | 1100,550,220 |
会員価格(税抜) | search_member_price_excluding_tax | 文字列 | 1000,500,200 |
消費税(会員価格) | search_product_member_tax | 文字列 | 100,50,20 |
◆商品検索結果一覧ページで取得できる値
カスタム属性名 | カスタム属性のキー | データ種別 | 値の一例 |
---|---|---|---|
商品ID | search_product_id | 文字列 | 1,2,77,53 |
商品番号 | search_product_no | 文字列 | blueT,gd17,redT |
商品URLコード | search_product_url | 文字列 | aloha_ladies |
商品名 | search_product_name | 文字列 | クッション,デニムのズボン |
商品画像URL | search_product_image_path | 文字列 | https://exampleshop.itembox.design/ product/000/ 000000000010/000000000010-01-l.jpg?t=20190830050238 |
サムネイル画像URL | search_product_image_thumb | 文字列 | https://exampleshop.itembox.design/ product/000/ 000000000010/000000000010-01-m.jpg?t=20190830050238 |
商品単価 (オプション価格除く・税抜) |
search_price_excluding_tax | 文字列 | 3000,2000,1000 |
商品単価 (オプション価格除く・税込) |
search_price_including_tax | 文字列 | 3300,2200,1100 |
消費税(販売価格) | search_tax | 文字列 | 300,200,100 |
会員価格(税込) | search_member_price_including_tax | 文字列 | 1100,550,220 |
会員価格(税抜) | search_member_price_excluding_tax | 文字列 | 1000,500,200 |
消費税(会員価格) | search_product_member_tax | 文字列 | 100,50,20 |
◆商品詳細ページで取得できる値
カスタム属性名 | カスタム属性のキー | データ種別 | 値の一例 |
---|---|---|---|
商品グループ名(メイン) | goods_category_name | 文字列 | レディース |
商品グループURLコード (メイン) |
goods_category_url | 文字列 | ladies |
商品ID | goods_product_id | 数値 | 1 |
商品番号 | goods_product_no | 文字列 | blueT |
商品URLコード | goods_product_url | 文字列 | aloha_ladies |
商品名 | goods_product_name | 文字列 | クッション |
商品画像URL | goods_product_image_path | 文字列 | https://exampleshop.itembox.design/ product/000/000000000010/ 000000000010-01-l.jpg?t=20190830050238 |
サムネイル画像URL | goods_product_image_thumb | 文字列 | https://exampleshop.itembox.design/ product/000/000000000010/ 000000000010-01-m.jpg?t=20190830050238 |
商品単価 (オプション価格除く・税抜) |
goods_price_excluding_tax | 数値 | 3000 |
商品単価 (オプション価格除く・税込) |
goods_price_including_tax | 数値 | 3300 |
消費税(販売価格) | goods_tax | 数値 | 300 |
会員価格(税込) | goods_member_price_including_tax | 数値 | 1100 |
会員価格(税抜) | goods_member_price_excluding_tax | 数値 | 1000 |
消費税(会員価格) | goods_product_member_tax | 数値 | 100 |
付与ポイント数 | earn_points | 数値 | 75 |
◆ショッピングカートページで取得できる値
カスタム属性名 | カスタム属性のキー | データ種別 | 値の一例 |
---|---|---|---|
外部流入パラメータ1 | param1 | 文字列 | (測定タグ設定で入力した値) |
外部流入パラメータ2 | param2 | 文字列 | (測定タグ設定で入力した値) |
外部流入パラメータ3 | param3 | 文字列 | (測定タグ設定で入力した値) |
タイムスタンプ | timestamp | 数値 | 20190926143913 |
都道府県 | prefecture | 文字列 | 東京都 |
性別 | gender | 文字列 | 女性 |
生年月日 | birthday | 日付 | 19910529 |
年齢 | age | 数値 | 28 |
年代 | age_group | 数値 | 10代:"1" , 20代:“2” , 30代:“3” , 40代:"4" , 50代:"5" , 60代:"6" , 70代:"7" , 80代:"8" , 90代:"9" , 100歳以上/未入力:"10"をそれぞれ出力 |
総購入回数 | member_times_purchased | 数値 | 20 |
初回購入日 | first_buy_date | 日付 | 20191122 |
商品グループ名(メイン) | cart_category_name | 文字列 | アパレル レディース |
商品グループURLコード (メイン) |
cart_category_url | 文字列 | fashion ladies |
商品ID | cart_product_id | 文字列 | 1,2,77,53 |
商品番号 | cart_product_no | 文字列 | blueT,gd17,redT |
商品URLコード | cart_product_url | 文字列 | aloha_ladies |
商品名 | cart_product_name | 文字列 | クッション,デニムのズボン |
商品画像URL | cart_product_image_path | 文字列 | https://exampleshop.itembox.design/ product/000/000000000010/ 000000000010-01-l.jpg?t=20190830050238 |
サムネイル画像URL | cart_product_image_thumb | 文字列 | https://exampleshop.itembox.design/ product/000/000000000010/ 000000000010-01-m.jpg?t=20190830050238 |
商品単価 (オプション価格除く・税抜) |
cart_price_excluding_tax | 文字列 | 3000,2000,1000 |
商品単価 (オプション価格含む・税抜) |
cart_product_price_with_options_excluding_tax | 文字列 | 4000,3000,2000 |
商品単価 (オプション価格除く・税込) |
cart_price_including_tax | 文字列 | 3300,2200,1100 |
商品単価 (オプション価格含む・税込) |
cart_product_price_with_options_including_tax | 文字列 | 4400,3300,2200 |
会員価格(税込) | cart_member_price_including_tax | 文字列 | 300,200,100 |
会員価格(税抜) | cart_member_price_excluding_tax | 文字列 | 1100,550,220 |
全商品購入数量合計 | cart_total_quantity | 数値 | 3 |
商品購入金額合計 (オプション価格除く・税込) |
purchase_price_including_tax | 数値 | 4400 |
商品購入金額合計 (オプション価格含む・税込) |
purchase_price_with_options_including_tax | 数値 | 5500 |
商品購入金額合計 (オプション価格含む・税抜) |
purchase_price_with_options_excluding_tax | 数値 | 5000 |
全商品購入数量 | quantity_list | 文字列 | 1|2|5 |
Google Adwords リマーケティングタグ (ecomm_prodid) |
google_adwords_prodid | 文字列 | ['4','4','5'] |
Google Adwords リマーケティングタグ (ecomm_totalvalue) |
google_adwords_totalvalue | 数値 | 5500 |
商品番号 (商品番号+バリエーション枝番号(横)+バリエーション枝番号(縦)) |
cart_product_sku | 文字列 | aloha_ladies0403,blueT02 |
商品URL(商品詳細ページURL) | cart_product_path | 文字列 | https://exampleshop.jp/c/ fashion/aloha_ladies |
商品JANコード | cart_product_jan_code | 文字列 | JAN12345 |
商品購入数量 | cart_quantity | 文字列 | 3,4,5 |
◆注文完了ページで取得できる値
カスタム属性名 | カスタム属性のキー | データ種別 | 値の一例 |
---|---|---|---|
外部流入パラメータ1 | param1 | 文字列 | (測定タグ設定で入力した値) |
外部流入パラメータ2 | param2 | 文字列 | (測定タグ設定で入力した値) |
外部流入パラメータ3 | param3 | 文字列 | (測定タグ設定で入力した値) |
タイムスタンプ | timestamp | 数値 | 20190926143913 |
都道府県 | prefecture | 文字列 | 東京都 |
性別 | gender | 文字列 | 女性 |
生年月日 | birthday | 日付 | 19910529 |
年齢 | age | 数値 | 28 |
年代 | age_group | 数値 | 10代:"1" , 20代:“2” , 30代:“3” , 40代:"4" , 50代:"5" , 60代:"6" , 70代:"7" , 80代:"8" , 90代:"9" , 100歳以上/未入力:"10"をそれぞれ出力 |
総購入回数 | member_times_purchased | 数値 | 20 |
初回購入日 | first_buy_date | 日付 | 20191122 |
全商品購入数量合計 | cart_total_quantity | 数値 | 3 |
受注コード | order_no | 数値 | 100000003897 |
初回購入フラグ | first_purchase | 数値 | 初回購入の場合は"1"を出力 2回目以降/ゲスト購入の場合は"0"を出力 |
商品グループ名(メイン) | cart_category_name | 文字列 | アパレル レディース |
商品グループURLコード (メイン) |
cart_category_url | 文字列 | fashion ladies |
商品ID | cart_product_id | 文字列 | 1,2,77,53 |
商品番号 | cart_product_no | 文字列 | blueT,gd17,redT |
商品URLコード | cart_product_url | 文字列 | aloha_ladies |
商品名 | cart_product_name | 文字列 | クッション,デニムのズボン |
商品画像URL | cart_product_image_path | 文字列 | https://exampleshop.itembox.design/ product/000/000000000010/ 000000000010-01-l.jpg?t=20190830050238 |
サムネイル画像URL | cart_product_image_thumb | 文字列 | https://exampleshop.itembox.design/ product/000/000000000010/ 000000000010-01-m.jpg?t=20190830050238 |
商品単価 (オプション価格除く・税抜) |
cart_price_excluding_tax | 文字列 | 3000,2000,1000 |
商品単価 (オプション価格含む・税抜) |
cart_product_price_with_options_excluding_tax | 文字列 | 4000,3000,2000 |
商品単価 (オプション価格除く・税込) |
cart_price_including_tax | 文字列 | 3300,2200,1100 |
商品単価 (オプション価格含む・税込) |
cart_product_price_with_options_including_tax | 文字列 | 4400,3300,2200 |
会員価格(税込) | cart_member_price_including_tax | 文字列 | 300,200,100 |
会員価格(税抜) | cart_member_price_excluding_tax | 文字列 | 1100,550,220 |
商品購入金額合計 (オプション価格除く・税込) |
purchase_price_including_tax | 数値 | 4400 |
商品購入金額合計 (オプション価格含む・税込) |
purchase_price_with_options_including_tax | 数値 | 5500 |
商品購入金額合計 (オプション価格含む・税抜) |
purchase_price_with_options_excluding_tax | 数値 | 5000 |
全商品購入数量 | quantity_list | 文字列 | 1|2|5 |
送料合計 | total_postage | 数値 | 300 |
全商品名 | product_name_list | 文字列 | アロハ(レディース)|デニムのズボン|万能ハサミ |
全商品番号 | product_no_list | 文字列 | gd8|gd7|gd8 |
全商品URLコード | product_url_list | 文字列 | aloha_ladies|gd7|gd8 |
全商品販売価格 | product_sales_price_list | 文字列 | 1728|5000|1728 |
全販売価格*購入数量 | line_total_list | 文字列 | 1080|3000|2800 |
全商品管理番号 (バリエーション枝番あり) |
sku_list | 文字列 | gd880blue|gd7 |
全JANコード | jan_code_list | 文字列 | JAN123456|JAN0000 |
利用された全クーポンID | used_coupon_id_list | 文字列 | C19092600000005|C19092600000001 |
商品名 (商品名+バリエーション名+項目選択肢名) |
product_name_with_options | 文字列 | アロハキッズ(青,80サイズ) 名前/カードあり |
Google Adwords リマーケティングタグ (ecomm_prodid) |
google_adwords_prodid | 文字列 | ['4','4','5'] |
Google Adwords リマーケティングタグ (ecomm_totalvalue) |
google_adwords_totalvalue | 数値 | 5500 |
商品番号 (商品番号+バリエーション枝番号(横)+バリエーション枝番号(縦)) |
cart_product_sku | 文字列 | aloha_ladies0403,blueT02 |
商品URL(商品詳細ページURL) | cart_product_path | 文字列 | https://exampleshop.jp/c/ fashion/aloha_ladies |
商品JANコード | cart_product_jan_code | 文字列 | JAN12345 |
商品購入数量 | cart_quantity | 文字列 | 3,4,5 |
◆会員登録完了ページで取得できる値
カスタム属性名 | カスタム属性のキー | データ種別 | 値の一例 |
---|---|---|---|
外部流入パラメータ1 | param1 | 文字列 | (測定タグ設定で入力した値) |
外部流入パラメータ2 | param2 | 文字列 | (測定タグ設定で入力した値) |
外部流入パラメータ3 | param3 | 文字列 | (測定タグ設定で入力した値) |
タイムスタンプ | timestamp | 数値 | 20190926143913 |
都道府県 | prefecture | 文字列 | 東京都 |
性別 | gender | 文字列 | 女性 |
生年月日 | birthday | 日付 | 19910529 |
年齢 | age | 数値 | 28 |
年代 | age_group | 数値 | 10代:"1" , 20代:“2” , 30代:“3” , 40代:"4" , 50代:"5" , 60代:"6" , 70代:"7" , 80代:"8" , 90代:"9" , 100歳以上/未入力:"10"をそれぞれ出力 |
◆メールマガジン申込完了ページで取得できる値
カスタム属性名 | カスタム属性のキー | データ種別 | 値の一例 |
---|---|---|---|
外部流入パラメータ1 | param1 | 文字列 | (測定タグ設定で入力した値) |
外部流入パラメータ2 | param2 | 文字列 | (測定タグ設定で入力した値) |
外部流入パラメータ3 | param3 | 文字列 | (測定タグ設定で入力した値) |
タイムスタンプ | timestamp | 数値 | 20190926143913 |
メールマガジン会員ID | newsletter_member_id | 文字列 | 〈1〉m5(会員IDが5の場合) 〈2〉“空白” 〈3〉12 |
都道府県 | prefecture | 文字列 | 東京都 |
性別 | gender | 文字列 | 女性 |
生年月日 | birthday | 日付 | 19910529 |
年齢 | age | 数値 | 28 |
年代 | age_group | 数値 | 10代:"1" , 20代:“2” , 30代:“3” , 40代:"4" , 50代:"5" , 60代:"6" , 70代:"7" , 80代:"8" , 90代:"9" , 100歳以上/未入力:"10"をそれぞれ出力 |
総購入回数 | member_times_purchased | 数値 | 20 |
初回購入日 | first_buy_date | 日付 | 20191122 |
【カスタム属性の登録例】
上記の表を利用したカスタム属性の登録を行います。
管理画面上から「各種設定」→「カスタム属性を設定する」と進みます。
下記画像を参考に設定を行います。※画像は「ログイン状態」を利用する設定例になります。
◆カスタム属性登録後のイメージ
6件のカスタム属性を設定した場合の状態になります。
◆カスタム属性の接客条件指定イメージ
「キャンペーン登録 - だれに - カスタム属性・インポート属性によるセグメント」 に設定します。
「会員」の内、「都道府県」が東京都かつ「性別」が女性のユーザに接客する場合のイメージです。
キャンペーン設定「だれに」の登録方法はこちらをご参照ください。