Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1dbb8f5
add uid verify to integration samples and tools page
eiman-eltigani-ttd Mar 24, 2026
e88945c
add seperate page for uid verify and include in sidebar
eiman-eltigani-ttd Mar 31, 2026
129cb9a
add new doc reference to Tools page and update headers in uid verify …
eiman-eltigani-ttd Mar 31, 2026
0263639
update config tab details
eiman-eltigani-ttd Mar 31, 2026
eb170ef
udpate storage tab descriptions
eiman-eltigani-ttd Mar 31, 2026
e139a8d
update broken link and remove inaccurate line
eiman-eltigani-ttd Mar 31, 2026
a98c8a0
update uid-detective to uid-verify in chrome store link
eiman-eltigani-ttd Apr 1, 2026
d6741d8
Remove code link and update integrations sample tools page
eiman-eltigani-ttd Apr 1, 2026
63a8e41
remove EUID reference per Gens feedback
eiman-eltigani-ttd Apr 2, 2026
a4e0b20
change siidebar location to match euid
eiman-eltigani-ttd Apr 2, 2026
590c7a2
improve definition for gss variable
eiman-eltigani-ttd Apr 2, 2026
eba0df8
Apply suggestion from @genwhittTTD
eiman-eltigani-ttd Apr 6, 2026
df08680
Apply suggestion from @genwhittTTD
eiman-eltigani-ttd Apr 6, 2026
2dab41c
Apply suggestion from @genwhittTTD
eiman-eltigani-ttd Apr 6, 2026
a115999
Apply suggestion from @genwhittTTD
eiman-eltigani-ttd Apr 6, 2026
f4419c2
Apply suggestion from @genwhittTTD
eiman-eltigani-ttd Apr 6, 2026
0314d84
Apply suggestion from @genwhittTTD
eiman-eltigani-ttd Apr 6, 2026
5a0183e
Apply suggestion from @genwhittTTD
eiman-eltigani-ttd Apr 6, 2026
7750200
Apply suggestion from @genwhittTTD
eiman-eltigani-ttd Apr 6, 2026
23ccd2c
update package to fix vulnerability
eiman-eltigani-ttd Apr 6, 2026
78510e3
add lead-in copy and fix duplicate step in uid-verify doc
eiman-eltigani-ttd Apr 6, 2026
06c383f
add lead in sentence and clarify content section for gss
eiman-eltigani-ttd Apr 6, 2026
a14a7fd
use more precise wording to explain callbacks
eiman-eltigani-ttd Apr 6, 2026
f99feb7
seperate example errors into bulleted list
eiman-eltigani-ttd Apr 6, 2026
9b40f29
include wording to make it clear error list is not exhaustive
eiman-eltigani-ttd Apr 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/ref-info/integration-sample-sites.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ This tool is for developers or clients validating data preparation, such as hash
- Code: [uid2-examples/tools/hashing-tool](https://github.com/IABTechLab/uid2-examples/tree/main/tools/hashing-tool)
- Doc: [Normalization and Encoding](https://unifiedid.com/docs/getting-started/gs-normalization-encoding)

### UID Verify Chrome Extension

UID Verify is a Google Chrome browser extension for debugging UID2 integrations. It inspects UID2 SDK information on websites, tracks events and event history, and monitors storage (cookies and local storage). It also supports Prebid.js and Google Secure Signals integrations.

- Site: [UID Verify on Chrome Web Store](https://chromewebstore.google.com/detail/uid-verify/cfpjjmdagnkmmolcddnoagffeoekkmle)
- Doc: [UID Verify Chrome Extension](https://unifiedid.com/docs/ref-info/ref-uid-verify)

:::note
The sample sites on this page highlight some common integrations, but do not represent all available UID2 integration options. For a summary of all the integration options available, see [UID2 Integration Guides: Summary](https://unifiedid.com/docs/guides/summary-guides).
:::
133 changes: 133 additions & 0 deletions docs/ref-info/ref-uid-verify.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
---
title: UID Verify Chrome Extension
description: How to use the UID Verify Chrome extension to debug and inspect UID2 integrations on any web page.
hide_table_of_contents: false
sidebar_position: 03
displayed_sidebar: docs
---

import Link from '@docusaurus/Link';

# 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 <Link href="../sdks/sdk-ref-javascript">SDK for JavaScript</Link>, <Link href="../guides/integration-prebid">Prebid.js</Link>, and <Link href="../guides/integration-google-ss">Google Secure Signals</Link>.

## 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 <Link href="../sdks/sdk-ref-javascript">SDK for JavaScript</Link> is loaded on the page (accessible via `window.__uid2`)
- <Link href="../guides/integration-prebid">Prebid.js</Link> with a UID2 user ID module configured
- <Link href="https://developers.google.com/publisher-tag/guides/secure-signals">Google Publisher Tags (GPT)</Link> with a UID2 Secure Signals provider registered

If more than one integration type is detected, you can switch between them using the integration type tabs at the top of the popup.

:::note
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:

1. Go to the [UID Verify listing](https://chromewebstore.google.com/detail/uid-verify/cfpjjmdagnkmmolcddnoagffeoekkmle) in the Chrome Web Store.
2. Click **Add to Chrome**.
3. When prompted, click **Add extension**.
4. 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:

1. Navigate to a web page that has a UID2 integration.
2. Click the **UID Verify** icon in your browser toolbar to open the extension popup.
3. The extension detects the integration type on the page and displays the appropriate tabs.

:::note
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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need some lead-in copy here... so we don't have two consecutive section headers. Something simple to lead in to the content in the subsections.

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 `getAdvertisingTokenAsync` is 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.error` calls from UID2 SDK code
- Errors thrown by UID2 SDK methods

For known error patterns, the extension displays contextual troubleshooting guidance alongside the error.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"serialize-javascript": "^7.0.3",
"svgo": "^3.3.3",
"node-forge": "^1.4.0",
"picomatch": "^2.3.2"
"picomatch": "^2.3.2",
"lodash": "^4.18.0"
},
"browserslist": {
"production": [
Expand Down
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ const fullSidebar = [
'ref-info/ref-operators-public-private',
'ref-info/ref-integration-approaches',
'ref-info/integration-sample-sites',
'ref-info/ref-uid-verify',
'ref-info/ref-tokens',
'ref-info/ref-how-uid-is-created',
'ref-info/ref-server-side-token-generation',
Expand Down
Loading