open
Web SDK 1.8.0Opens the widget.
whazzup('open')Parameters
No parameters.
Behavior
Opens the current widget view and keeps the active session.
Reference
Complete parameters and behavior for every supported command.
The Web SDK is the supported integration surface. Parameters marked with an asterisk are required.
Opens the widget.
whazzup('open')No parameters.
Opens the current widget view and keeps the active session.
Closes the widget.
whazzup('close')No parameters.
Closes the panel without ending the visitor session.
Updates page, title and language after navigation.
whazzup('update', { url: location.href, title: document.title, locale: 'en' })| url | string (URL) | Current canonical page URL. |
| title | string | Current page title, up to 300 characters. |
| locale | string | Interface locale, for example en or de. |
Updates the active visitor session. Standard SPA URL changes are detected automatically.
Possible errors: invalid_inputinvalid_sessionorigin_not_allowed
Links the session to a person and optionally a company - automatically from window.whazzupSettings or with a signed token.
window.whazzupSettings = {
name: 'Ada Lovelace',
email: 'ada@example.com',
userId: '42',
plan: 'pro',
signedUpAt: '2025-04-01',
monthlyValue: 49,
company: { id: 'acme', name: 'Acme Inc', plan: 'business', size: 120, renewalDate: '2026-04-01' }
};
// or, verified:
whazzup('identify', { token: identityToken })| name | string | Display name of the signed-in person. |
| string | Email address of the signed-in person. | |
| userId | string | Your stable user ID, stored as external user ID. |
| company | string | object | Company name, or an object with id, name, plan, size, renewalDate and free values. |
| consent | boolean | Set to false to stop automatic context collection (referrer, campaign, device, page history). |
| token | string | Single-use HMAC token generated by your server. Optional; without it the person is stored as unverified. |
The loader reads window.whazzupSettings on start and whenever it changes, so no manual call is needed. Any other primitive value (up to 30) is stored as a custom attribute; numbers and ISO dates keep their type. Data sent without a token is stored as unverified. Setting window.whazzupSettings to null signs the person out.
Possible errors: signed_identity_requiredinvalid_identity_tokeninvalid_session
Sends a deliberately selected product event.
whazzup('track', { name: 'trial_started', properties: { plan: 'pro' } })| name * | string | Stable event name beginning with a letter. |
| properties | object | Selected string, number, boolean or null values. |
Records a product event for the active visitor. Avoid sensitive or high-volume data.
Possible errors: invalid_inputinvalid_sessionrate_limited
Shows or hides the launcher.
whazzup('hide')
whazzup('show')No parameters.
Changes launcher visibility without changing the session.
Fully ends the current widget session on sign-out or account switch.
whazzup('logout')
// or before switching accounts:
whazzup('reset')No parameters.
Invalidates the old session, clears its local identity and visitor keys, and starts a fresh isolated visitor session. The loader also detects changes to userId or email automatically.
Hides the widget; destroy fully removes the instance.
whazzup('shutdown')
whazzup('shutdown', { destroy: true })No parameters.
Hides the iframe by default. Use destroy only when permanently unmounting the integration.