pageViewMetricsHandler()
- Print
pageViewMetricsHandler()
- Print
Article summary
Did you find this summary helpful?
Thank you for your feedback
pageViewMetricsHandler()
Logs a metric when a user has viewed a specific page in the X1 Application. This can be used to obtain product metrics.
Signature:
$badger.pageViewMetricsHandler(page, args)
Parameters:
parameter | description | data type | required? |
---|---|---|---|
page | Name of the page that was viewed. This can be any value which is meaningful to your X1 App | String | Yes |
args | Optional arguments to include.The individual properties in args must be primitives (string , numeric or boolean ). Nesting of properties is not supported. | Object | No |
Return Values:
None.
Usage Example:
$badger.pageViewMetricsHandler("searchResults", { prevPage: "login", pageLoadTimeMs: 735 });
Was this article helpful?