Skip to main content
The page call lets you record whenever a user sees a page of your website, along with any optional properties about the page. Calling page or Screen in an Innkeepr connection is one of the first steps to getting started with Innkeepr. Note: In innkeepr.js a page call is included in the snippet by default just after innkeepr.load. Many destinations require this page event to be fired at least once per page load for proper initialization. You may add an optional name or properties to the default call, or call it multiple times per page load if you have a single-page application. Here’s the payload of a typical page call with most common fields removed:
And here’s the corresponding JavaScript event that would generate the above payload. If you’re using Innkeepr’s JavaScript library, the page name and URL are automatically gathered and passed as properties into the event payload:
Beyond the common fields, the page call takes the following fields:

Example

Here’s a complete example of a page call:

Identities

The User ID is a unique identifier for the user performing the actions. Check out the User ID docs for more detail. The Anonymous ID can be any pseudo-unique identifier, for cases where you don’t know who the user is, but you still want to tie them to an event. Check out the Anonymous ID docs for more detail. Note: In our browser and mobile libraries a User ID is automatically added from the state stored by a previous identify call, so you do not need to add it yourself. They will also automatically handle Anonymous IDs under the covers.

Properties

Properties are extra pieces of information that describe the page. They can be anything you want. Innkeepr handles properties with semantic meanings in unique ways. For example, Innkeepr always expects path to be a page’s URL path, and referrer to be the previous page’s URL. You should only use reserved properties for their intended meaning. Reserved properties Innkeepr has standardized: