Usage Analytics

Track and analyze your code review usage, costs, and team activity with detailed analytics.

Overview

Jasper provides comprehensive analytics to help you understand how your team uses code reviews and optimize your usage. Access analytics from Settings → Analytics or view quick stats on your dashboard.

Dashboard Metrics

The main dashboard shows key metrics at a glance:

Reviews This Month
156
+12% from last month
Credits Remaining
344
~2 months at current rate
Avg. Review Time
23s
From PR open to review
Success Rate
99.2%
Reviews completed successfully

Usage Breakdown

Analyze your usage across different dimensions:

By Repository

See which repositories consume the most reviews:

Repository Reviews % of Total
acme/api 67 43%
acme/frontend 52 33%
acme/docs 37 24%

By Team Member

Track individual contribution and review activity:

  • Reviews triggered per member
  • Chat interactions (@ mentions)
  • Manual reviews requested

By Action Type

Understand what features your team uses most:

  • Automatic Reviews - Triggered on PR open
  • Manual Reviews - Triggered via /jasper command
  • Chat Replies - @jasper conversations
  • Explanations - /jasper explain requests
  • Security Reviews - /jasper security scans

Token Usage

Jasper tracks detailed token consumption for transparency and cost analysis. Token metrics help you understand the complexity of your reviews.

Token Metrics

Metric Description
Input Tokens Tokens in the code and context sent to the AI
Output Tokens Tokens in the review response
Total Tokens Combined input + output tokens
Cached Tokens Tokens served from cache (lower cost)

Understanding Token Usage

Token consumption varies based on:

  • PR Size - Larger diffs require more input tokens
  • File Count - More files means more context
  • Review Depth - Detailed reviews produce more output
  • Repository Tags - Custom prompts add to input

Note

Credits are consumed per review, not per token. Token tracking is for analytics only - a small PR costs the same as a large one (1 credit).

Time-Based Analytics

View usage trends over time:

Daily, Weekly, Monthly Views

  • Daily - See activity patterns (busy days, quiet periods)
  • Weekly - Compare week-over-week trends
  • Monthly - Track long-term growth and seasonality

Custom Date Range

Select any date range to analyze specific periods:

  • Sprint retrospectives
  • Release cycles
  • Before/after comparisons

Performance Metrics

Monitor Jasper's performance for your organization:

Review Duration

Track how long reviews take to complete:

  • Average Duration - Mean time from trigger to completion
  • P95 Duration - 95th percentile (worst-case typical)
  • Max Duration - Longest review in the period

Success Rate

Monitor review reliability:

  • Completed - Successfully finished reviews
  • Failed - Reviews that encountered errors
  • Timeout - Reviews that exceeded time limits

Failed reviews are automatically refunded. If you see frequent failures, check:

  • Repository accessibility (private repos need proper permissions)
  • Large file exclusions (binary files, generated code)
  • PR size limits (very large PRs may need splitting)

Exporting Data

Export analytics for reporting or further analysis:

  1. Navigate to Settings → Analytics
  2. Select the date range and filters
  3. Click Export
  4. Choose format: CSV or JSON

Exported data includes:

  • Individual review records
  • Token usage per review
  • Timestamps and durations
  • Repository and user information

API Access

Access analytics programmatically via the API:

# Get usage summary
GET /api/v1/organizations/{org}/analytics/summary

# Get detailed usage
GET /api/v1/organizations/{org}/analytics/usage
    ?from=2024-01-01
    &to=2024-01-31
    &group_by=repository

# Get token usage
GET /api/v1/organizations/{org}/analytics/tokens

See the API Documentation for complete details.

Cost Estimation

The analytics dashboard includes estimated costs based on your usage. This helps you:

  • Forecast future credit needs
  • Identify cost optimization opportunities
  • Plan budget for scaling

Usage Projections

Based on your current usage rate, Jasper projects:

  • When your credits will run out
  • Recommended package for your usage level
  • Month-over-month cost trends

Alerts & Thresholds

Set up alerts to monitor usage:

  • High Usage Alert - Notify when daily reviews exceed threshold
  • Low Credits Warning - Alert before running out
  • Error Rate Alert - Notify if failure rate increases

Configure alerts in Settings → Notifications.