Microsoft Advertising 可讓您將網站上的自訂事件 (例如,使用者訂閱電子報或下載白皮書) 當作成交進行追蹤。若要深入了解,請參閱 為何要追蹤自訂事件.
開始設定自訂事件前,請先確認您具有:
從頂端功能表中,選取 [工具] > [UET 標籤] 。
如果您使用 新的 Microsoft Advertising 導覽,請從左側的導覽功能表,將滑鼠指標停留在 [成交] 上,然後選取 [UET 標籤]。
<head>Your page title// Option 1: Insert your UET tag here, between the "head" tags.
</head>
<body>// Option 2: Insert your UET tag here, right after beginning of the "body" tag.
...
<button>Download now</button>
...
</body>
從頂端功能表中,選取 [工具] > [成交目標] 。
如果您使用 新的 Microsoft Advertising 導覽,請從左側的導覽功能表,將滑鼠指標停留在 [成交] 上,然後選取 [成交目標]。
如果您選擇 [否,表示此 UET 標籤並未安裝在您所有的網站頁面上] ,或 [我不確定。我需要安裝標籤的指示] ,請選取 [自行安裝標籤] 或 [將標籤傳送給開發人員] 。選取 [下一步] ,然後按照畫面上的指示操作。選取 [下一步] 以完成成交目標的設定。 深入了解在您的網站上新增 UET 標籤。
我們每次偵測到與您的轉換目標相符的動作,就會計為一次轉換。
從左側的摺疊式功能表中,選取 [所有廣告活動] > [客群] 。
如果您使用 新的 Microsoft Advertising 導覽,請從左側的導覽功能表,將滑鼠指標停留在 [廣告活動] 上,然後選取 [客群]。
您會將 UET 標籤追蹤程式碼自訂成符合這裡所定義的值 (步驟 3 將有說明)。如此一來, Microsoft Advertising 才能將 UET 所記錄到符合這些值的自訂事件計為成交。
<head>Your page title
</head>
<body>// Let's say this is where you pasted the UET tag in Step 1.
<script>Your UET tag is here.</script>// Here is where to paste the following 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>Download now</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()">Download now</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()>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', 'downloadbuttonclick', {});
}
</script>
...
<button OnClick="GetCustomEvent()>Download now</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>