ConverlayConverlay

Installation

Installieren Sie das @converlay/sdk-Paket, um serverseitiges Event-Tracking zu jeder Headless-Storefront hinzuzufügen — Hydrogen, Next.js, Remix, Nuxt oder einfaches HTML.

Paket installieren

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

Paketdetails

Keine Abhängigkeiten, ~2 KB gzipped. Liefert ESM + CJS Dual Build mit Ziel ES2020.

Konfigurationsoptionen

OptionTypStandardBeschreibung
shopDomainstringErforderlich. Ihre .myshopify.com-Domain
endpointstringhttps://converlay.app/api/events/collectCollection-API-Endpunkt
autoPageViewbooleanfalseAutomatisch page_view bei Initialisierung senden
debugbooleanfalseEvents in der Browser-Konsole protokollieren
consentConsentInput{analytics: true, marketing: true}Anfänglicher Einwilligungsstatus

Einstiegspunkte

ImportInhalt
@converlay/sdkcreateConverlay-Factory-Funktion
@converlay/sdk/reactConverlayProvider + useConverlay-Hook (Peer-Abhängigkeit: react >= 18)

Nächste Schritte