> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Click Button: Track User Button Interactions

> Track button click events on your site. Understand user engagement patterns and optimize CTAs with click button analytics.

<Tip>
  Click Button measures the total number of button click interactions captured on your site.
</Tip>

## Formula

<Info>
  **Click Button Events** = **COUNT** ( button click events )
</Info>

### Formula Components

| Metric                  | Definition                                                |
| ----------------------- | --------------------------------------------------------- |
| **button click events** | Individual button click interactions tracked by the pixel |

| Metadata        |                         |
| --------------- | ----------------------- |
| **Type**        | Count                   |
| **Data Source** | [Upstack Pixel](/pixel) |
| **Aggregation** | Sum                     |

***

## Example

Your site recorded **2,847 button clicks** over the past week, with the "Add to Cart" button accounting for 1,203 of those interactions.

| Button      | Clicks | Share |
| ----------- | ------ | ----- |
| Add to Cart | 1,203  | 42.3% |
| Buy Now     | 687    | 24.1% |
| Learn More  | 512    | 18.0% |
| Subscribe   | 445    | 15.6% |

***

## How It Works

The Upstack Pixel captures button click events when users interact with tracked buttons on your site. Each click is counted and attributed to the specific button element, allowing you to analyze engagement patterns across different CTAs and interactive elements.

***

## When to Use

| Scenario                         | Action                                                 |
| -------------------------------- | ------------------------------------------------------ |
| Measuring CTA effectiveness      | Compare click rates across different button variations |
| Identifying engagement drop-offs | Find where users stop interacting in the funnel        |
| A/B testing button designs       | Track which button styles drive more clicks            |
| Optimizing page layouts          | Determine which button placements perform best         |

***

## Related Metrics

| Metric                                                           | Relationship                               |
| ---------------------------------------------------------------- | ------------------------------------------ |
| [Page Views](/reference/metrics/funnel/awareness/page-views)     | Total page context for button interactions |
| [Sessions](/reference/metrics/funnel/awareness/sessions)         | Session context for engagement analysis    |
| [Conversions](/reference/metrics/funnel/conversions/conversions) | Downstream outcome from button clicks      |

[See all Engagement metrics →](/reference/metrics/funnel/engagement)
