dynamicAccountMatch

IMPORTANT
仅当使用旧版 JavaScript 实施(H 代码)时,才支持动态帐户。当前的 AppMeasurement 库或 Adobe Experience Platform 中的标记不支持这些变量。

dynamicAccountMatch 变量值由 dynamicAccountList 进行检查和与其值进行比较。如果 dynamicAccountSelection 未设置为 true,则忽略此变量。

如果未定义此变量,则其默认值为 window.location.host

语法

s.dynamicAccountMatch=[DOM object]

示例

// Look at the URL path to determine report suite
s.dynamicAccountMatch = location.pathname;

// Use a query string
s.dynamicAccountMatch = location.search;

// Use the full URL
s.dynamicAccountMatch = location.href;

// Use concatenated variables
s.dynamicAccountMatch =  location.hostname + location.pathname + location.search;

其他说明

  • 保存到硬盘的页面不会定义任何 location 变量(例如,location.host 为空)。确保 s_account 包含默认的报表包。
  • 在页面通过基于 Web 的翻译引擎(如 Google)进行了翻译时,动态帐户选择无法按预期使用。如需更精确的跟踪,请通过服务器端填充 s_account 变量。
recommendation-more-help
b4f6d761-4a8b-4322-b801-c85b9e3be690