图片-精准获客

Bing 广告账户中 UET 跟踪自定义事件的运用方法《02》

第 3 步:调整您 Bing 推广网站中的 UET 标签跟踪代码

参照我们在第 2 步所举的例子,假设您期望在网页上追踪的自定义事件是用户点击“立即下载”按钮(这将属于一个操作事件,如前文所述)。

在您于步骤 1 中添加至网页代码的 UET 标记之下,增添以下自定义事件的 Javascript 代码:

<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>立即下载</button>

</body>

为这个代码片段设定一个函数名称。该函数名可以是任意的,只要尚未在您的网站中被使用就行。在此例中,我们将其命名为“GetCustomEvent()”:

<head>您的页面标题

</head>

<body>

<script>您的 UET 标签在此。</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’, ‘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>

请注意自定义事件 Javascript 中的四个不同参数:“event”、“event_category”、“event_label”和“event_value”。这些与您在第 2 步中能够选择为自定义事件转化目标所定义的参数相对应。在您添加的 Javascript 中,这些参数具有分配给它们的占位符值:

<head>您的页面标题

</head>

<body>

<script>您的 UET 标签在此。</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>

Bing 推广账户

根据您添加的 Javascript,当自定义事件发生时,需要向 Microsoft Advertising 返回一个值,并且该值需与您在第 2 步中输入的值相匹配。在我们的示例中,我们正在追踪按钮点击,即第 2 步中所示的操作事件(在 Javascript 中由“event”表示)。所以我们需要修改“event”参数的占位符值(我们可以删除其他三个参数):

<head>您的页面标题

</head>

<body>

<script>您的 UET 标签在此。</script>

<script>

function GetCustomEvent() {

window.uetq = window.uetq || [];

window.uetq.push (‘event’, ‘downloadbuttonclick’, {});

}

</script>

<button onClick=”GetCustomEvent()”>立即下载</button>

</body>

保存并部署您编辑后的网站代码。

微软 Bing 使用自定义事件的提示

uetq 是在页面加载时由 UET 跟踪代码实例化的 Javascript 对象。

<script></script> 标签内的代码应当在用户操作(比如点击按钮)完成时实例化。它能够直接连接到 onclick 事件或者被封装在连接到 onclick 事件的 Javascript 函数之中。

命令“event”始终是必需的,即便您没有报告任何事件操作。倘若如此,您可以将事件操作设定为:

为空。例如:

<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>

以下操作之一或许能够帮助您识别未来的事件操作:

add_payment_info、add_to_cart、add_to_wishlist、begin_checkout、checkout_progress、exception、generate_lead、login、page_view、purchase、refund、remove_from_cart、screen_view、search、select_content、set_checkout_option、share 、sign_up、timing_complete、view_item、view_item_list、view_promotion、view_search_results

例如:

<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>

您能够将任何字符串值用于 Replace_with_Event_Category、事件操作和 Replace_with_Event_Label。

鉴于它是一个数值,您能够发送不带引号的事件值。例如, <button onclick=”window.uetq = window.uetq || []; window.uetq.push({ ‘event_category’:’Video’, ‘event’:’Play’, ‘event_label’:’产品演示’, ‘event_value’:5 });”>播放</button>。事件值 5 不带引号传递。

您还能够通过自定义事件传递可变收入。若要获取更多信息,请参阅如何使用 UET 报告可变收入。

您可以使用 UET Tag Helper 来验证您的自定义事件是否正常运作。

要查看安装在网页正文中的自定义事件 UET 标记跟踪代码的示例,请访问此网页(仅限英文),在网页中右键单击,然后依据您所使用的浏览器点击查看源代码或查看页面源代码。在此页面上,您还会看到一些按钮。点击每个按钮将触发自定义事件。倘若使用第三方监控工具如 Fiddler,能够看到生成到 bat.bing.com 的 HTTP 请求报告每个自定义事件。

当您的 Bing 广告推广网页加载时,它会触发 UET 标记,从而产生众多 HTTP 请求。最为重要的请求是“bat.bing”(形如“http://bat.bing.com/action/0?ti=…”的请求)。此请求会将用户访问您的网页的情况告知 Microsoft Advertising。您能够使用第三方工具(例如 Fiddler)来监控您的浏览器在您的网页加载时发出的所有请求。

对于自定义事件,会触发额外的 HTTP 请求以向 Microsoft Advertising 报告相同的事件。该请求与 bat.bing 类似,但它具有不同的参数来报告自定义事件(与仅页面访问相反)。


想在海外投放 Bing 广告应当如何操作?必应当下在海外广告推广应用当中表现出色,拥有较大的流量。若想进行必应广告投放,不妨联系北京精准获客广告代理公司,其推广实战经验丰富,投放效果良好,欢迎咨询哦~~~

© 版权声明
THE END
喜欢就支持一下吧
点赞7 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容