SDK · Embed
Install Sumidata
Pick your framework, copy the snippet, and you're recording.
Site chat
Adds data-chat="true" to the HTML snippet and the AI prompt: an “Ask us anything” bubble on your pages, with visitors' questions landing in Chats in your dashboard. With the npm package, add chat: true to init(). How site chat works
index.html
<!-- Sumidata SDK -->
<script>
window.Sumidata = window.Sumidata || { push: function(m, a) { (this.q = this.q || []).push([m, a, Date.now()]) } };
</script>
<script
src="https://sdk.sumidata.io/loader.js"
data-project-id="YOUR_PROJECT_ID"
data-src="https://sdk.sumidata.io/sumidata.js"
async
></script>Replace
YOUR_PROJECT_ID with your real project ID before shipping.Installation · 3 steps
- Copy the snippet above.
- Drop it into your app — an HTML page, your entry module, or a layout component.
- Verify locally with a separate test project. Publish only when deployment is authorized.
For AI agents · install & self-verify
Paste this into your coding agent. It handles account and token setup using available access, installs the SDK, and verifies through the Partner API. Deployment requires your authorization.
install-sumidata-with-ai-agent.md
Install Sumidata in this app following https://sumidata.io/agents.md. Respect repository instructions and my existing permissions.
Site chat: off.
Reuse existing setup and credentials. As needed, sign in or register, select or create the correct project, and obtain its API token yourself using authorized access. Ask only for missing information or access you cannot obtain. Never invent account details.
Integrate the SDK once and track applicable successful actions and purchases without duplicate tracking. Keep credentials out of browser code, Git and chat.
Verify locally or in an approved test environment using a separate Sumidata test project: confirm the token's projectId and find a unique event sent through the actual app via the Partner API. Never send test purchases to production.
Do not deploy, trigger deployment, push, or change production unless explicitly authorized for that action. If blocked, complete the safe work and report what remains unverified. Report changes and verification results; local verification does not prove production works.CDN loader · ~2 KB gzipped·or npm · @sumidata/browser·Read the install docs·Install with an AI agent