page call lets you track any page visited by your users.
For example, a new user may visit your "Signup" page, which you could track as follows:
Calling page on every page load
We automatically call
pageonce per page load for the library to function.
You may optionally call
pagemore than once per full page load, for example in single page web apps.
page method definition
Sift.page([name], [properties], [options], [callback]);
page call accepts the following arguments:
Name of the page, for example "Login", "Signup", "Settings"
Free-form dictionary of properties for the page.
Free-form dictionary of options.
Function executed after a brief timeout (allowing the browser time to make requests).
We automatically track the following properties of
document.location and rename them as follows:
The URL we track defaults to your canonical URL first and falls back to
name property uses
document.title as a fallback.