Skip to content

liveagent: audit vs current vendor docs (2026-04-16) #88

@productdevbook

Description

@productdevbook

Summary

Wrapper is missing several documented LiveAgent.* visitor/ticket APIs, button-level callbacks (onOnline/onOffline/onClick/onCloseFunction_), and the auto-tracking control hook; current track() and hide() implementations don't match documented semantics.

Gaps found

Missing API surface

Events not bridged

Config options not exposed

Deprecations in our current code

  • track(event, metadata) is implemented as LiveAgent.addContactField(event, metadata ?? true). This pollutes contact fields and is not how LiveAgent models event tracking — events are delivered via the server-configured Live Chat Tracking plugin. Either remove, throw OperationNotSupportedError, or rename and document that it writes a contact field — https://support.liveagent.com/839467-Live-chat-tracking-plugin
  • LiveAgentAPI.hideButton?(buttonId) is not present in vendor docs. The optional chaining masks the fact that this method does not exist — hide() is effectively a silent no-op. Either drop it or implement via DOM/CSS on the rendered button container. Vendor docs describe show/hide via window.location.pathname conditionals around createButton, not via a runtime API — https://support.liveagent.com/551283-Advanced-widgets-integrations
  • LiveAgentAPI.onChatStarted / onChatEnded declared on the typings as top-level properties of LiveAgent are undocumented — the documented surface is per-button (mybutton.onClick, mybutton.onCloseFunction_). Drop these dead types — https://support.liveagent.com/691328-Start-and-Close-chat-events
  • currentSubdomain is captured but never read after load(); either expose it via getConfig() (already does) or drop the duplicate state.

Re-evaluate "unsupported" markers

Intentionally out of scope

  • Server-side / agent-side REST ticketing API (https://www.liveagent.com/api/, LiveAgent-api-python).
  • Live Chat Tracking plugin configuration (admin-side JS snippets for GA/gtag).
  • Salesforce "Live Agent" (different product, frequently conflated in search results).
  • Visual/CSS theming of the button (server-side admin config bound to buttonId).

Sources

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions