eコマーストランザクションのトラッキングを有効にします。
管理画面でプロファイル設定の設定タブで、eコマースを有効にします。
トラッキングコードの設置
2番目のステップでは、下記トラッキングコードを挿入します。
<script src="/urchin.js"
type="text/javascript">
</script>
次に、下記トラッキングコードに次の行が書き込まれるようにします。
[ ] 内は実際の値に置き換えてください。
<form style="display:none;"
name="utmform">
<textarea
id="utmtrans">UTM:T|[order-id]|[affiliation]|
[total]|[tax]| [shipping]|[city]|[state]|[country]
UTM:I|[order-id]|[sku/code]|[productname]|[category]|[price]|
[quantity] </textarea>
</form>
utmsettrans()の起動
<body>の開始タグのonloadイベントに:
<body onLoad="javascript:__utmSetTrans()">
または、 bodyタグを編集して、 utmsettrans関数を呼び出
<script type="text/javascript">
__utmSetTrans();
</script>
●例
UTM:T|34535|Main Store|111108.06|8467.06|10.00|San
Diego|CA|USA
UTM:I|34535|XF-1024|Urchin T-Shirt|Shirts|11399.00|9
UTM:I|34535|CU-3424|Urchin Drink Holder|Accessories|20.00|2
2つの種類の行:
、トランザクション行と、アイテム行です。
トランザクションごとに、 1つだけ存在する必要がありますトランザクション行と、これは示された直後に"
T "し、 " UTM : "です。この行では、トランザクションの合計を指定するなど、任意の税や配送料やその他の情報です。各項目は、領収書、アイテム行を作成するには、指定された"
i "のです。アイテム行に含めることが、商品名、コード、単価、および数量です。の数に制限はありません1回のトランザクションあたりのアイテム行です。
パラメータリファレンス
トランザクション行の変数
[order-id] Your internal unique
order id number
[affiliation] Optional partner or store affiliation
[total] Total amount of the
transaction in pounds
[tax] Tax amount of the transaction
[shipping] The shipping amount of the transaction
[city] City with which to correlate the transaction
[state/region] State or province
[country] Country
アイテム行の変数
[order-id] Your internal unique
order id number (should be same as transaction line)
[sku/code] Product SKU code
[product name] Product name or description
[category] Category of the product or variation
[price] Unit price of the
product
[quantity] Quantity ordered