UID Verify Chrome Extension
UID Verify is a browser extension for debugging UID2 integrations. It inspects the UID2 implementation on the current page in real time, surfacing UID2 SDK configuration, identity storage, event history, and errors.
The extension supports integrations using the SDK for JavaScript, Prebid.js, and Google Secure Signals.
Overview
When integrating UID2, it can be difficult to tell whether the UID2 SDK is initializing correctly, whether tokens are valid, or where in the lifecycle an error is occurring. UID Verify helps debug this by reading the UID2 SDK configuration, identity data, and event stream directly from the page and presenting it in a structured, searchable interface.
The extension detects whether a page uses the UID2 SDK directly, Prebid.js, or Google Secure Signals (or a combination), and displays the relevant information for each integration type.
Prerequisites
UID Verify requires:
- Google Chrome browser
- A web page that has a UID2 integration — one of the following must be present on the page:
- The SDK for JavaScript is loaded on the page (accessible via
window.__uid2) - Prebid.js with a UID2 user ID module configured
- Google Publisher Tags (GPT) with a UID2 Secure Signals provider registered
- The SDK for JavaScript is loaded on the page (accessible via
If more than one integration type is detected, you can switch between them using the integration type tabs at the top of the popup.
Server-side integrations are not currently supported. UID Verify works by reading client-side signals such as browser storage and UID2 SDK globals, which are not present in a server-side integration.
Installing the Extension
To install UID Verify from the Chrome Web Store, follow these steps:
- Go to the UID Verify listing in the Chrome Web Store.
- Click Add to Chrome.
- When prompted, click Add extension.
- Pin the extension to your toolbar for easy access: click the Extensions icon in your browser, then click the pin icon next to UID Verify.
Using UID Verify
Once installed, follow these steps to inspect a UID2 integration:
- Navigate to a web page that has a UID2 integration.
- Click the UID Verify icon in your browser toolbar to open the extension popup.
- The extension detects the integration type on the page and displays the appropriate tabs.
UID Verify supports both UID2 and EUID. A page should use either UID2 (for North America and parts of Asia) or EUID (for Europe and other GDPR-applicable regions), not both. If both are detected on the same page, the extension displays an error.
Interpreting Results
The following sections describe the information available in each tab of the UID Verify popup. The content of each tab varies depending on the integration type detected.
Config Tab
The Config tab provides a snapshot of the integration's current state, including status banners for successful token generation, errors, opt-out identities, and other configuration states. The information displayed depends on the integration type, as shown in the following sections.
UID2 SDK integrations:
- UID2 SDK version
- UID2 SDK initialization options
- The current identity object, including:
- Advertising token
- Refresh token
- Token and refresh expiration timestamps
- The result of
getAdvertisingToken() - The result of
isLoginRequired()
Prebid.js integrations:
- The current UID2 token from
window.pbjs.getUserIds().uid2 - The Prebid.js configuration parameters from
window.pbjs.getConfig().userSync.userIds(for example,uid2ApiBase,subscriptionId,serverPublicKey)
Google Secure Signals integrations:
- Whether Google Publisher Tags is detected
- Whether the UID2 provider ID is registered
- Whether
getAdvertisingTokenAsyncis available - Whether a collector function is registered (the function that passes the UID2 token as an encrypted signal to Google Ad Manager)
Storage Tab
The Storage tab shows the raw identity data stored in the browser for the current integration.
UID2 SDK and Prebid.js integrations
SDK and Prebid.js integrations include the fields shown in the following table.
| Field | Description |
|---|---|
| Storage Type | Indicates whether the identity is stored in a cookie or localStorage. |
| Storage Key | The name of the cookie or localStorage key. For UID2 SDK integrations: __uid_2 or UID2-sdk-identity. For Prebid.js integrations: __uid2_advertising_token. |
| Stored Value | The raw identity JSON, including advertising_token, refresh_token, identity_expires, refresh_expires, refresh_from, and refresh_response_key. |
| Valid Identity | Indicates whether the stored identity is currently valid — that is, the advertising token has not expired and the user has not opted out. |
| Optout Identity | Indicates whether the identity reflects an opted-out user. |
For Google Secure Signals integrations, the tab shows the status of the secure signal and the current UID2 advertising token. If no signal has been generated yet, it indicates that neither a cached signal nor a UID2 SDK advertising token is available. When the collector function has run successfully, the extension displays a "Secure signal is cached" status message and shows the cached value stored under _GESPSK-uidapi.com. The cached signal is in the format [providerId, advertisingToken, expiryTimestamp]. The current UID2 advertising token is also displayed separately.
Callbacks Tab
The Callbacks tab is available for UID2 SDK integrations only. It displays the source code of all callback functions registered with the UID2 SDK, with syntax highlighting. This is useful for confirming that the correct callbacks are registered and identifying where events are being handled in the page code.
Event History Tab
The Event History tab shows a searchable, real-time log of UID2 SDK events as they occur on the page. It includes the columns shown in the following table.
| Column | Description |
|---|---|
| Date | The date the event was recorded. |
| Time | The time the event was recorded. |
| Event | The event type (for example, SdkLoaded, InitCompleted, TokenUpdated). |
| Advertising Token | The advertising token associated with the event, if present. |
Use the search bar to filter by event type or token value.
This tab also includes an Error Log when errors are detected. The extension captures errors from several sources, including:
- Failed network requests to the UID2 operator
- Failed resource loads (such as the UID2 SDK script)
console.errorcalls from UID2 SDK code- Errors thrown by UID2 SDK methods
For known error patterns, the extension displays contextual troubleshooting guidance alongside the error.