Show Menu
TOPICS×

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 in Adobe Experience Platform Launch

You can set server either while configuring the Analytics extension (global variables) or under rules.
  1. Log in to launch.adobe.com using your AdobeID credentials.
  2. Click the desired 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 dropdown 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 Launch 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;