Check geo-testing eligibility
Pre-flight before any experiment: is this client a viable geo-testing candidate? Five checks — geo coverage (share of revenue carrying a region), history depth (≥28 days), market count (≥6 regions with meaningful revenue), matchability (the largest markets have at least one other market that moves with them, Pearson ≥ 0.5), and detectability (the daily budget the client's noise floor implies for a conclusive 30-day break-even test; judged against daily_budget when provided).
Pass auto=true to skip guessing event names: the API inventories the location's top conversion-ish (non-$) events, detects which carry revenue (and at which JSON path), runs the full assessment per event, and returns the best candidate plus every event's verdict with suggested_measure / suggested_json_path.
curl -X GET "https://mythic-analytics.gulp.workers.dev/client/v1/incrementality/eligibility?auto=true&daily_budget=3.14&lookback_days=90&event_name=John%20Doe&json_path=example_string&measure=revenue" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
import requests
import json
url = "https://mythic-analytics.gulp.workers.dev/client/v1/incrementality/eligibility?auto=true&daily_budget=3.14&lookback_days=90&event_name=John%20Doe&json_path=example_string&measure=revenue"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://mythic-analytics.gulp.workers.dev/client/v1/incrementality/eligibility?auto=true&daily_budget=3.14&lookback_days=90&event_name=John%20Doe&json_path=example_string&measure=revenue", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://mythic-analytics.gulp.workers.dev/client/v1/incrementality/eligibility?auto=true&daily_budget=3.14&lookback_days=90&event_name=John%20Doe&json_path=example_string&measure=revenue", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://mythic-analytics.gulp.workers.dev/client/v1/incrementality/eligibility?auto=true&daily_budget=3.14&lookback_days=90&event_name=John%20Doe&json_path=example_string&measure=revenue')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
response = http.request(request)
puts response.body
{
"success": true,
"data": {
"window": {
"from": "2026-05-01",
"to": "2026-05-31"
},
"eligible": true,
"failing_checks": [
"example_string"
],
"checks": {
"geo_coverage": {
"pass": true,
"share_with_region": 0.94
},
"history": {
"pass": true,
"blocked_by": "example_string",
"days_with_data": 42
},
"market_count": {
"pass": true,
"blocked_by": "example_string",
"viable_markets": 42,
"min_revenue_share": 0.02,
"min_active_days": 23
},
"matchability": {
"pass": true,
"blocked_by": "example_string",
"best_match_correlation": 3.14
},
"detectability": {
"pass": true,
"blocked_by": "example_string",
"sigma_daily": 3.14,
"daily_budget_for_30d_test": 3.14,
"daily_budget": 3.14
}
},
"root_cause": {
"check": "geo_coverage",
"share_with_region": 0,
"blocks": [
"history",
"market_count",
"matchability",
"detectability"
],
"remedy": "No revenue can be placed in a region. These conversions carry no geo — typically server-side/CRM events, which never pass through the edge that stamps it. This is a tracking gap, not a budget problem.
"
},
"window_narrowed": {
"requested_lookback_days": 90,
"used_lookback_days": 45,
"reason": "scan_limit_exceeded"
}
}
}
{
"error": "Error",
"message": "`scan_limit_exceeded` — the dataset is too large to scan under the API's bytes-billed cap, even after one automatic retry at half the requested lookback. Retry with a smaller `lookback_days`. The message reports how many GB the query needed.
",
"code": 413
}
{
"error": "Error",
"message": "`dataset_missing` — this client has no BigQuery event dataset, so incrementality cannot be assessed. It needs a BigQuery export provisioned (and `api_metadata.client_project_id` set if its data lives in a shared project). Distinguished from a 5xx on purpose: nothing is broken, the client just isn't set up yet.
",
"code": 424
}
{
"error": "Too Many Requests",
"message": "Rate limit exceeded. Please try again later",
"code": 429,
"retryAfter": 3600
}
{
"error": "Internal Server Error",
"message": "An unexpected error occurred on the server",
"code": 500,
"requestId": "req_1234567890"
}
{
"error": "Error",
"message": "Eligibility query failed for an unrecognised reason. Recognised BigQuery failures return 413/424 instead.",
"code": 502
}
/client/v1/incrementality/eligibility
Target server for requests. Edit to use your own host.
Client key as bearer token. Use an agency key (Bearer ak_...) for read-write access or a location secret key (Bearer sk_...) for read-only access. Scoped keys (mcp_) are accepted too and need incrementality:read or incrementality:write. See Using an mcp_ key over HTTP.
Bearer ak_...) for read-write access or a location secret key (Bearer sk_...) for read-only access. Scoped keys (mcp_) are accepted too and need incrementality:read or incrementality:write. See Using an mcp_ key over HTTP.
When true, assess every candidate conversion event and return the best one (ignores event_name/json_path/measure).
Planned daily test spend to judge detectability against.
Days of history to assess. Default 90, min 14, max 365.
Conversion event name (default purchase).
JSON path to revenue in properties_json (default $.value — properties_json IS the event's properties object).
revenue (default) sums the value at json_path; count counts matching events instead — the lead-gen mode (e.g. ?event_name=form_submitted&measure=count).
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token. Client key as bearer token. Use an agency key (Bearer ak_...) for read-write access or a location secret key (Bearer sk_...) for read-only access. Scoped keys (mcp_) are accepted too and need incrementality:read or incrementality:write. See Using an mcp_ key over HTTP.
Query Parameters
When true, assess every candidate conversion event and return the best one (ignores event_name/json_path/measure).
truePlanned daily test spend to judge detectability against.
Days of history to assess. Default 90, min 14, max 365.
Conversion event name (default purchase).
JSON path to revenue in properties_json (default $.value — properties_json IS the event's properties object).
revenue (default) sums the value at json_path; count counts matching events instead — the lead-gen mode (e.g. ?event_name=form_submitted&measure=count).
revenuecount