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.
If
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.