Query
query LeadSourceAnalytics {
leadSourceAnalytics {
bookedCalls
closeRate
closes
revenue {
amount
currency
formatted
}
revenueBreakdown {
booked {
amount
currency
formatted
}
collected {
amount
currency
formatted
}
}
shows
}
}Response
{
"data": {
"leadSourceAnalytics": [
{
"bookedCalls": "value",
"closeRate": "value",
"closes": "value",
"revenue": {
"amount": "value",
"currency": "string",
"formatted": "string"
},
"revenueBreakdown": {
"booked": {
"amount": "value",
"currency": "string",
"formatted": "string"
},
"collected": {
"amount": "value",
"currency": "string",
"formatted": "string"
}
},
"shows": "value"
}
]
}
}Queries
leadSourceAnalytics
Lead source analytics (UTM attribution breakdown)
Organisation-wide aggregate with no per-rep grain. A member session in a
workspace that restricts members to their own book (AUR-902) is refused
with extensions.code: "FORBIDDEN", reason: "member_visibility" rather
than handed a narrowed total that would read as the organisation’s.
@param startDate - ISO 8601 start date
@param endDate - ISO 8601 end date
QUERY
leadSourceAnalytics(endDate: String, startDate: String): [LeadSourceAnalytics!]!Arguments
endDate
String
startDate
String
Returns
bookedCalls
Number!
Number of booked calls from this source
closeRate
Percentage
Close rate for this source as a percentage (0-100)
closes
Number!
Number of closes from this source
revenue
deprecated
Revenue from this source
Ambiguous: this one is COLLECTED while CampaignAnalytics.totalRevenue is BOOKED, and both were called revenue. Use revenueBreakdown.booked / revenueBreakdown.collected.
revenueBreakdown
Booked and collected revenue from this source, named.
shows
Number!
Number of shows from this source
source
String!
UTM source value (e.g., "google", "facebook")
Query
query LeadSourceAnalytics {
leadSourceAnalytics {
bookedCalls
closeRate
closes
revenue {
amount
currency
formatted
}
revenueBreakdown {
booked {
amount
currency
formatted
}
collected {
amount
currency
formatted
}
}
shows
}
}Response
{
"data": {
"leadSourceAnalytics": [
{
"bookedCalls": "value",
"closeRate": "value",
"closes": "value",
"revenue": {
"amount": "value",
"currency": "string",
"formatted": "string"
},
"revenueBreakdown": {
"booked": {
"amount": "value",
"currency": "string",
"formatted": "string"
},
"collected": {
"amount": "value",
"currency": "string",
"formatted": "string"
}
},
"shows": "value"
}
]
}
}