--- title: "metricsHandler()" slug: "metricshandler" updated: 2024-07-17T19:08:52Z published: 2024-07-17T19:08:52Z canonical: "docs.developer.comcast.com/metricshandler" --- > ## 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() ## 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" }); ```