Mark a visitor as internal (or undo)
set_visitor_internalMark one visiting device as “one of us”, so its visits stop counting towards the outward-facing numbers: views, visitor counts and the funnel are all recomputed, history included, because the judgement is made at read time rather than stored per event. Use it for the user's own phone and laptop, for colleagues, and for the opens made while demoing the page to someone — otherwise “how many outside people actually read this” is inflated by the people who made it. The operations view prints how many were excluded, so the number stays auditable rather than silently shrinking. Get visitor_id from list_sessions. Pass internal=false to undo, which puts the visitor back into the outward-facing numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| internal | No | true marks the visitor as internal (the default); false undoes it and puts them back into the outward-facing numbers. | |
| visitor_id | Yes | The visitor id, from any row of list_sessions. |