ActivityMap.regionExclusions
ActivityMap.regionExclusions
變數可讓您根據在Activity Map地區維度中收集的維度專案,選擇性地篩選或排除Activity Map資料。
Web SDK擴充功能中的地區排除
當 啟用點選資料集合 啟用時,請使用 篩選點選屬性 回呼程式碼區塊。 在此程式碼區塊中,您可以檢查content.linkRegion
的值,然後變更值或放棄連結追蹤資料的集合。
Web SDK JavaScript資料庫中的地區排除
啟用clickCollectionEnabled
時,請在clickCollection
物件中使用filterClickDetails
回呼。 在此回撥中,您可以檢查linkRegion
的值,然後變更值或放棄連結追蹤資料的集合。
alloy("configure", {
clickCollectionEnabled: true,
clickCollection: {
filterClickDetails: function(content) {
// If the clicked region has personal links in it, don't send click data
if(content.linkRegion.includes("personal")) {
return false;
}
}
}
});
使用Adobe Analytics擴充功能的地區排除
Adobe Analytics 擴充功能中沒有專用欄位可使用這個變數。請依照 AppMeasurement 語法使用自訂程式碼編輯器。
使用AppMeasurement的s.ActivityMap.regionExclusions
s.ActivityMap.regionExclusions
變數是字串,其中包含要從Activity Map追蹤排除的逗號分隔片語。 如果任何片語符合在Activity Map區域維度中收集的值,則會從點選中移除所有Activity Map資料。
<script>
var s = s_gi("examplersid");
s.ActivityMap.regionExclusions = "contact";
</script>
<!-- Clicking any of these links tracks normally. -->
<!-- While "contact" is present, it is not tracked in region. The region is "nav" -->
<nav>
<a href="index.html">Home</a>
<a href="products.html">View our products</a>
<a href="contact.html">Contact us</a>
</nav>
<!-- Activity Map data is not tracked for any of these links. -->
<!-- All these links belong to the region "Personal contact information" -->
<div id="personal-contact-information">
<a href="mailto:user@example.com">Example user</a>
<a href="mailto:user2@example.com">Example user 2</a>
<a href="mailto:user3@example.com">Example user 3</a>
</div>
recommendation-more-help
b4f6d761-4a8b-4322-b801-c85b9e3be690