ConverlayConverlay

Installation

Install the @converlay/sdk package to add server-side event tracking to any headless storefront — Hydrogen, Next.js, Remix, Nuxt, or plain HTML.

Install the package

npm
npm install @converlay/sdk
pnpm
pnpm add @converlay/sdk
yarn
yarn add @converlay/sdk

Package details

Zero dependencies, ~2 KB gzipped. Ships ESM + CJS dual build targeting ES2020.

Configuration options

OptionTypeDefaultDescription
shopDomainstringRequired. Your .myshopify.com domain
endpointstringhttps://converlay.app/api/events/collectCollection API endpoint
autoPageViewbooleanfalseAutomatically send page_view on init
debugbooleanfalseLog events to the browser console
consentConsentInput{analytics: true, marketing: true}Initial consent state

Entry points

ImportContents
@converlay/sdkcreateConverlay factory function
@converlay/sdk/reactConverlayProvider + useConverlay hook (peer dep: react >= 18)

Next steps