<!-- Analytics | Merget Docs · https://merget.ai/docs/analytics -->

# Analytics

Track delivery speed, queue health, check results, run outcomes and usage across repositories and time ranges.

Analytics shows how pull requests move through your organization and what Merget did to prepare them. Open it from the sidebar, or press G then A.

For a quick summary, [Home](https://merget.ai/docs/dashboard#home) shows recent merges and delivery measurements for Last 7D or Last 30D. Its View Analytics link opens this page with that range.

Delivery metrics and run metrics share one page. Headline tiles come first, followed by repository, time-range and author-signal filters, then charts for merges, waiting, findings, outcomes and activity. Expand the detail sections when you need the measurements behind a chart.

Use Analytics for trends across the organization.

What to look for

- The selected time range applies to historical metrics; Waiting now and Live always show the current state.
- Delivery charts show where pull requests spend time and what needs attention. Scroll for run outcomes, usage and repository comparisons.

## Time range

Use the controls at the top to choose:

Repository: all repositories, one, or several. Search by organization or repository name.

Analytics time range: All time, Last 30 days, Last week (the default) or Last 24 hours. The default loads the past seven days. All time reaches back two years; queue history events and the runs of closed or merged pull requests are kept for 775 days (see [Data retention](https://merget.ai/docs/security#data-retention)), a month longer, so nothing it reads is removed first. On the Free plan every range starts at most 30 days back, and the page says Free includes 30 days of history. with Upgrade to Team for all time. See [Free plan limits](https://merget.ai/docs/billing#free-limits).

All author signals: filter delivery metrics by the authorship signals on pull requests. See [Cohorts](#cohorts).

The address preserves these filters, so you can bookmark or share a view. Repository and time filters affect delivery and run metrics. A cohort filter affects delivery only; run metrics continue to include all author signals.

A run belongs to a period by when it started. Delivery metrics use the event named in each chart, such as merging or finishing analysis. Waiting now is a current snapshot, independent of the historical range.

## Headline tiles

| Tile | What it shows |
| --- | --- |
| PRs merged | Merged pull requests, with closed-but-unmerged pull requests underneath. |
| Median time open | Median time from opening to merging, with the number of measured pull requests. |
| Waiting now | Pull requests currently waiting for merge requirements. |
| Flagged beyond Git | Pull requests where Git merged cleanly but Merget detected an issue, including ones Merget resolved before landing. A ≥ marks incomplete historical coverage. |
| Runs | Runs started in the period, with median duration and p95 when enough samples exist. |
| Tokens used | The tokens the period's runs used, every prompt and generated token, with the input and output split underneath. A run that recorded no usage makes the figure a lower bound, and the line under it says so. |
| Findings beyond Git | Findings Merget detected outside Git's conflict regions, including ones it resolved. This counts findings; Flagged beyond Git counts pull requests. |
| Tokens per landed PR | The period's tokens divided by the pull requests that landed in it. Needs a landed PR until one has. |

Click one of the first four delivery tiles to jump to the corresponding chart. The tiles do not change the page's filters. Missing or insufficient data is explained instead of being shown as a measured zero.

## Delivery

The delivery charts describe pull requests. Run activity farther down the page describes individual pieces of Merget work; one pull request can have several runs.

### How pull requests flow

The merge chart plots the merges Merget observed over the selected period. Hover a time bucket to inspect it, or select it to pin the inspection. Select it again to unpin it, or press Esc to clear the inspection. With the chart focused, ← and → inspect adjacent buckets; Home and End reach the ends. Its date is when Merget recorded the close, so activity discovered after a disconnection may appear together.

Time to merge summarizes the timing. Expand Merge paths and measurement details for:

open-to-merge and ready-to-merge distributions;

how pull requests closed: through Merget, outside Merget, without merging, or without a recorded path;

the definitions and sample sizes behind each timing;

pull request size and rework;

the observed merge data.

Missing creation or ready-for-review times are counted as exclusions. They are not treated as instant merges.

### Where the waiting time went

Where PRs wait ranks reasons by recorded waiting time, including required checks, approvals, requested changes, certification, a paused queue, and a changed branch.

The shares measure time. One pull request can wait for several reasons, so the pull request counts beside those reasons should not be added together. Waits with no recorded reason, or with an inferred one, are identified separately.

Hover or focus a reason to inspect it; click it or press Enter or Space to pin the inspection. Select it again to unpin it, or press Esc to clear the inspection. Use All … reasons to expand the list and Show fewer to collapse it.

### Waiting in the queue right now

The Live strip in Where PRs wait shows how many pull requests are waiting now, the snapshot time and their reasons. Open repository queue or Open merge queues takes you to the current work.

### Time in the queue

Expand Queue stages for the median and 75th percentile of each recorded interval:

| Stage | Interval |
| --- | --- |
| Admitted to prepared | Joining the queue to completing preparation. |
| Prepared to ready | Preparation to satisfying merge requirements. |
| Ready to merge starting | Being ready to the start of a merge. |
| Merge starting to merged | Starting to completing the merge. |

Each row has its own sample. Preparation and merge-start milestones are not available for every path, so the intervals describe only the pull requests with those records. Do not add their medians into a total.

Expand Slowest completed journeys to inspect individual historical pull requests, their longest waits and the recorded reasons. This is a limited list of examples.

### What Merget caught before it landed

Findings shows the findings Merget detected, including the ones it resolved before landing, and lets you group them by kind or language. When Merget resolved some, the total says how many, for example 42 findings in 9 PRs · 12 resolved by Merget. A finding resolved on a merge that carried a [fix submitted to Merget](https://merget.ai/docs/batching#submit-a-fix) or a [resolution submitted to Merget for merge time](https://merget.ai/docs/conflict-resolution#resolve-for-merge-time) is never counted as resolved by Merget, unless Merget had resolved it on an earlier merge that carried neither and no merge since left it standing: the person's work may have cleared it. When there are any, the total names them after Merget's count, for example 42 findings in 9 PRs · 12 resolved by Merget · 2 with fixes and resolutions submitted to Merget; a pull request's counts under Inspect pull requests name them the same way. Follow Inspect pull requests to see the work behind them; each pull request's counts also include what Merget resolved. Expand Coverage & Counting for analyzed and skipped files, coverage, exclusions and other measurement details.

Integration signals separates:

Git-clean PRs flagged: pull requests with issues that Git's merge did not report, whether or not Merget repaired them before landing;

PRs with a repair prepared: pull requests where Merget prepared a repair;

Revert PRs merged: merged pull requests identified as reverts.

These measurements can overlap and use different populations. A prepared repair does not itself establish that the pull request merged. Read each sample and caption before comparing.

Older runs were recorded before Merget kept every detected count. For those periods, findings, Findings beyond Git and the git-clean flags count what remained after preparation, so they can read lower than what Merget detected at the time.

### Cohorts

Cohorts describe visible authorship signals on pull requests and commits:

| Cohort | Meaning |
| --- | --- |
| Agent | An agent signal was found. |
| Mixed | Some commits carry agent attribution and others do not. |
| Bot | An automated account, such as a dependency updater. |
| No agent signal | No agent signal was found. This does not establish that a person wrote the code. |
| Not classified | No classification is available. |

Use the PRs: All author signals filter to narrow delivery metrics to Agent, Mixed, Bot or No agent signal. Not classified is not offered as a choice, but the control shows it when you open a link already filtered that way. Expand Compare author signals in the findings area to compare groups; that comparison shows all groups even when a filter is selected.

The comparison reports its sample sizes and how many pull requests were classified. Small samples are withheld. Cohorts may receive different work, and missing attribution can hide agent contributions, so a difference is not a ranking of people or proof about code quality.

### When a number is withheld

| Message | Meaning |
| --- | --- |
| Unknown or Could not be read | Data could not be loaded. |
| No pull requests or No runs | The selected period has no matching work. While Merget is still checking which private repositories your GitHub account can read, a placeholder shows in place of these messages; while the access notice says Merget could not confirm your access, they count only the repositories confirmed so far. |
| Needs 3 pull requests/runs | There are too few samples for a median. |
| Needs 10 pull requests | There are too few samples for a delivery p75. |
| p95 needs 20 runs | There are too few runs for p95 duration. |
| Not measured | Work exists but the needed measurement does not. |
| Not observed before … | This measurement was not recorded for the selected history. |

A partially recorded measurement may be shown as a lower bound. Choose a longer range when a small sample is the limiting factor.

### Opening the rows behind a number

Delivery headline tiles scroll to their charts. Within the charts, follow pull request, run-history and queue links for the underlying work. Expand the measurement details to see how samples and exclusions affect a number.

## Run activity

The lower charts describe Merget's runs. They use the selected repositories and time range and include all author signals.

### Runs per day

Runs per day counts run starts by UTC day. Turn on Blocked or 7-day average for overlays. Hover or select a day to inspect it. Drag across the chart to zoom; Reset zoom or Esc restores the range.

Use the arrow keys to move by day and Home/End to reach the ends. Partial days are marked, and the average appears only after seven full days are available.

### Outcomes

The Outcomes ring groups finished runs as Clean, Unresolved conflicts, Nothing blocking, Prepared, Blocked, Merged by Merget and Failed, the words the run badges use, except that the Conflicts badge's slice is named for what it counts: runs that ended with a textual conflict still standing. In Queue and Autonomous modes a conflict Merget resolves before landing ends the run Prepared, so it is counted there, and in Textual conflicts below, never in this slice. Failed gathers every run whose status is Failed, whose badge reads Error, Timed out or Out of memory. A slice with no runs in the period is left out. A run recorded before Merget had the Conflicts outcome stays in the slice it was recorded under, even where its badge now reads Conflicts. Select a slice or legend item to inspect its count and share.

Running, cancelled and outdated runs are outside those slices, and so is a merge GitHub was still finishing when Merget last checked, until GitHub reports it merged; the card notes the difference. See [Statuses and outcomes](https://merget.ai/docs/states).

### Textual conflicts

Textual conflicts shows the conflicted files Git reported in the period's runs (Detected) and how many of them Merget resolved before landing (Resolved), then a bar for each day of the range that had one (each hour, week or month when the range is bucketed so): its length is what was detected that day and its filled part what was resolved. The line between the figures and the bars counts the runs that ended with conflicts unresolved, the same number as the ring's Unresolved conflicts slice. Resolved reads Not recorded when the server predates the count, and runs recorded before Merget kept it add nothing to it, so over such a period it is a lower bound.

### What the runs produced

This chart shows runs that Completed a preparation, Flagged a clean merge and Published fixes. Flagged a clean merge counts runs where Git merged cleanly and Merget detected a break, including ones it repaired. Each share uses all runs as its denominator. The measures can overlap, so they do not form a total.

Published fixes counts only runs whose publication carried work of Merget's own: a run whose publication was made only of [fixes submitted to Merget](https://merget.ai/docs/batching#submit-a-fix) and [resolutions submitted to Merget for merge time](https://merget.ai/docs/conflict-resolution#resolve-for-merge-time), which Merget pushes to the branch when the pull request has to land on its own, is left out (and, once its run report is removed under [Data retention](https://merget.ai/docs/security#data-retention), so is a run whose publication carried any of them beside Merget's own work), and the chart says under its bars how many runs it left out when there are any.

### Repository comparison

Choose Runs, Blocked rate, Beyond Git or Tokens to compare repositories. Search to narrow the list, use Show all to expand it, and select a repository name to open its queue.

A repository's bar is a separate control: hover or focus it to inspect the measure, and select it to pin that inspection. Select it again to unpin it, or press Esc to clear the inspection without leaving Analytics.

A blocked rate is a share of that repository's runs. The other bars show its share of the organization's recorded total for that measure.

### Usage caveats

Tokens reflect the runs Merget recorded. A run whose usage was not recorded counts among the runs and not among the tokens, so the token tiles then read as a lower bound and say so. Tokens are usage, not price: what the period cost in credits is under Settings › Billing, with the plan, the spending cap and the statements. See [Tokens](https://merget.ai/docs/runs#tokens) and [Plan and billing](https://merget.ai/docs/billing).

An owner can cap the organization's monthly credits in Settings › Billing. See [Spending cap](https://merget.ai/docs/billing#spending-cap).

## Before GitHub is connected

Analytics shows setup instructions until a GitHub account is connected. Owners can select Install Merget on GitHub or Already installed? Connect it. Members are asked to have an owner connect the App. See [Install the GitHub App](https://merget.ai/docs/github-app).

## When data cannot be read

Use Retry in an error banner. Existing data may remain visible while a refresh runs. A chart that cannot load explains the failure; it does not report it as zero activity.
