{% extends "cpq/base.html" %}{% load cpq_extras %}{% block title %}Analytics{% endblock %} {% block content %}

Analytics

{{ d.cycle_time.average_days }} dAvg quote cycle
{{ d.cycle_time.median_days }} dMedian cycle
${{ d.leakage.total_usd|floatformat:0 }}Margin leakage (USD)
{{ d.guardrail|floatformat:0 }}%Auto-approve guardrail

Win rate by segment

{{ c_segment }}

Discount vs win probability

{{ c_curve }}

Closed quotes bucketed by overall discount (%); label n is the sample size.

Average discount by rep

{{ c_rep }}

Average discount by product family

{{ c_family }}

Most discounted SKUs

{{ c_product }}

Cycle time by outcome

{{ c_cycle }}

Margin leakage report

Accepted quotes discounted beyond the {{ d.guardrail|floatformat:0 }}% guardrail, approved by exception. Leakage = list value × excess discount.

{% for i in d.leakage.items|slice:":15" %}{% empty %}{% endfor %}
QuoteRepExcess discountLeakage (USD)
{{ i.number }}{{ i.rep }}{{ i.excess_pct }} pts${{ i.leakage_usd|floatformat:0 }}
No leakage.

{{ d.leakage.count }} quotes in total. JSON: /api/analytics/

{% endblock %}