Microsoft Advertising 可讓您追蹤網站上的自訂事件 (例如,使用者訂閱電子報或下載白皮書) 視為轉換。 若要深入了解,請參閱 為何要追蹤自訂事件。
開始設定自訂事件前,請先確認您具有:
<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>
如果您選擇 [否],表示此 UET 標籤並未安裝在您所有的網站頁面上,或者我不確定。我需要安裝標籤的指示,選取 [自行安裝標籤] 或 [將標籤傳送給開發人員]。 選取 [下一步],然後依照畫面上的指示操作。 選取 [下一步] 完成設定成交目標。 深入了解在您的網站上加上 UET 標籤。
我們每次偵測到與您的轉換目標相符的動作,就會計為一次轉換。
您會將 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>