GASP
Marketing Efficiency Metrics Outcome

Marketing Sourced Revenue

Marketing Sourced Revenue: Closed revenue attributed to marketing efforts (first-touch attribution).

Formula

Marketing Sourced Revenue = Sum of closed won revenue where first touch = marketing

Computable definition

The canonical formula in the GASP formula grammar. The MCP server compiles it to SQL over the datasets listed below.

sum(field.opportunity_amount where field.marketing_source = 'marketing' and field.opportunity_stage = 'closed_won' and in_period(field.close_date))

Unit: currency

Notes: First-touch attribution on closed won revenue.

Data requirements

Grain: Per event, aggregate monthly · Frequency: Daily sync · Aggregation: aggregate (month) · Staged: no · Main source: CRM.

Field Dataset Type
close_date opportunity date
marketing_source opportunity string
opportunity_amount opportunity decimal
opportunity_stage opportunity string
snapshot_date opportunity date
Example SQL (Postgres)
SELECT (SELECT COALESCE(SUM(opportunity_amount), 0) FROM opportunity WHERE snapshot_date = :period_end AND ((marketing_source = 'marketing' AND opportunity_stage = 'closed_won') AND (close_date >= :period_start AND close_date <= :period_end))) AS marketing_sourced_revenue

From an agent: with the GASP MCP server, call lookup_metric({ "name": "Marketing Sourced Revenue" }) or generate_query({ "metric": "Marketing Sourced Revenue", "adapter": "<your adapter JSON>" }).

What It Tells You

Marketing's contribution to actual revenue.

Try searching for:

↑↓navigate↵select