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:
|String||Name of the page, for example "Login", "Signup", "Settings"|
|Object||Free-form dictionary of properties for the page.|
|Object||Free-form dictionary of options.|
Note: If you don't pass a
|Function||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.