--- title: "userActionMetricsHandler()" slug: "useractionmetricshandler" updated: 2024-07-17T19:08:52Z published: 2024-07-17T19:08:52Z canonical: "docs.developer.comcast.com/useractionmetricshandler" --- > ## 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. # userActionMetricsHandler() ## userActionMetricsHandler() Logs a metric indicating that an end user took a specific action in the X1 Application. #### Signature: `$badger.userActionMetricsHandler(action, args)` #### Parameters: | parameter | description | data type | required? | | --- | --- | --- | --- | | action | Name of the action that was successfully completed. 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.userActionMetricsHandler('tune', {channelNumber: "500", channelName: "abc"}); ```