Documentation Index
Fetch the complete documentation index at: https://docs.ghostlyx.com/llms.txt
Use this file to discover all available pages before exploring further.
When to use server-side tracking
Use the Events API when:- You need to record a conversion that happens entirely on the server (for example, a payment confirmation received via webhook)
- You are building a server-rendered application without a browser front-end
- You want to guarantee an event is recorded even if the visitor’s browser blocks JavaScript
Endpoint
Headers
| Header | Value |
|---|---|
Content-Type | application/json |
User-Agent | The visitor’s original User-Agent string |
Request body
| Field | Required | Description |
|---|---|---|
domain | Yes | The domain as configured in GhostlyX |
name | Yes | The event name. Use pageview to record a pageview. |
url | Yes | The full URL where the event occurred |
props | No | Object of string or number properties |
Response
202 Accepted on success. No response body.