Back to index

Basic Embed Test

Script Tag (auto-loaded by this page)

<script
  src="http://localhost:3000/embed/embed-v1.global.js"
  data-org="test-org-001"
  data-journey="test-journey-basic"
  data-endpoint="http://localhost:3000/api/ingest"
  async
></script>

Status

Script loaded: ⏳ Loading...

Embed ready: ⏳ Initializing...

Loading from: http://localhost:3000/embed/embed-v1.global.js

Sending events to: http://localhost:3000/api/ingest

The embed auto-initializes and fires session_start on load.

Actions

Event Log

No events yet. Click buttons above to start.

Instructions

  1. Prerequisites: Run the core app on port 3000 first (pnpm --filter @repo/core dev)
  2. The embed loads from the core app and auto-fires session_start
  3. Click "Enter Step" or "Submit Form" to fire additional events
  4. Events are batched — click "Flush Now" to send immediately
  5. Check the core app terminal (port 3000) to see ingest logs

Note: The embed automatically flushes when you leave the page or after 20 events. This test app simulates a third-party site embedding Odyssey.