Platform
CLI reference

ccp analytics

View as Markdown

Show an App's web analytics (visitors, pageviews, bounce rate)

Usage: ccp analytics [OPTIONS] [APP_ID]
ArgumentType or valuesDefaultParser environment variableDescription
--jsonflagfalse—Emit structured JSON on stdout
app_idtext——App ID (falls back to the active project config)
--apptext——Select the App explicitly by ID
--periodtext7d—Time window: 24h, 7d, 30d or 90d
--bytext——Top-10 breakdown by one dimension: url, referrer, browser, os, device or country
--help, -hflag——Print help

Example

ccp analytics --period 30d --by url

Global options

Set CCP_CONTEXT to choose a named context. An explicit --context takes precedence. See organization selection for organization defaults.

ArgumentType or valuesDefaultParser environment variableDescription
--contexttext——Select a developer context from ~/.ccp/config.toml

On this page