---
schema_version: "1"
id: 9b61b3dba7d785c05d467fc761c816b8d20c26795f0e3b693426491ca9f59c5b
title: B2C Commerce API (Shopper Commerce API (SCAPI)) Hook Metrics
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_metrics_scapi_hooks.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_metrics_scapi_hooks.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c1f8b403bf1247338f8d8246baa9eceda5a8ca55b83909f4ab32c6b346670f05
description: SCAPI Hook metrics help website administrators and DevOps teams monitor and analyze the performance of SCAPI hooks. These metrics help identify issues with slow performance and failures of SCAPI hooks. SCAPI Hook metrics appear in the Metrics Dashboard with a delay of up to 10 minutes.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# B2C Commerce API (Shopper Commerce API (SCAPI)) Hook Metrics

SCAPI Hook metrics help website administrators and DevOps teams monitor and analyze the performance of SCAPI hooks. These metrics help identify issues with slow performance and failures of SCAPI hooks. SCAPI Hook metrics appear in the Metrics Dashboard with a delay of up to 10 minutes.

Use filters to refine the metrics to a specific API.

- `API Family`: Filter for all APIs belonging to an API family.
- `API Name`: Filter for a single API.

## Hook Execution Time

The Hook Execution Time metric measures the time in milliseconds the hook script takes to run.

Use case:

- Identify performance issues that a poorly implemented hook can cause.

## Hook Execution Errors

The Hook Execution Errors metric measures the number of errors that occurred during the execution of SCAPI hooks.

Use case:

- Identify frequently failing hooks.

Find additional SCAPI metrics in the Commerce Analytics Center (CCAC) SCAPI Dashboard. See [Troubleshooting Salesforce B2C Commerce Performance](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-troubleshooting-platform-performance.html) in the B2C Commerce Guide.