server
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 using the Web SDK
Server is mapped for Adobe Analytics under the XDM field web.webPageDetails.server
.
Server using the Adobe Analytics extension
You can set server either while configuring the Analytics extension (global variables) or under rules.
- Log in to Adobe Experience Platform Data Collection using your AdobeID credentials.
- Click the desired tag property.
- Go to the Rules tab, then click the desired rule (or create a rule).
- Under Actions, click an existing Adobe Analytics - Set Variables action or click the ‘+’ icon.
- Set the Extension drop-down list to Adobe Analytics, and the Action Type to Set Variables.
- Locate the Server section.
You can set server to any string value or data element.
s.server in AppMeasurement and the Analytics extension custom code editor
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;
recommendation-more-help
b4f6d761-4a8b-4322-b801-c85b9e3be690