Your Customer ID and CMP Configuration ID are the two identifiers in every Osano CMP script URL, and you can read both straight from the osano.js script tag or from the Get Code button in the Osano dashboard.
You will need these IDs when installing the CMP on platforms that ask for them separately (such as when using the Osano’s consent manager community template for Google Tag Manager), when calling the Osano APIs, and when contacting Support about a specific configuration.
Both IDs sit in the path of the Osano script URL, in the form https://cmp.osano.com/{customerId}/{configId}/osano.js. The first string after cmp.osano.com/ is the Customer ID and the second is the Configuration ID.
cmp.osano.com.src of the script tag. It looks like this:<script src="https://cmp.osano.com/{customerId}/{configId}/osano.js"></script>Another option is the browser's Network tab. Reload the page with DevTools open, filter by osano, and read the URL of the osano.js request.
The script tag only shows the configuration that is deployed on that page. If the customer has several configurations, each site will show its own Configuration ID.
If the script is not installed on a site yet, or you need the IDs for a different configuration, get them from the dashboard instead. Sign in at my.osano.com, open the configuration, publish it if needed, and click Get Code. The script tag shown there contains both IDs in the same positions.
The Customer ID is the same for every configuration in the account, so you only need to look it up once. To list every Configuration ID at once, you can also call the Customer REST API configuration list endpoint with an API key from my.osano.com/api-keys (sent in the x-osano-api-key header).
| Customer ID | Configuration ID | |
|---|---|---|
| Position in script URL | First segment after cmp.osano.com/ | Second segment, before osano.js |
| Scope | Whole organization | One configuration |
| Changes between configurations | No | Yes |
| Format | Alphanumeric string | UUID (for example, a8d11a01-1a4a-47a3-8781-97b1a0342bd1) |
Example: in https://cmp.osano.com/{customerId}/{configId}/osano.js, the value in the first braces is the Customer ID and the value in the second braces is the Configuration ID.