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 to the following variables:

Server using the Adobe Analytics extension

You can set server either while configuring the Analytics extension (global variables) or under rules.

  1. Log in to Adobe Experience Platform Data Collection using your AdobeID credentials.
  2. Click the desired tag property.
  3. Go to the Rules tab, then click the desired rule (or create a rule).
  4. Under Actions, click an existing Adobe Analytics - Set Variables action or click the ‘+’ icon.
  5. Set the Extension drop-down list to Adobe Analytics, and the Action Type to Set Variables.
  6. 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