web

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-web"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/c98607d6-613a-4769-ba8d-1fd655470740/social-card.svg?v=3e7ae33eec8b" alt="web" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/web/articlesScope insight:read

Parameters

project_idstringpathrequired
fromstringquery
tostringquery
limitintegerquery

Code 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
articlesintegerrequired
avg_depthnumber
few_readersintegerrequired
finish_ratenumber
finishedintegerrequired
headline_exit_ratenumber
headline_exitsintegerrequired
many_readersintegerrequired
readsintegerrequired
sessionsintegerrequired
single_readersintegerrequired
Sessions that read 1, 2-3 and 4+ articles.
topArticleRow[]required
Show child parameters
articlestringrequired
$article_id, else the page path.
avg_depthnumber
Mean share of the article region seen, 0-100.
finish_ratenumber
finishedintegerrequired
headline_exit_ratenumber
headline_exitsintegerrequired
readsintegerrequired
sessionsintegerrequired
trendArticleDay[]required
Show child parameters
daystringrequired
finishedintegerrequired
headline_exitsintegerrequired
readsintegerrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/attributionScope insight:read

Parameters

project_idstringpathrequired
conversion_eventstringquery
goal_idstringquery
fromstringquery
tostringquery
lookback_daysintegerquery
dimensionstringquery
modelsstringquery
half_life_daysintegerquery
revenue_propertystringquery

Code 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_lengthnumberrequired
Average touches per converting journey.
base_currencystringrequired
dimensionstringrequired
lookback_daysintegerrequired
modelsModelReport[]required
Show child parameters
modelstringrequired
rowsCreditRow[]required
Show child parameters
conversionsnumberrequired
keystringrequired
new_customersnumberrequired
Credit on conversions that were the person's first.
revenuenumberrequired
In the project's base currency.
total_conversionsintegerrequired
total_revenuenumberrequired
unconverted_conversionsintegerrequired
Conversions with revenue in a currency without a configured rate (counted as 0 revenue).
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/attribution/pathsScope insight:read

Parameters

project_idstringpathrequired
conversion_eventstringquery
goal_idstringquery
fromstringquery
tostringquery
lookback_daysintegerquery
dimensionstringquery
modelstringquery
half_life_daysintegerquery
revenue_propertystringquery
limitintegerquery
collapse_repeatsbooleanquery

Code 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[]required
Show child parameters
assist_rationumber
Assisted over last-touch conversions; null when the key never closed.
assistedintegerrequired
assisted_revenuenumberrequired
first_touchintegerrequired
keystringrequired
last_touchintegerrequired
last_touch_revenuenumberrequired
avg_daysnumberrequired
avg_touchesnumberrequired
base_currencystringrequired
days_to_convertBucketOut[]required
0..29, 30+ days from first touch.
Show child parameters
conversionsintegerrequired
labelstringrequired
dimensionstringrequired
modelstringrequired
pathsPathOut[]required
Show child parameters
avg_daysnumberrequired
conversionsintegerrequired
pathstringrequired
steps joined with >.
revenuenumberrequired
In the project's base currency.
sharenumberrequired
Share of the conversions that had a touch.
stepsstring[]required
Oldest touch first.
stagesStageOut[]required
Show child parameters
earlynumberrequired
Model credit on the first 25% of path positions.
keystringrequired
latenumberrequired
Model credit on the last 25% of path positions.
midnumberrequired
total_conversionsintegerrequired
touches_to_convertBucketOut[]required
1..9, 10+ touches.
Show child parameters
conversionsintegerrequired
labelstringrequired
with_touchesintegerrequired
without_touchesintegerrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/attribution/sessionsScope insight:read

Recent sessions (or one) with the signals each was classified from and the rule that decided it.

Parameters

project_idstringpathrequired
session_idstringquery
fromstringquery
tostringquery
limitintegerquery

Code 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_utmbooleanrequired
changedbooleanrequired
True when the current rules would now classify the session differently.
current_channelstringrequired
Channel the project's current rules give the same signals.
distinct_idstringrequired
landing_urlstringrequired
referrerstringrequired
ruleobject
The deciding rule as {channel, medium, source, ...}.
rule_indexinteger
Zero-based index of the deciding rule in the project's rule list; null when none matched.
session_idstringrequired
source_kindstringrequired
Source class seen by the rules: search, social, ai, email, video, other or none.
started_msintegerrequired
stored_channelstringrequired
Channel stored on the session's events at ingestion.
utm_campaignstringrequired
utm_mediumstringrequired
utm_sourcestringrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/breakdownScope insight:read

Parameters

project_idstringpathrequired
dimensionstringqueryrequired
page | entry_page | exit_page | referrer | channel | utm_source | utm_medium | utm_campaign | utm_term | utm_content | country | region | city | device | browser | os | host | language | resolution | browser_version | os_version | device_brand | device_model | visitor | visit_number | hour | weekday | timezone
fromstringquery
tostringquery
limitintegerquery
hoststringquery
propertiesstringquery
PropertyGroup JSON: only sessions with a matching event
dimsstringquery
JSON 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_snumber
bounce_ratenumber
Not available for the page dimension.
keystringrequired
Dimension value; empty means "not set".
pageviewsintegerrequired
scroll_depthnumber
page only: mean max scroll depth (%) on leaving the page; null without $pageleave data.
sessionsintegerrequired
visitorsintegerrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/breakdown/customScope insight:read

Pageviews grouped by a custom dimension; unmatched pages of a content group read `(other)`.

Parameters

project_idstringpathrequired
dimensionstringqueryrequired
fromstringquery
tostringquery
limitintegerquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/breakdown/custom?dimension=<dimension>"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
404
503

Updated