Use this page when you already know you need the Cevoid Analytics SDK and want the exact public method surface. If you are still deciding between automatic widget behavior, browser-event forwarding, or manual tracking, start with Overview. Public SDK payload fields useDocumentation Index
Fetch the complete documentation index at: https://docs.cevoid.com/llms.txt
Use this file to discover all available pages before exploring further.
camelCase. The SDK normalizes them to the internal snake_case telemetry format before sending events to the backend.
init(config)
Initializes the SDK. Call it once before your first tracking method. Repeated calls after the first successful initialization are ignored.
| Option | Type | Default | Description |
|---|---|---|---|
publishableKey | string | — | Required workspace publishable key. |
enableSessionTracking | boolean | false | Enables Cevoid-managed session tracking after consent checks pass. |
cookieDomain | string | — | Sets the domain for the ca_session cookie. |
emitBrowserEvents | boolean | true | Emits browser CustomEvents such as cevoid:post.click. |
apiHost | string | https://telemetry.cevoid.com | Overrides the telemetry host. |
enableSessionTracking is true, tracked events are deferred until consent resolution completes.
trackEvent(name, data)
Tracks a supported Cevoid UGC widget event.
trackEvent() for custom storefront implementations that need to send supported Cevoid event names manually.
Supported event names:
widget.loadwidget.viewpost.viewpost.clickpost.view.popuppost.clapproduct.click.tagproduct.click.postproduct.click.cardgallery.load_moregallery.upload_cta_click
trackSale(data)
Tracks a completed storefront purchase as sale.complete.
Use this for manual storefront implementations. Standard Shopify sales tracking uses the checkout web pixel path instead of calling trackSale().
orderIdcurrencyrevenue
marketIdcustomerIdskus
trackSale() for completed purchases, not trackEvent() with sale.complete.
identify(data)
Attaches profile-level context to future events.
profileId?: stringexternalId?: string
identify() again to replace the current identity payload.