JavaScript SDK
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
<script
src="https://unpkg.com/@hyperengage/sdk-js/dist/web/lib.js"
data-tracking-host="https://staging-events.hyperengage.io"
data-workspace-key=YOUR_WOKSPACE_KEY
data-key=YOUR_API_KEY
data-init-only="true"
defer></script>
<script>window.hyperengage = window.hyperengage || (function(){(window.hyperengageQ = window.hyperengageQ || []).push(arguments);})</script>
// Install the npm package
npm i @hyperengage/sdk-js --save
// After installation, initialize the client
const hyperengage = hyperengageClient({
key: YOUR_WOKSPACE_KEY,
workspace_key: YOUR_API_KEY,
tracking_host: "https://events.hyperengage.io",
});