web
GET
https://lucidace.com /v1/projects/{project_id}/web/articles Scope insight:readParameters
project_idstringpathrequiredfromstringquerytostringquerylimitintegerqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/articles"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"articles": 0,
"avg_depth": 0,
"few_readers": 0,
"finish_rate": 0,
"finished": 0,
"headline_exit_rate": 0,
"headline_exits": 0,
"many_readers": 0,
"reads": 0,
"sessions": 0,
"single_readers": 0,
"top": [
{
"article": "string",
"avg_depth": 0,
"finish_rate": 0,
"finished": 0,
"headline_exit_rate": 0,
"headline_exits": 0,
"reads": 0,
"sessions": 0
}
],
"trend": [
{
"day": "string",
"finished": 0,
"headline_exits": 0,
"reads": 0
}
]
}Schema
articlesintegerrequiredavg_depthnumberfew_readersintegerrequiredfinish_ratenumberfinishedintegerrequiredheadline_exit_ratenumberheadline_exitsintegerrequiredmany_readersintegerrequiredreadsintegerrequiredsessionsintegerrequiredsingle_readersintegerrequiredSessions that read 1, 2-3 and 4+ articles.
topArticleRow[]requiredShow child parameters
articlestringrequired$article_id, else the page path.avg_depthnumberMean share of the article region seen, 0-100.
finish_ratenumberfinishedintegerrequiredheadline_exit_ratenumberheadline_exitsintegerrequiredreadsintegerrequiredsessionsintegerrequiredtrendArticleDay[]requiredShow child parameters
daystringrequiredfinishedintegerrequiredheadline_exitsintegerrequiredreadsintegerrequired400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/web/attribution Scope insight:readParameters
project_idstringpathrequiredconversion_eventstringquerygoal_idstringqueryfromstringquerytostringquerylookback_daysintegerquerydimensionstringquerymodelsstringqueryhalf_life_daysintegerqueryrevenue_propertystringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/attribution"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"avg_path_length": 0,
"base_currency": "string",
"dimension": "string",
"lookback_days": 0,
"models": [
{
"model": "string",
"rows": [
{
"conversions": 0,
"key": "string",
"new_customers": 0,
"revenue": 0
}
]
}
],
"total_conversions": 0,
"total_revenue": 0,
"unconverted_conversions": 0
}Schema
avg_path_lengthnumberrequiredAverage touches per converting journey.
base_currencystringrequireddimensionstringrequiredlookback_daysintegerrequiredmodelsModelReport[]requiredShow child parameters
modelstringrequiredrowsCreditRow[]requiredShow child parameters
conversionsnumberrequiredkeystringrequirednew_customersnumberrequiredCredit on conversions that were the person's first.
revenuenumberrequiredIn the project's base currency.
total_conversionsintegerrequiredtotal_revenuenumberrequiredunconverted_conversionsintegerrequiredConversions with revenue in a currency without a configured rate (counted as 0 revenue).
400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/web/attribution/paths Scope insight:readParameters
project_idstringpathrequiredconversion_eventstringquerygoal_idstringqueryfromstringquerytostringquerylookback_daysintegerquerydimensionstringquerymodelstringqueryhalf_life_daysintegerqueryrevenue_propertystringquerylimitintegerquerycollapse_repeatsbooleanqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/attribution/paths"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"assists": [
{
"assist_ratio": 0,
"assisted": 0,
"assisted_revenue": 0,
"first_touch": 0,
"key": "string",
"last_touch": 0,
"last_touch_revenue": 0
}
],
"avg_days": 0,
"avg_touches": 0,
"base_currency": "string",
"days_to_convert": [
{
"conversions": 0,
"label": "string"
}
],
"dimension": "string",
"model": "string",
"paths": [
{
"avg_days": 0,
"conversions": 0,
"path": "string",
"revenue": 0,
"share": 0,
"steps": [
"string"
]
}
],
"stages": [
{
"early": 0,
"key": "string",
"late": 0,
"mid": 0
}
],
"total_conversions": 0,
"touches_to_convert": [
{
"conversions": 0,
"label": "string"
}
],
"with_touches": 0,
"without_touches": 0
}Schema
assistsAssistOut[]requiredShow child parameters
assist_rationumberAssisted over last-touch conversions; null when the key never closed.
assistedintegerrequiredassisted_revenuenumberrequiredfirst_touchintegerrequiredkeystringrequiredlast_touchintegerrequiredlast_touch_revenuenumberrequiredavg_daysnumberrequiredavg_touchesnumberrequiredbase_currencystringrequireddays_to_convertBucketOut[]required0..29, 30+ days from first touch.Show child parameters
conversionsintegerrequiredlabelstringrequireddimensionstringrequiredmodelstringrequiredpathsPathOut[]requiredShow child parameters
avg_daysnumberrequiredconversionsintegerrequiredpathstringrequiredsteps joined with >.revenuenumberrequiredIn the project's base currency.
sharenumberrequiredShare of the conversions that had a touch.
stepsstring[]requiredOldest touch first.
stagesStageOut[]requiredShow child parameters
earlynumberrequiredModel credit on the first 25% of path positions.
keystringrequiredlatenumberrequiredModel credit on the last 25% of path positions.
midnumberrequiredtotal_conversionsintegerrequiredtouches_to_convertBucketOut[]required1..9, 10+ touches.Show child parameters
conversionsintegerrequiredlabelstringrequiredwith_touchesintegerrequiredwithout_touchesintegerrequired400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/web/attribution/sessions Scope insight:readRecent sessions (or one) with the signals each was classified from and the rule that decided it.
Parameters
project_idstringpathrequiredsession_idstringqueryfromstringquerytostringquerylimitintegerqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/attribution/sessions"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"any_utm": true,
"changed": true,
"current_channel": "string",
"distinct_id": "string",
"landing_url": "string",
"referrer": "string",
"rule": {},
"rule_index": 0,
"session_id": "string",
"source_kind": "string",
"started_ms": 0,
"stored_channel": "string",
"utm_campaign": "string",
"utm_medium": "string",
"utm_source": "string"
}
]Schema
any_utmbooleanrequiredchangedbooleanrequiredTrue when the current rules would now classify the session differently.
current_channelstringrequiredChannel the project's current rules give the same signals.
distinct_idstringrequiredlanding_urlstringrequiredreferrerstringrequiredruleobjectThe deciding rule as
{channel, medium, source, ...}.rule_indexintegerZero-based index of the deciding rule in the project's rule list; null when none matched.
session_idstringrequiredsource_kindstringrequiredSource class seen by the rules: search, social, ai, email, video, other or none.
started_msintegerrequiredstored_channelstringrequiredChannel stored on the session's events at ingestion.
utm_campaignstringrequiredutm_mediumstringrequiredutm_sourcestringrequired400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/web/breakdown Scope insight:readParameters
project_idstringpathrequireddimensionstringqueryrequiredfromstringquerytostringquerylimitintegerqueryhoststringquerypropertiesstringqueryPropertyGroup JSON: only sessions with a matching event
dimsstringqueryJSON object of dimension to value: only sessions with those values (click-to-filter, at most 8)
Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/breakdown?dimension=page"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Ordered by visitors, at most
limit rows (default 100; values above 1000 are clamped to 1000, 0 is a 400)Example
[
{
"avg_session_duration_s": 0,
"bounce_rate": 0,
"key": "string",
"pageviews": 0,
"scroll_depth": 0,
"sessions": 0,
"visitors": 0
}
]Schema
avg_session_duration_snumberbounce_ratenumberNot available for the
page dimension.keystringrequiredDimension value; empty means "not set".
pageviewsintegerrequiredscroll_depthnumberpage only: mean max scroll depth (%) on leaving the page; null without $pageleave data.sessionsintegerrequiredvisitorsintegerrequired400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/web/breakdown/custom Scope insight:readPageviews grouped by a custom dimension; unmatched pages of a content group read `(other)`.
Parameters
project_idstringpathrequireddimensionstringqueryrequiredfromstringquerytostringquerylimitintegerqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/breakdown/custom?dimension=<dimension>"TypeScript
Python
Go
PHP
Ruby
Java
Updated