pageViewMetricsHandler()

    pageViewMetricsHandler()


    Article summary

    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:

    parameterdescriptiondata typerequired?
    pageName of the page that was viewed. This can be any value which is meaningful to your X1 AppStringYes
    argsOptional arguments to include.The individual properties in args must be primitives (string, numeric or boolean). Nesting of properties is not supported.ObjectNo

    Return Values:

    None.

    Usage Example:

    $badger.pageViewMetricsHandler("searchResults", { prevPage: "login", pageLoadTimeMs: 735 });
    

    Was this article helpful?