仅当使用旧版 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
包含默认的报表包。s_account
变量。