The server
variable typically stores the hostname of your site. It is commonly used in report suites that contain data from multiple domains. It is functionally identical to a prop.
Server is mapped for Adobe Analytics under the XDM field web.webPageDetails.server
.
You can set server either while configuring the Analytics extension (global variables) or under rules.
You can set server to any string value or data element.
The s.server
variable is a string that typically contains the hostname of your site. It has a maximum value of 100 bytes; longer values are truncated.
// 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;