Microsoft Advertising 可讓您將網站上的自訂事件 (例如,顧客訂閱電子報或下載白皮書) 當作成交進行追蹤。若要深入了解,請參閱 為何要追蹤自訂事件。
開始設定自訂事件前,請先確認您具有︰
<head>您的網頁標題// 選擇 1:在這裡 ("head" 標籤之間) 插入您的 UET 標籤。
</head>
<body>// 選擇 2:在這裡 (就在以 "body" 標籤開場之後) 插入您的 UET 標籤。
...
<button>立即下載</button>
...
</body>
您會將 UET 標籤追蹤程式碼自訂成符合這裡所定義的值 (步驟 3 將有說明)。如此一來,Microsoft Advertising 才能將 UET 所記錄到符合這些值的自訂事件計為成交。
我們每次偵測到與您成交目標相符的動作,就會計為一次成交。
您會將 UET 標籤追蹤程式碼自訂成符合這裡所定義的值 (步驟 3 將有說明)。如此一來,Microsoft Advertising 才能將 UET 所記錄到符合這些值的自訂事件計為成交。
<head>您的網頁標題
</head>
<body>// 假設這裡是您在步驟 1 貼上 UET 標籤的地方。
<script>這裡是您的 UET 標籤。</script>// 這裡是該貼上下列 JavaScript 程式碼的地方:
<script>
window.uetq = window.uetq || [];
window.uetq.push ('event', 'Replace_with_Event_Action', {'event_category':'Replace_with_Event_Category', 'event_label':'Replace_with_Event_Label', 'event_value':'Replace_with_Event_Value'});
</script>
...
<button>Download now</button>
...
</body>
<head>Your page title
</head>
<body>
<script>Your UET tag is here.</script>
<script>function GetCustomEvent() {
window.uetq = window.uetq || [];
window.uetq.push ('event', 'Replace_with_Event_Action', {'event_category':'Replace_with_Event_Category', 'event_label':'Replace_with_Event_Label', 'event_value':'Replace_with_Event_Value'});}
</script>
...
<button>立即下載</button>
...
</body>
<head>Your page title
</head>
<body>
<script>Your UET tag is here.</script>
</script>
<script>
function GetCustomEvent() {
window.uetq = window.uetq || [];
window.uetq.push ('event', 'Replace_with_Event_Action', {'event_category':'Replace_with_Event_Category', 'event_label':'Replace_with_Event_Label', 'event_value':'Replace_with_Event_Value'});
}
</script>
...
<button OnClick="GetCustomEvent()">立即下載</button>
...
</body>
<head>您的網頁標題
</head>
<body>
<script>這裡是您的 UET 標籤。</script>
</script>
<script>
function GetCustomEvent() {
window.uetq = window.uetq || [];
window.uetq.push ('event', 'Replace_with_Event_Action', {'event_category': 'Replace_with_Event_Category', 'event_label': 'Replace_with_Event_Label', 'event_value': 'Replace_with_Event_Value'});
}
</script>
...
<button OnClick="GetCustomEvent()>立即下載</button>
...
</body>
<head>您的網頁標題
</head>
<body>
<script>這裡是您的 UET 標籤。</script>
<script>
function GetCustomEvent() {
window.uetq = window.uetq || [];
window.uetq.push ('event', 'downloadbuttonclick', {});
}
</script>
...
<button OnClick="GetCustomEvent()>立即下載</button>
...
</body>
<script> window.uetq = window.uetq || []; window.uetq.push('event', '', {'event_category':'Replace_with_Event_Category', 'event_label':'Replace_with_Event_Label', 'event_value':'Replace_with_Event_Value'}); </script>
<script> window.uetq = window.uetq || []; window.uetq.push('event', 'add_payment_info', {'event_category':'Replace_with_Event_Category', 'event_label':'Replace_with_Event_Label', 'event_value':'Replace_with_Event_Value'}); </script>
<script> window.uetq = window.uetq || []; window.uetq.push('event', 'Event action', {}); </script>