Skip to content

Count one anonymous page view for a source

POST
/v1/views

Used by the Launch widgets when the tag carries data-count-views. Counted only if the project has page views per source switched on (PATCH /v1/project with count_views); always answers 204 either way. The body may be sent as text/plain. Stored: one added to a daily total for the project and source. Not stored: IP address, user agent, path, any visitor or session identifier. Obvious bots are left out. Limited per IP address, not per key, so views never use up the key’s budget.

Auth: Publishable key (or secret key).

CORS: Access-Control-Allow-Origin: *.

object
referrer

Full URL or hostname of the referring site. Only the hostname is kept.

string
utm_source
string
utm_campaign
string

Always, whether or not it was counted

Error envelope. See error.code for the discriminator.

object
data
required
null
error
required
object
code
required
string
message
required
string
remediation
required
string
doc_url
string format: uri
param
string
request_id
string
meta
object
key
additional properties