setSiteId
The setSiteId() method sets a site or app ID used by the tracker. A site or app is where you collect data in Piwik PRO.
Syntax
setSiteId(siteId)Not availableNot availableNot availableNot availableNot availableNot availableParameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| siteID | string | The site ID that will be used to send all requests from the tracker. | Yes |
Examples
To set site or app ID in the tracker:
_paq.push(["setSiteId", "45e07cbf-c8b3-42f3-a6d6-a5a176f623ef"]);Not availableNot availableNot availableNot availableNot availableNot availableRelated methods
Updated 15 days ago