Shahin

page() Call

Intermediate
Updated Jul 11, 2026 Shahin editorial 2 min read
PronunciationEN/peɪdʒ kɔːl/

A page() call is a library method that, in the style of some tools, manually records a page view together with the page's properties.

A page() call is an explicit instrumentation pattern: instead of the tool discovering the page view itself, the developer calls this method on each page and sends properties such as the page title and category with it. Its upside is control and accuracy, especially in single-page applications where automatic view detection is hard; its downside is that if one page is forgotten, that view is never recorded. The opposite of this pattern is automatic view capture, which needs no code but gives less control over properties. Its mobile equivalent is the screen() call, since a native app has no URL-based page. The point is that page() is a recording method, not a custom event; in-page behavior is recorded with a track() call.