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/goals/reportScope insight:read

Parameters

project_idstringpathrequired
fromstringquery
tostringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/goals/report"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
[
  {
    "conversion_rate": 0,
    "conversions": 0,
    "converters": 0,
    "goal": {
      "created_at": "2024-01-01T00:00:00Z",
      "event": "string",
      "id": "string",
      "kind": "string",
      "name": "string",
      "pathname": "string",
      "source": {},
      "value": 0,
      "value_property": "string"
    },
    "value": 0,
    "visitors": 0
  }
]
Schema
conversion_ratenumber
converters / visitors; null without visitors.
conversionsintegerrequired
convertersintegerrequired
Distinct visitors that converted.
goalobjectrequired
Show child parameters
created_atstringrequired
eventstring
Event name, for event goals.
idstringrequired
kindstringrequired
event, pageview, action or warehouse.
namestringrequired
pathnamestring
Exact $pathname, for pageview goals.
sourceobject
Query source of action / warehouse goals ({"type":"action","id":..} or {"type":"warehouse","table":..,"timestamp_field":..,"distinct_id_field":..}).
valuenumber
Fixed value credited per conversion.
value_propertystring
Property holding the conversion's revenue (not pageview goals; excludes value).
valuenumber
Goal value earned in the range: value per conversion, or the sum of value_property. Null for goals without a value.
visitorsintegerrequired
Distinct visitors with a pageview in the range.
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/goals/seriesScope insight:read

Parameters

project_idstringpathrequired
fromstringquery
tostringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/goals/series"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Daily conversions of each goal (first 20 goals)
Example
[
  {
    "goal_id": "string",
    "name": "string",
    "points": [
      {
        "conversion_rate": 0,
        "conversions": 0,
        "converters": 0,
        "day": "string",
        "visitors": 0
      }
    ]
  }
]
Schema
goal_idstringrequired
namestringrequired
pointsGoalPoint[]required
Show child parameters
conversion_ratenumber
converters / visitors; null without visitors.
conversionsintegerrequired
convertersintegerrequired
daystringrequired
YYYY-MM-DD in the project timezone.
visitorsintegerrequired
400
404
503
DELETEhttps://lucidace.com/v1/projects/{project_id}/web/goals/{id}Scope insight:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/web/goals/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/web/http-logsScope insight:read

Parameters

project_idstringpathrequired
fromstringpathrequired
tostringpathrequired
hoststringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/http-logs"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "days": [
    {
      "day": "string",
      "s2xx": 0,
      "s3xx": 0,
      "s4xx": 0,
      "s5xx": 0
    }
  ],
  "methods": [
    {
      "bot_requests": 0,
      "key": "string",
      "requests": 0
    }
  ],
  "not_found": [
    {
      "bot_requests": 0,
      "key": "string",
      "requests": 0
    }
  ],
  "server_errors": [
    {
      "bot_requests": 0,
      "key": "string",
      "requests": 0
    }
  ],
  "statuses": [
    {
      "bot_requests": 0,
      "key": "string",
      "requests": 0
    }
  ]
}
Schema
daysHttpStatusDay[]required
Show child parameters
daystringrequired
s2xxintegerrequired
s3xxintegerrequired
s4xxintegerrequired
s5xxintegerrequired
methodsHttpRequestRow[]required
Show child parameters
bot_requestsintegerrequired
keystringrequired
Status code, method or path.
requestsintegerrequired
not_foundHttpRequestRow[]required
Paths answering 404, busiest first (at most 20).
Show child parameters
bot_requestsintegerrequired
keystringrequired
Status code, method or path.
requestsintegerrequired
server_errorsHttpRequestRow[]required
Paths answering 5xx, busiest first (at most 20).
Show child parameters
bot_requestsintegerrequired
keystringrequired
Status code, method or path.
requestsintegerrequired
statusesHttpRequestRow[]required
Show child parameters
bot_requestsintegerrequired
keystringrequired
Status code, method or path.
requestsintegerrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/identity-fragmentationScope insight:read

Parameters

project_idstringpathrequired
fromstringquery
tostringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/identity-fragmentation"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "fragments": [
    {
      "browser": "string",
      "device": "string",
      "os": "string",
      "persons": 0,
      "sessions": 0
    }
  ],
  "in_app": [
    {
      "browser": "string",
      "sessions": 0
    }
  ],
  "in_app_share": 0
}
Schema
fragmentsFragment[]required
Devices seen as more than one person, most persons first (at most 50).
Show child parameters
browserstringrequired
devicestringrequired
Opaque device hash (never the IP).
osstringrequired
personsintegerrequired
sessionsintegerrequired
in_appBrowserShare[]required
Sessions in in-app browsers (Facebook, Instagram, LinkedIn, TikTok, ...).
Show child parameters
browserstringrequired
sessionsintegerrequired
in_app_sharenumber
In-app sessions / all sessions.
400
404
503
POSThttps://lucidace.com/v1/projects/{project_id}/web/log-importScope settings:write

Parameters

project_idstringpathrequired
sitestringpathrequired
Site origin for lines without a host, e.g. https://example.com.
dry_runbooleanpathrequired
Parse and count only; nothing is sent.

Request body

text/plain

Access-log lines: common / combined format or JSON lines (up to 100000 lines, 20 MiB)

"string"

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/web/log-import" \
  -H "Content-Type: text/plain" \
  -d '"string"'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "bots": 0,
  "first_invalid_line": 0,
  "invalid": 0,
  "lines": 0,
  "pageviews": 0,
  "skipped": 0
}
Schema
botsintegerrequired
Of those, requests from a known bot user agent (kept, flagged $lc_bot).
first_invalid_lineinteger
The first invalid line number, to fix the file.
invalidintegerrequired
Lines that are neither format.
linesintegerrequired
pageviewsintegerrequired
Page views sent (or that would be, on a dry run).
skippedintegerrequired
Requests that are not page views: assets, non-GET, errors, redirects.
400
403
404
503 no event producer configured
GEThttps://lucidace.com/v1/projects/{project_id}/web/marketing/diagnoseScope insight:read

Parameters

project_idstringpathrequired
fromstringquery
tostringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/marketing/diagnose"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "campaign_without_source_share": 0,
  "campaigns_without_spend": [
    {
      "campaign": "string",
      "score": 0,
      "sessions": 0,
      "suggestion": "string"
    }
  ],
  "spend_without_sessions": [
    "string"
  ],
  "unmapped_paid_sources": [
    {
      "sessions": 0,
      "source": "string"
    }
  ]
}
Schema
campaign_without_source_sharenumber
campaigns_without_spendUnmatchedCampaign[]required
Show child parameters
campaignstringrequired
scorenumberrequired
sessionsintegerrequired
suggestionstring
Closest spend campaign name; add it to utm_campaign_map in the web settings to match.
spend_without_sessionsstring[]required
unmapped_paid_sourcesSourceCount[]required
Paid-medium utm_source values in no platform allowlist (empty until an allowlist is set).
Show child parameters
sessionsintegerrequired
sourcestringrequired
400
404
503

Updated