/ /

How to find your Customer ID and CMP Configuration ID

Updated 3 days ago

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.

Overview

  • Customer ID identifies your organization. It is the same for every configuration in your account.
  • Configuration ID identifies one specific consent configuration (for example, one site or one set of domains). Each configuration has its own ID.

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.

Find the IDs

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.

  1. Open your site in Chrome.
  2. Right-click the page and choose View Page Source, then search for cmp.osano.com.
  3. Copy the src of the script tag. It looks like this:
<script src="https://cmp.osano.com/{customerId}/{configId}/osano.js"></script>
  1. Split the URL on the slashes. The first segment is the Customer ID, the second is the Configuration ID.

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).

Quick reference

Customer IDConfiguration ID
Position in script URLFirst segment after cmp.osano.com/Second segment, before osano.js
ScopeWhole organizationOne configuration
Changes between configurationsNoYes
FormatAlphanumeric stringUUID (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.

Was this article helpful?
Subscribe to receive updates on this article