Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--metrics-client-id

What does --metrics-client-id do?

This is how the metrics client ID is passed from the browser process to its children. With Crashpad, the metrics client ID is distinct from the crash client ID.

Usage

CLILaunch Chrome with --metrics-client-id using CLI

chrome --metrics-client-id

PuppeteerLaunch Chrome with --metrics-client-id using Puppeteer

const browser = await puppeteer.launch({
  args: ['--metrics-client-id']
});

PlaywrightLaunch Chrome with --metrics-client-id using Playwright

const browser = await chromium.launch({
  args: ['--metrics-client-id']
});

SeleniumLaunch Chrome with --metrics-client-id using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--metrics-client-id')

driver = webdriver.Chrome(options=options)

Build Conditions

ANDROID!(CHROMEOS)MAC