Conversions

Update a tracking site

Changed on

Changes the site's name, domains, consent mode or custom subdomain. Send at least one field.

customHostname sets a subdomain of the site, such as t.brand.com; create the CNAME in customHostname.dnsRecord. The snippet switches to it once its status is active. null removes it.

patch/v1/tracking-sites/{siteId}

Request

  • Base URL
    https://zernio.com/api
  • Auth
    HTTP bearer

Request body

namestring
domainsstring[]

Hosts allowed to send events, such as brand.com. Events from any other origin are dropped.

consentMode'eu_opt_in' | 'opt_in' | 'opt_out'

How a visitor with no consent signal is treated. eu_opt_in (default): no consent in the EU, UK and other countries that require it, consent elsewhere. opt_in: no consent anywhere. opt_out: consent everywhere.

customHostnamestring nullable

A subdomain of one of the site's domains, never the domain itself. null removes it.

Response

The updated site.

Changes