La server
variabile memorizza in genere il nome host del sito. È comunemente utilizzata nelle suite di rapporti che contengono dati da più domini. È funzionalmente identico a un prop.
Puoi impostare il server sia durante la configurazione dell'estensione di Analytics (variabili globali) che in base alle regole.
È possibile impostare il server su qualsiasi valore di stringa o elemento dati.
La s.server
variabile è una stringa che in genere contiene il nome host del sito. Ha un valore massimo di 100 byte; i valori più lunghi vengono troncati.
// 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;