Your Lead to Cash Data Template

HubSpot CRM
Your Lead to Cash Data Template

Your Lead to Cash Data Template

This template provides a comprehensive guide to collecting the necessary data for analyzing your Lead to Cash process. It outlines the essential attributes and activities you'll need to extract from your source system. By following this guidance, you can ensure your data is ready for insightful process mining.
  • Recommended attributes to collect
  • Key activities to track
  • Extraction guidance tailored for HubSpot CRM
New to event logs? Learn how to create a process mining event log.

Lead to Cash Attributes

These are the recommended data fields and essential attributes to include in your event log for a thorough analysis of your Lead to Cash process.
5 Required 7 Recommended 9 Optional
Name Description
Sales Opportunity
SalesOpportunityId
The unique identifier for a sales opportunity, which serves as the case identifier for the Lead to Cash process.
Description

The Sales Opportunity ID tracks a potential deal from its creation through to its conclusion, whether won or lost. In process mining, this identifier links all related activities, such as calls, meetings, quotes, and payments, into a single end-to-end process instance.

Analyzing processes based on the Sales Opportunity allows businesses to understand the entire sales journey. It helps identify common paths, bottlenecks, and deviations, providing a clear view of how different opportunities are handled and what factors contribute to successful outcomes.

Why it matters

This is the core identifier that connects all events in the sales lifecycle, making it possible to analyze the end-to-end Lead to Cash process for each deal.

Where to get

This is the dealId property from the Deal object in the HubSpot CRM API.

Examples
987654321087654321097654321098
Activity
ActivityName
The name of the specific event or task that occurred within the Lead to Cash process.
Description

The Activity Name describes a step in the process, such as 'Opportunity Created', 'Quote Issued', or 'Payment Received'. These activities are extracted from various events and status changes recorded in HubSpot.

This attribute is fundamental for constructing the process map, which visually represents the sequence of activities. Analyzing the flow of activities helps identify process variations, loops, and bottlenecks, enabling targeted process improvement initiatives.

Why it matters

It defines the steps in the process map, which is the foundation of all process mining analysis. Without distinct activities, no process flow can be visualized or analyzed.

Where to get

This attribute is derived from various sources in HubSpot, including Deal stage changes (e.g., 'Opportunity Qualified'), Task types, Call dispositions, and associated objects like Quotes and Invoices.

Examples
Opportunity CreatedQuote IssuedContract SignedPayment Received
Event Time
EventTime
The timestamp indicating when an activity or event occurred.
Description

Event Time provides the precise date and time for each activity in the process, establishing the chronological order of events. This timestamp is essential for calculating cycle times, durations, and waiting times between different steps.

In analysis, this attribute is used to understand process performance, identify delays, and measure throughput. It forms the temporal backbone of the process, allowing for detailed analysis of how time is spent throughout the sales and payment cycle.

Why it matters

This attribute provides the chronological sequence of events, which is critical for calculating performance metrics like cycle time and identifying process delays.

Where to get

Timestamps are sourced from various properties depending on the activity, such as createdate for deal creation, closedate for deal closure, or timestamps on associated tasks, calls, and emails.

Examples
2023-04-15T10:00:00Z2023-05-20T14:30:00Z2023-06-01T09:15:00Z
Last Data Update
LastDataUpdate
The timestamp indicating the last time the data was refreshed from the source system.
Description

This attribute records when the dataset was last updated. It provides transparency on the freshness of the data being analyzed, ensuring that stakeholders are aware of the data's timeliness.

This is particularly useful for dashboards and ongoing monitoring, as it tells the user how current the process insights are. It helps differentiate between recent performance changes and outdated information.

Why it matters

Indicates the freshness of the data, which is critical for ensuring that analyses and dashboards are based on up-to-date information.

Where to get

This value is generated and stamped onto the dataset during each data extraction or refresh cycle.

Examples
2024-07-21T02:00:00Z
Source System
SourceSystem
The system of record from which the data was extracted.
Description

This attribute identifies the origin of the process data. For the Lead to Cash process, this is typically HubSpot CRM, but it could also include data from integrated financial systems for invoice and payment activities.

Specifying the source system is important in environments where data is merged from multiple platforms. It helps in data governance, troubleshooting data quality issues, and understanding the technological landscape of the process.

Why it matters

It provides crucial context about data origin, which is essential for data governance and for analyses that span multiple integrated systems.

Where to get

This is a static value, 'HubSpot CRM', that should be added during the data transformation process.

Examples
HubSpot CRM
Lead Source
LeadSource
The original source or channel through which the lead was acquired.
Description

Lead Source tracks how a potential customer first engaged with the company, for example, through a 'Webinar', 'Trade Show', or 'Organic Search'. This information is vital for evaluating the effectiveness of different marketing channels.

This attribute is essential for the 'Lead to Opportunity Conversion Rates' dashboard. Analyzing conversion rates and sales cycle times by lead source helps marketing and sales teams understand which channels generate the most valuable opportunities and optimize their marketing spend accordingly.

Why it matters

It helps measure the effectiveness of marketing channels by analyzing the conversion rates and quality of opportunities originating from different sources.

Where to get

This information is often stored on the original Contact object and may be copied to a custom property on the Deal object. A common property is hs_analytics_source.

Examples
Organic SearchPaid SocialReferralTrade Show
Opportunity Amount
OpportunityAmount
The potential or actual monetary value of the sales opportunity.
Description

This attribute captures the value of a deal, which could be an estimated amount in early stages or the final contract value upon closing. It is a fundamental metric for understanding the financial impact of the sales process.

Analyzing Opportunity Amount allows for segmenting the process by deal size to see if larger deals follow a different process or take longer to close. It is also essential for financial forecasting and for prioritizing high-value opportunities.

Why it matters

This allows for financial analysis of the sales pipeline, helping to prioritize high-value deals and understand how deal size impacts process behavior.

Where to get

This is the amount property from the Deal object in the HubSpot CRM API.

Examples
50000.0012500.50250000.00
Opportunity Close Date
OpportunityCloseDate
The date when the sales opportunity was closed, either as won or lost.
Description

The Opportunity Close Date marks the conclusion of the sales process for a given deal. This date is set when a deal's stage is moved to a 'Closed Won' or 'Closed Lost' category.

This timestamp is crucial for calculating the overall sales cycle time, from creation to close. It serves as the end time for the case and is used in many performance KPIs, such as 'Average Sales Cycle Time', to measure the efficiency of the sales process.

Why it matters

It marks the end of the sales cycle for an opportunity, making it essential for calculating the total cycle time and measuring sales velocity.

Where to get

This is the closedate property from the Deal object in the HubSpot CRM API.

Examples
2023-07-10T17:00:00Z2023-08-15T11:20:00Z2023-09-05T16:45:00Z
Opportunity Outcome
OpportunityOutcome
The final result of the sales opportunity, indicating if it was won or lost.
Description

This attribute provides the final status of a deal. It is typically derived from the final sales stage, which is categorized as either 'Closed Won' or 'Closed Lost'.

Segmenting the process map by outcome is a powerful analysis technique. It allows for a direct comparison of the process flows for won versus lost deals, revealing patterns, activities, or delays that correlate with success or failure. This insight is invaluable for process optimization and sales coaching.

Why it matters

It allows for comparative analysis between successful and unsuccessful process instances, revealing which process behaviors correlate with winning deals.

Where to get

This is derived from the dealstage property. Stages in HubSpot are defined as 'Open', 'Closed Won', or 'Closed Lost'. The outcome is determined by the type of the final stage.

Examples
WonLost
Opportunity Owner
OpportunityOwner
The sales representative assigned to and responsible for the sales opportunity.
Description

The Opportunity Owner is the primary contact and responsible person for managing a deal through the sales pipeline. This is typically the sales representative who created or was assigned the opportunity.

Analyzing the process by Opportunity Owner helps in evaluating individual and team performance. It can reveal differences in sales strategies, activity levels, and conversion rates among sales reps, providing valuable insights for coaching and resource management.

Why it matters

This attribute is essential for performance analysis, allowing for comparison of sales cycle times, win rates, and process compliance across different sales representatives.

Where to get

This corresponds to the hubspot_owner_id property on the Deal object. The owner's name must be joined from the Owners API.

Examples
Jane DoeJohn SmithEmily Jones
Region
Region
The geographical region or territory associated with the sales opportunity.
Description

Region specifies the geographic market where the sales opportunity is located. This could be based on the customer's location or the sales team's assigned territory. It is often a custom property in HubSpot.

This attribute is used to compare sales processes across different regions. Analysis can uncover regional variations in performance, process compliance, and customer behavior, which is essential for the 'Regional Sales Process Variants' dashboard and for tailoring sales strategies to specific markets.

Why it matters

Enables comparison of process performance and variations across different geographical markets, supporting regional strategy and standardization efforts.

Where to get

This is typically a custom property on the Company or Deal object. The exact field name must be confirmed in the specific HubSpot instance.

Examples
North AmericaEMEAAPACLATAM
Sales Stage
SalesStage
The current or historical stage of the sales opportunity in the pipeline.
Description

The Sales Stage represents the progression of a deal through a defined sales process, with stages like 'Qualified', 'Proposal Presented', and 'Contract Sent'. Changes in this stage are often used to generate key activities in the process log.

This attribute is critical for analyzing opportunity progression and identifying bottlenecks. It allows for tracking the time spent in each stage and the conversion rates between stages, which is key for the 'Opportunity Stage Progression Metrics' dashboard.

Why it matters

It provides a snapshot of where an opportunity is in the sales funnel, enabling analysis of pipeline velocity and stage-specific bottlenecks.

Where to get

This is the dealstage property on the Deal object. It contains the ID of the stage, which must be mapped to the stage label.

Examples
Appointment ScheduledQualified To BuyPresentation ScheduledContract Sent
Customer Name
CustomerName
The name of the company or organization associated with the sales opportunity.
Description

The Customer Name identifies the client or potential client for the deal. This information is typically stored in the associated Company object in HubSpot.

Analyzing the process by customer allows for identifying patterns specific to certain clients, such as longer payment cycles or unique sales processes. It is particularly useful for key account management and for understanding how the process performs for different customer segments.

Why it matters

It allows for customer-centric analysis, helping to identify process patterns or issues that are specific to certain clients or industries.

Where to get

This is sourced from the associated Company object linked to the Deal. The property is typically name on the Company object.

Examples
Global Tech Inc.Innovate Solutions Ltd.Enterprise Corp
Discount Percentage
DiscountPercentage
The discount percentage applied to the sales opportunity, if any.
Description

This attribute captures the discount offered to the customer as a percentage of the total deal amount. It is usually recorded when a quote is created or during final negotiations.

Analyzing the discount percentage is key for the 'Discounting Effectiveness Analysis' dashboard. It helps to understand the impact of discounting on win rates and sales cycle times, and to identify if certain reps or regions are offering excessive discounts, which can impact profitability.

Why it matters

Crucial for analyzing the impact of pricing strategies on sales outcomes and profitability, helping to ensure discounting is used effectively.

Where to get

This is often a custom property on the Deal or Quote object, as HubSpot does not have a standard discount field on Deals. It may also be calculated from line items.

Examples
0.050.100.150.20
Invoice Number
InvoiceNumber
The unique identifier for the invoice generated for the sales order.
Description

The Invoice Number is the reference for the bill sent to the customer. This is typically generated after an order is fulfilled and marks a key step in the cash collection part of the process.

While HubSpot is not primarily an invoicing system, this data is crucial for tracking the final stages of the Lead to Cash process. It links the sales opportunity to the financial transaction, enabling analysis of the handoff from sales to finance and the 'Invoice to Revenue Realization Time' KPI.

Why it matters

It links the sales process to the financial collection process, enabling analysis of the handoff efficiency between sales and finance.

Where to get

This data would typically come from an integrated accounting or ERP system (like NetSuite, QuickBooks) and be associated with the HubSpot Deal via a custom object or property.

Examples
INV-2023-00123INV-2023-00456INV-2023-00789
Is Stalled
IsStalled
A flag indicating if an open opportunity has been inactive in its current stage for too long.
Description

This attribute is a boolean flag that is true if a sales opportunity has not progressed to a new stage within a predefined time limit. The definition of 'stalled' (e.g., more than 30 days in the 'Proposal' stage) is based on business rules.

This flag helps to proactively identify at-risk deals that may require intervention. It is the core metric for the 'Stalled Opportunity Rate' KPI and helps sales managers focus their attention on opportunities that are losing momentum.

Why it matters

Proactively identifies at-risk opportunities that are not progressing, allowing sales managers to intervene before the deal is lost.

Where to get

Calculated field based on the current date, the date the deal entered its current stage (hs_lastmodifieddate), and business rules defining the stall time for each stage.

Examples
truefalse
Payment Cycle Time
PaymentCycleTime
The time from when an invoice was sent until the payment was received.
Description

Payment Cycle Time measures the efficiency of the accounts receivable process. It is calculated as the difference between the 'Payment Received' activity timestamp and the 'Invoice Generated' activity timestamp.

This metric is crucial for the 'Average Payment Collection Time' KPI and for analyzing cash flow. It helps identify bottlenecks in the payment collection process and can be analyzed by customer or payment terms to find opportunities for improvement.

Why it matters

Measures the efficiency of the cash collection process, which is critical for maintaining healthy cash flow.

Where to get

Calculated field: Timestamp of 'Payment Received' activity - Timestamp of 'Invoice Generated' activity. The source timestamps come from an integrated financial system.

Examples
28 days45 days10 days
Payment Terms
PaymentTerms
The agreed-upon terms for payment, such as Net 30 or Net 60.
Description

Payment Terms define the conditions under which a customer is expected to pay for the goods or services. This is typically established during the contracting phase.

This attribute is important for the 'Payment Cycle Time Analysis'. Analyzing payment performance against the agreed terms helps to identify customers who consistently pay late and to understand if certain payment terms are associated with longer collection cycles.

Why it matters

This provides context for payment cycle analysis, helping to distinguish between expected payment times and actual delays.

Where to get

This is typically a custom property on the Deal or Quote object, or sourced from an integrated accounting system.

Examples
Net 30Net 60Due on Receipt
Product Family
ProductFamily
The category or family of products included in the sales opportunity.
Description

The Product Family classifies the deal based on the type of product or service being sold. This is typically determined by the line items associated with the deal.

This attribute enables analysis of the sales process for different product categories. Some products may have longer or more complex sales cycles, and this segmentation can reveal those differences, leading to more tailored sales processes and more accurate forecasting.

Why it matters

Segmenting the process by product family can reveal if different types of products have different sales cycles or process paths, informing product-specific strategies.

Where to get

This would be derived from the Line Items associated with the Deal. It requires logic to categorize products into families.

Examples
Software LicenseProfessional ServicesHardwareSupport Subscription
Sales Cycle Time
SalesCycleTime
The total time from when an opportunity was created until it was closed.
Description

Sales Cycle Time is a key performance indicator that measures the duration of the entire sales process for a single opportunity. It is calculated as the difference between the 'Opportunity Close Date' and the 'Opportunity Create Date'.

This calculated metric is fundamental for understanding sales velocity and efficiency. It is the primary KPI for the 'Average Sales Cycle Time' and is used to identify which types of deals, reps, or regions have longer or shorter cycles.

Why it matters

This is a critical KPI for measuring sales process efficiency. It directly quantifies how long it takes to convert an opportunity into a closed deal.

Where to get

Calculated field: OpportunityCloseDate - CreateDate of the Deal.

Examples
30 days 12 hours92 days 4 hours15 days 2 hours
Sales Team
SalesTeam
The team to which the opportunity owner belongs.
Description

The Sales Team groups individual opportunity owners into teams, often based on region, product focus, or market segment. This allows for aggregated performance analysis.

Analyzing at the team level helps managers evaluate team effectiveness, compare strategies, and allocate resources. It provides a higher-level view than individual owner analysis, useful for identifying broader trends in process execution.

Why it matters

Allows for aggregated analysis of team performance, which is useful for managers to compare process execution and outcomes between different sales teams.

Where to get

The team_id is a property on the Owner object. The team name must be retrieved by joining with the Teams API.

Examples
Enterprise Sales - EastSMB Sales - WestMid-Market Sales - Central
Required Recommended Optional

Lead to Cash Activities

These are the key process steps and significant milestones to capture in your event log for accurate process discovery within your Lead to Cash flow.
7 Recommended 7 Optional
Activity Description
Contract Signed
This activity represents the finalization of the commercial agreement when the customer signs the contract. In HubSpot, this is often captured when a deal moves to the 'Contract Sent' or 'Closed Won' stage after the quote is accepted.
Why it matters

This is the final commercial agreement milestone before fulfillment begins. It is essential for calculating the 'Quote to Contract Cycle Time' KPI.

Where to get

This can be inferred from the timestamp the Deal Stage property changes to 'Contract Signed' or an equivalent stage. If e-signature is used on the quote, this may be synonymous with 'Quote Accepted'.

Capture

Timestamp of Deal Stage change to 'Contract Signed' or similar.

Event type inferred
Opportunity Closed Lost
This is a terminal failure event where the deal is officially lost and closed. This is an explicit, standard event captured when a user moves a deal to the 'Closed Lost' stage.
Why it matters

Analyzing when and why deals are lost is critical for process improvement. This event provides the endpoint for calculating sales cycle time for lost deals.

Where to get

This is the timestamp in the standard 'Close Date' property when the 'Deal Stage' is set to any stage of the 'Lost' category. The 'Closed Lost Reason' property provides context.

Capture

The 'Close Date' property of the Deal when the outcome is a loss.

Event type explicit
Opportunity Closed Won
This is a terminal success event where the deal is officially won and closed. This is an explicit, standard event in HubSpot captured when a user moves a deal to the 'Closed Won' stage.
Why it matters

This activity signifies a successful outcome and is a key endpoint for measuring sales cycle time and win rates. It often triggers downstream fulfillment and billing processes.

Where to get

This is the timestamp recorded in the standard 'Close Date' property when the 'Deal Stage' is set to any stage of the 'Won' category.

Capture

The 'Close Date' property of the Deal when the outcome is a win.

Event type explicit
Opportunity Created
This is the first event in the sales opportunity lifecycle, marking the creation of a new deal record in HubSpot. This event is captured explicitly when a user manually creates a deal or when it is created automatically via a workflow or integration.
Why it matters

This activity serves as the official start of the sales cycle for an opportunity. It is the primary timestamp for calculating overall sales cycle time and lead to opportunity conversion velocity.

Where to get

This is logged automatically. The timestamp can be found in the standard 'Create Date' property of the Deal object.

Capture

The 'Create Date' property of the Deal record.

Event type explicit
Opportunity Qualified
Marks the point where the sales team has qualified the opportunity, confirming it meets certain criteria like budget, authority, need, and timing. This is typically inferred from the deal moving into a specific 'Qualified' stage in the sales pipeline.
Why it matters

This is a key milestone for understanding the quality of the sales pipeline. Analyzing the time to qualification helps identify efficiencies in the early stages of the sales process.

Where to get

Inferred from the Deal object's property history for the 'Deal Stage' field, specifically the timestamp when it enters a stage like 'Qualified to Buy'.

Capture

Timestamp of a Deal Stage change to a designated 'Qualified' stage.

Event type inferred
Payment Received
This activity marks the final step in the Lead to Cash cycle, when the customer's payment has been received and reconciled. This is typically tracked in an external accounting system and synced back to HubSpot.
Why it matters

This is the terminal event for revenue realization. It is essential for calculating 'Average Payment Collection Time' and the 'End-to-End Lead to Cash Cycle Time'.

Where to get

Inferred from a custom property update, like 'Payment Date', synced from a financial system, or a manual stage change in a dedicated pipeline.

Capture

Timestamp from a custom 'Payment Date' property updated by an integration.

Event type inferred
Quote Issued
This activity marks the creation and sending of a formal price quote to the customer. HubSpot's Sales Hub has a dedicated Quotes tool, and this event is captured explicitly when a quote is created and published for a deal.
Why it matters

This is a major milestone indicating commercial intent. Analyzing the time from qualification to quote issuance is crucial for the 'Quote to Contract Process Flow' analysis.

Where to get

The creation timestamp of a Quote object that is associated with the Deal. The 'hs_createdate' property on the Quote object.

Capture

Creation date of the associated Quote object.

Event type explicit
Initial Contact Made
Represents the first logged interaction with the contacts associated with the deal, such as a call, email, or meeting. This is explicitly captured in the activity timeline associated with the Deal record in HubSpot.
Why it matters

Tracking the time from creation to first contact helps measure sales team responsiveness. Analyzing the type of first contact can reveal patterns in successful deals.

Where to get

The timestamp of the first logged Activity (e.g., call, email, meeting) associated with the Deal object after its creation date.

Capture

Timestamp of the first logged activity on the Deal's timeline.

Event type explicit
Invoice Generated
Indicates that a customer invoice has been created in an accounting system. This activity is not native to HubSpot Sales Hub and would be captured via an integration updating a custom property or stage on the Deal.
Why it matters

This is a key step in the cash conversion cycle. The time from fulfillment to invoice generation directly impacts how quickly the company can bill for its services.

Where to get

Requires integration with an accounting system like QuickBooks or Xero. The event would be inferred from a custom property timestamp or a deal stage change.

Capture

Timestamp from a custom date property like 'Invoice Generated Date'.

Event type inferred
Order Fulfilled
Represents the completion of product delivery or service provision to the customer. This event typically occurs outside of HubSpot and is recorded via an integration or a manual Deal Stage update to 'Service Delivered' or 'Order Complete'.
Why it matters

Marks the completion of the delivery part of the process. It is the starting point for measuring the 'Order Fulfillment to Invoice Time' KPI.

Where to get

Requires an integration with an ERP or fulfillment system, or a manual update. It can be inferred from the timestamp a deal enters a stage like 'Fulfilled'.

Capture

Timestamp of a status change from an external system or manual stage change.

Event type inferred
Quote Accepted
This event occurs when the customer formally accepts the quote, often via an electronic signature. This is explicitly captured when the customer signs a quote sent through HubSpot's e-signature feature.
Why it matters

Marks the customer's agreement to the terms and price, a critical buying signal. The time between quote issuance and acceptance is key for analyzing negotiation cycle times.

Where to get

The 'hs_quote_accepted_date' property on the Quote object or the completion timestamp from the e-signature log associated with the quote.

Capture

Timestamp from the 'hs_quote_accepted_date' property on the Quote.

Event type explicit
Requirements Gathered
This activity signifies that a discovery call or meeting has occurred and the customer's needs have been documented. It is usually inferred by the deal progressing to a specific stage in the sales pipeline, such as 'Discovery' or 'Needs Analysis'.
Why it matters

Tracking this milestone helps evaluate how quickly the sales team moves from qualification to understanding customer needs. Delays here can indicate scheduling problems or resource constraints.

Where to get

Inferred from the property history of the 'Deal Stage' field, capturing the timestamp when the deal enters a stage like 'Requirements Gathering'.

Capture

Timestamp of a Deal Stage change to a stage representing needs analysis.

Event type inferred
Sales Order Created
Marks the internal handoff from sales to the fulfillment or operations team. This is generally not a native HubSpot event and is inferred when a deal is moved into a specific pipeline stage like 'Order Processing' or 'Pending Fulfillment'.
Why it matters

This activity is crucial for analyzing the efficiency of the sales-to-operations handoff. Delays here can impact customer satisfaction and delivery timelines.

Where to get

Inferred from the property history of the 'Deal Stage' field, recording the timestamp of entry into a post-sale stage.

Capture

Timestamp of Deal Stage change to an 'Order Processing' stage.

Event type inferred
Solution Proposed
Represents the point at which a formal solution or product demonstration has been presented to the customer. This is commonly inferred from a Deal Stage change to a status like 'Presentation Scheduled' or 'Demo Completed'.
Why it matters

This activity is a critical mid-funnel milestone. Measuring the time leading up to this point helps analyze the efficiency of the solutioning phase of the sales cycle.

Where to get

Inferred from the timestamp of the Deal Stage property changing to a relevant stage, such as 'Presentation Scheduled' in the deal's property history.

Capture

Timestamp of Deal Stage change to a 'Presentation' or 'Proposal' stage.

Event type inferred
Recommended Optional

Extraction Guides

How to get your data from HubSpot CRM