Documentation Index

Fetch the complete documentation index at: https://docs.developer.comcast.com/llms.txt

Use this file to discover all available pages before exploring further.

metricsHandler()

Prev Next

metricsHandler()

Logs a metric not covered by other metrics handlers.

Signature:

$badger.metricsHandler(segment_name, args)

Parameters:

parameter description data type required?
segment_name The name of the launch segment which occurred completed String Yes
args The name of the launch segment which occurred completed. 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.metricsHandler("USER_VALIDATED", { 
    product_tier: "bronze" 
});