server
變數通常會儲存網站的主機名稱。它常用於包含多個網域資料的報表套裝。它的功能與 prop 相同。
伺服器是 已對應至Adobe Analytics 在XDM欄位下 web.webPageDetails.server
.
您可以在設定 Analytics 擴充功能 (全域變數) 時或是在規則底下設定伺服器。
您可以將伺服器設定為任何字串值或資料元素。
s.server
變數是字串,通常包含網站的主機名稱。其最大值為 100 個位元組;超過上限的值會遭到截斷。
// Set the server variable to a static string
s.server = "Example server";
// Automatically set the server variable to the site's hostname
s.server = window.location.hostname;