getDomains
To getDomains() method returns the domains tracked as one site or app.
Syntax
getDomains()
getDomains(): Promise<string[]>
getDomains(): Promise<string[]>
getDomains(): Promise<string[]>
getDomains(): Promise<string[]>
getDomains(): Promise<string[]>
getDomains(): Promise<string[]>
Returns
A list of domains tracked as one site or app in Piwik PRO.
Format: Example: ".example.com", ".example.co.uk"
Type: string[]
Examples
To get the domains tracked as one site or app:
_paq.push([function () {
console.log(this.getDomains());
}]);
const domains = await ClientConfiguration.getDomains();
const domains = await ClientConfiguration.getDomains();
const domains = await ClientConfiguration.getDomains();
const domains = await ClientConfiguration.getDomains();
const domains = await ClientConfiguration.getDomains();
const domains = await ClientConfiguration.getDomains();
A sample of the return statement:
".example.com", ".example.co.uk"
Related methods
Updated 6 days ago