Skip to content

reveata sites

View as Markdown

List, add and inspect websites, and change their settings, exclusions and attribution from the command line.

On this page

reveata sites lists the websites a credential can reach and shows one of them. Use the id or domain it prints as --site in the other commands. An account token lists the websites you picked for it; a site key lists only its own website.

sites create adds a website and prints its tracking snippet (an account token with websites:write; the plan's website limit applies). sites settings shows every setting at once, and sites update and sites attribution change them (admin role). Options you leave out stay the same; repeatable options such as --exclude-path replace the stored list, so pass every value you want to keep. The domain is changed in the dashboard.

reveata sites list

List the websites this credential can reach.

Follows pagination until --limit websites are listed (default 100, max 10000).

Options:

  • --limit <n>: Maximum number of rows

Calls GET /api/v1/websites (websites:read).

bash
reveata sites list
reveata sites list --json

reveata sites get

Show one website.

Options:

  • --site <id|domain>: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)

Calls GET /api/v1/websites/{website} (analytics:read).

bash
reveata sites get --site example.com

reveata sites create <domain>

Add a website (account tokens with websites:write).

Prints the tracking id for the snippet. --timezone is required (IANA name, e.g. Europe/Berlin). Follows the plan’s website limit.

Options:

  • --timezone <iana>: Timezone, e.g. Europe/Berlin
  • --name <name>: Display name
  • --currency <ISO>: Three-letter currency, e.g. USD
  • --colour <#hex>: Chart colour, e.g. #4f46e5

Calls POST /api/v1/websites (websites:write).

bash
reveata sites create example.com --timezone Europe/Berlin
reveata sites create shop.example.org --timezone America/New_York --currency USD --json

reveata sites update

Change a website’s settings (admin role).

Only the settings you pass change. Repeatable options replace the stored list (pass every value you want to keep). --data takes any other field of PATCH /api/v1/websites/{website}, e.g. '{"attackMode":{"enabled":true},"exclusions":{"referrerSpam":false}}'. The domain is changed in the dashboard.

Options:

  • --site <id|domain>: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)
  • --name <name>: Display name
  • --timezone <iana>: Timezone, e.g. Europe/Berlin
  • --currency <ISO>: Three-letter currency, e.g. USD
  • --colour <#hex>: Chart colour, e.g. #4f46e5
  • --cookieless <true|false>: Track without cookies
  • --additional-domain <domain>: Another domain tracked as this website (repeatable; replaces the list)
  • --exclude-path <pattern>: Path not to count, * is a wildcard, e.g. /admin/* (repeatable; replaces)
  • --exclude-ip <ip|cidr>: IP address or range not to count (repeatable; replaces the list)
  • --exclude-country <code>: Country not to count, e.g. FR (repeatable; replaces the list)
  • --exclude-hostname <host>: Host name not to count, e.g. staging.example.com (repeatable; replaces)
  • --public-dashboard <true|false>: Turn the public dashboard on or off
  • --viewer-revenue <true|false>: Let viewers see revenue, payments and customers
  • --data <json>: More request fields as a JSON object (merged into the body)

Calls PATCH /api/v1/websites/{website} (settings:write) and GET /api/v1/websites/{website}/settings (settings:read).

bash
reveata sites update --site example.com --exclude-path "/admin/*" --exclude-country FR
reveata sites update --site example.com --cookieless true --timezone America/New_York

reveata sites settings

Every setting of a website: exclusions, cookieless, attribution… (admin role).

Options:

  • --site <id|domain>: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)

Calls GET /api/v1/websites/{website}/settings (settings:read).

bash
reveata sites settings --site example.com
reveata sites settings --site example.com --json

reveata sites attribution

Change how payments are credited to traffic (admin role).

--model: first_touch, last_touch or last_non_direct. --reattribute re-credits existing payments in the background. --data takes the other fields (trustBrowserIdentify, countRenewals, subtractRefunds, shippingInRevenue, showMrr).

Options:

  • --site <id|domain>: Website id or domain (defaults to REVEATA_SITE, or a site key’s own website)
  • --model <model>: Attribution model: first_touch, last_touch or last_non_direct
  • --window-days <n>: Attribution window in days
  • --reattribute: Re-attribute existing payments with the new settings (background job)
  • --data <json>: More request fields as a JSON object (merged into the body)

Calls PATCH /api/v1/websites/{website}/attribution (settings:write).

bash
reveata sites attribution --site example.com --model last_non_direct --window-days 30
reveata sites attribution --site example.com --data '{"countRenewals":false}' --reattribute

Archived websites (after a plan downgrade, or archived by the owner) are still listed. Their other commands answer website_archived until the owner restores them, except recording payments, which keeps working so no money data is lost.

Was this helpful?