Skip to content

Workspace

Product analytics export

Send Deckbell events to your own Segment or PostHog, opt-in per workspace, with the full list of events and properties.

Send what happens in Deckbell (issues created and completed, cycles completed, agent runs) to your workspace's own Segment or PostHog, to chart how your team works next to the rest of your data. It's off until an admin turns it on.

Events contain ids, counts and settings only. Issue titles, descriptions, comments, chat messages, agent prompts and summaries, and cycle names are never sent.

Turn it on

  1. Open Integrations → Segment and PostHog → Configure. You need permission to manage integrations.
  2. Add one or both destinations:
    • Segment write key: create an HTTP API source in Segment and copy its write key.
    • PostHog project API key: in PostHog, Project settings → Project API key (it starts with phc_). Set PostHog host to US Cloud (https://us.i.posthog.com), EU Cloud (https://eu.i.posthog.com), or your self-hosted PostHog's public https address.
  3. Tick the events you want, turn on Send events and choose Save.
  4. Choose Send test event: a Deckbell Test Event should arrive within a minute, and the page says whether each destination accepted it.

Keys are stored encrypted and never shown again; paste a new key to replace one, or choose Remove.

How events are sent

  • Each event is queued and sent to each destination separately. If a destination is down, Deckbell retries for about two hours. A rejected key isn't retried; the error shows under Delivery on the settings page.
  • Each event has one id for both destinations (Segment messageId, PostHog uuid), so a retried event isn't counted twice.
  • The person who caused the event is the user: Segment userId and PostHog distinct_id are their Deckbell user id. Events without a person use workspace-<id> as an anonymous id.
  • The workspace is the group: Segment context.groupId and the PostHog workspace group are the workspace id.
  • Issues brought in by an import don't send Issue Created.

Events

Every event has workspace_id and source (deckbell).

Issue Created

An issue was created, in the app, through the API or by an agent.

PropertyDescription
issue_idThe issue's id
issue_keyIts key, such as HRB-142
project_id, project_keyIts project
prioritynone, urgent, high, medium or low
estimateIts estimate, if any
cycle_idIts cycle, if any
is_subtaskWhether it's a sub-issue
assignee_typeuser, agent, or empty when unassigned

Issue Completed

An issue moved to a done state. The same properties as Issue Created, plus:

PropertyDescription
hours_to_completeHours from creation to completion

Cycle Completed

A cycle was completed.

PropertyDescription
cycle_idThe cycle's id
project_id, project_keyIts project
issues_totalIssues in the cycle
issues_completedOf those, how many are done
completion_rateissues_completed / issues_total, 0 to 1
planned_daysDays from start to end date
days_lateDays completed after the end date (0 if on time)

Agent Run Finished

An agent run succeeded, failed or was canceled.

PropertyDescription
run_id, agent_idThe run and agent
agent_roleThe agent's role, such as coder, reviewer or triage
issue_idThe issue it worked on, if any
statussucceeded, failed or canceled
outcomemerged, closed or pr_open for its pull request, succeeded when it opened none, otherwise the status
triggerWhat started it, manual, assignment, schedule, mention or pull_request
hosting_mode, task_size, strategy, escalatedHow it ran
duration_secondsHow long it ran
input_tokens, output_tokensTokens used
opened_pull_requestWhether it opened a pull request
changed_filesFiles changed

Turn it off

Turn off Send events to stop sending right away, or choose Remove on both keys. Events already sent stay in Segment and PostHog.

Still stuck? Email us and we’ll help.