Skip to Content
Dial v1 live 🎉
BeaconQuick Start

Quick Start

Get Dial Beacon running on your website in under 2 minutes.

Prerequisites

1. Add the Script Tag

Paste this into your HTML, just before the closing </body> tag:

<script data-dial-project="your-project-id" src="https://cdn.dial.wtf/beacon/v1/dial-beacon.min.js" async ></script>

Replace your-project-id with your actual project ID from the Beacon Console.

2. That’s It

Beacon will:

  1. Load asynchronously (won’t block your page render)
  2. Fetch your project configuration from the Dial platform
  3. Render a floating button in the configured position
  4. Open a panel with your quick actions, FAQ, and handoff options when clicked

Script Tag Attributes

AttributeRequiredDescription
data-dial-projectYesYour Beacon project ID
data-dial-envNo"prod" (default) or "staging"
data-dial-keyNoPublishable key for domain validation
data-dial-apiNoCustom API base URL (advanced)
data-dial-config-modeNo"remote" (default) or "local"

Manual Initialization

If you need more control, skip the data-dial-project attribute and initialize manually:

<script src="https://cdn.dial.wtf/beacon/v1/dial-beacon.min.js" async></script> <script> // Wait for the script to load window.addEventListener('load', () => { window.DialBeacon.init({ projectId: 'your-project-id', env: 'prod', publicKey: 'beacon_pk_live_...', }); }); </script>

Using with React

If you’re using React or Next.js, use the @dial-beacon/react package instead:

import { DialBeacon } from '@dial-beacon/react'; function App() { return ( <> <YourApp /> <DialBeacon projectId="your-project-id" /> </> ); }

See the React SDK docs for full details.

Next Steps

Last updated on