Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(customer-analytics): add staff impersonation links (#88118)

Arthur Moreira de Deus24a13f65a546
diff --git a/products/customer_analytics/frontend/components/Accounts/AGENTS.md b/products/customer_analytics/frontend/components/Accounts/AGENTS.md
index 59bd245084d9..6564003a5986 100644
--- a/products/customer_analytics/frontend/components/Accounts/AGENTS.md
+++ b/products/customer_analytics/frontend/components/Accounts/AGENTS.md
@@ -27,7 +27,7 @@ AccountsTabContent ── binds dataNodeLogic(ACCOUNTS_TABLE_DATA_NODE_KEY, acc
└── AccountsTable the DataTable; keyed row renderers; controlled row expansion
└── AccountNotebooksExpansion expanded row: sidebar (Useful links + active-relationships summary) + LemonTabs(Notes/Users/Relationships/Feature requests/Usage/Spend/Opportunities/Conversations/Meetings/Event stream)
├── (notes) paginated/searchable/sortable LemonTable + "New note" button (accountNotebooksLogic, keyed by accountId)
- ├── (users) AccountRelatedUsersExpansion (accountRelatedUsersLogic, keyed by externalId)
+ ├── (users) AccountRelatedUsersExpansion (accountRelatedUsersLogic, keyed by externalId; staff get a compact, region-aware admin link)
├── (relationships) AccountRelationshipsExpansion (accountRelationshipsLogic, keyed by accountId — full assignment timeline, paginated; assign/end controls + definition filter, current assignments sorted on top)
├── (feature requests) AccountFeatureRequestsExpansion (accountFeatureRequestsLogic, keyed by accountId — linked requests and link-existing flow)
├── (usage) AccountBillingExpansion kind="usage" (accountBillingLogic — a saved billing-usage insight)
@@ -48,7 +48,7 @@ AccountsTabContent ── binds dataNodeLogic(ACCOUNTS_TABLE_DATA_NODE_KEY, acc
| `accountsExpansionLogic` | Which rows are expanded (`expandedAccountIds`) and the active tab per account (`activeTabByAccount`). Pure state — no DOM, no data fetching. |
| `accountsOverviewTilesLogic` | The overview metric tiles (saved in views via `properties.tiles`). It translates supported tile definitions into typed Postgres metrics for `accountsLogic.metricsQuery`, then reads the separate metrics data node. Reads legacy per-team localStorage tiles **read-only** on mount + emits an `OverviewTilesLocalStorageRead` tombstone; never writes localStorage. |
| `accountNotebooksLogic` | Notes/notebooks linked to one account (keyed by `accountId`): server-side pagination (`page`/`notebooksCount`), debounced title+content search (`searchTerm`), sort (`sorting` by created date/author), and `createNote` (creates an internal account notebook and opens it in the side panel). |
-| `accountRelatedUsersLogic` | Group members / related users for one account (keyed by `externalId`). US-region orgs come from the org-members endpoint; when it returns no members, the logic falls back to the `eu_org_members` data warehouse view (a materialized pre-join of the EU postgres sync, prod-only, refreshed daily), fetched once per expansion and paginated client-side. A missing view (local dev) degrades to the normal empty state. |
+| `accountRelatedUsersLogic` | Group members / related users for one account (keyed by `externalId`). US-region orgs come from the org-members endpoint; when it returns no members, the logic falls back to the `eu_org_members` data warehouse view (a materialized pre-join of the EU postgres sync, prod-only, refreshed daily), fetched once per expansion and paginated client-side. The EU view includes the source Django user ID. Each member carries its source region so staff admin links open the correct user's detail page in the correct cloud. A missing view (local dev) degrades to the normal empty state. |
| `accountRelationshipsLogic` | Relationship assignments for one account (keyed by `accountId`): fetches the full timeline once (`include_history=true` on the nested relationships endpoint) — the `displayedRelationships` selector (current assignments first, newest first, optionally narrowed by `definitionFilter`) feeds the (paginated) history tab, the `activeRelationships` selector feeds the sidebar summary. Also owns the tab's mutations: `assignRelationship` (definition picker + `MemberSelect`, POSTs the assign endpoint) and `endRelationship` (per active row, POSTs the end endpoint) — both guarded by a shared `relationshipSaving` flag, reload the timeline, and force-refresh the list's data nodes so relationship columns stay in sync. |
| `accountFeatureRequestsLogic` | Feature requests for one account (keyed by `accountId`): loads linked requests in server pages of five with debounced search, then searches a bounded server page of accessible, editable active requests for the link picker. Request links carry the account's Feature requests deep link as their origin, so the detail breadcrumb returns to the same account tab. The picker exposes load failures with retry guidance and refreshes stale options after optimistic-concurrency conflicts. |
| `accountBillingLogic` | Billing data behind the Usage and Spend tabs (keyed by `accountId:kind`); injects the account's org + date range into saved billing insights' SQL variables, preloads each insight result when the account expands, and owns the per-view hidden-series state (`ephemeralHiddenSeriesKeysByShortId`) behind the chart chips. |
@@ -118,7 +118,7 @@ Sort safety: removing the sorted column drops the sort (`clearSortIfColumnRemove
**Tab data is cached for the row's expanded lifetime, not refetched per tab switch.** `LemonTabs` only renders the active tab's content (keyed by `activeKey`), so a tab's logic would normally unmount the moment you switch away and refetch on return. To avoid that, `AccountNotebooksExpansion` holds a mount reference to each per-tab logic via `useMountedLogic` — `accountRelatedUsersLogic({ externalId })`, `accountRelationshipsLogic({ accountId })`, `accountBillingLogic` for both `kind: 'usage'` and `kind: 'spend'`, `accountOpportunitiesLogic({ accountId })`, `accountSummariesLogic({ accountId })`, `accountConversationsLogic({ accountId })`, `accountEmailThreadsLogic({ accountId })`, and `accountMeetingsLogic({ accountId })`. Since `AccountNotebooksExpansion` stays mounted for as long as the row is expanded (it's the `expandedRowRender` body), those keyed instances survive tab switches and only tear down when the row collapses. The `useMountedLogic` props must stay identical to the `useValues` props in the tab components so both resolve to the same keyed instance. `accountNotebooksLogic` and `accountLinksLogic` already mount at this level (Notes content and the always-rendered sidebar), so they need no explicit mount reference. Data is loaded once on mount and not auto-refreshed while the row stays open — acceptable since this data needn't be live. The flag-gated Feature requests tab loads when opened instead of mounting its logic while the flag is off.
-The Users tab reads its loaded data straight off `accountRelatedUsersLogic`, so the root mount above keeps it cached. The **Usage/Spend** tabs are different: their insight results live in `dataNodeLogic`/`dataVisualizationLogic`. After each `accountBillingLogic` loads its saved-insight metadata, it mounts those result logics immediately. Because the expanded-row root mounts both billing kinds, all Usage and Spend queries start when the account expands instead of waiting for a tab click. The result logics stay mounted until the row collapses. Changing the date range replaces each insight's preload and aborts work under the previous query key. The tab body reuses the same keyed logics and attaches them to `accountBillingLogic` via `useAttachedLogic` — `AccountBillingChart` does this directly, and the fallback `<Query>` path uses `attachTo={accountBillingLogic-instance}` plus matching insight context. This prevents duplicate loads and keeps results across tab switches. (The Opportunities tab loads its data in `accountOpportunitiesLogic` directly, not via an embedded query, so the root `useMountedLogic` above is enough — it needs no attachment.)
+The Users tab reads its loaded data straight off `accountRelatedUsersLogic`, so the root mount above keeps it cached. Staff also see an "Impersonate" action that opens the user's Django admin detail page in the member's US or EU cloud. Outside PostHog Cloud, the action stays on the current origin so local and self-hosted users can test their own admin. The **Usage/Spend** tabs are different: their insight results live in `dataNodeLogic`/`dataVisualizationLogic`. After each `accountBillingLogic` loads its saved-insight metadata, it mounts those result logics immediately. Because the expanded-row root mounts both billing kinds, all Usage and Spend queries start when the account expands instead of waiting for a tab click. The result logics stay mounted until the row collapses. Changing the date range replaces each insight's preload and aborts work under the previous query key. The tab body reuses the same keyed logics and attaches them to `accountBillingLogic` via `useAttachedLogic` — `AccountBillingChart` does this directly, and the fallback `<Query>` path uses `attachTo={accountBillingLogic-instance}` plus matching insight context. This prevents duplicate loads and keeps results across tab switches. (The Opportunities tab loads its data in `accountOpportunitiesLogic` directly, not via an embedded query, so the root `useMountedLogic` above is enough — it needs no attachment.)
The Usage and Spend tabs render existing saved billing insights — **point users to them, don't rebuild billing as new insights.**
@@ -301,6 +301,7 @@ We track user actions on the Accounts list with `posthog.capture()`. Conventions
| `customer analytics account usage series toggled` | `accountBillingLogic` `toggleHiddenSeriesKey` listener (dispatched by the `AccountBillingSeriesToggle` chips) | `kind` (`usage` \| `spend`), `is_hidden` (the post-click state), `series_count` (no series label / no PII) |
| `customer analytics account usage series bulk toggled` | `accountBillingLogic` `setAllSeriesHidden` listener (dispatched by the Select all / Clear all buttons in `AccountBillingSeriesToggle`) | `kind` (`usage` \| `spend`), `is_hidden` (`true` when hiding all, `false` when showing all), `series_count` (no series label / no PII) |
| `customer analytics account related user clicked` | `AccountRelatedUsersExpansion.tsx` user `<Link>` `onClick` | _(none — customer end-user PII kept out)_ |
+| `customer analytics account related user admin opened` | `AccountRelatedUsersExpansion.tsx` staff-only "Impersonate" button | `region` (`US` \| `EU`; user ID kept out) |
| `customer analytics account opportunity clicked` | `AccountOpportunitiesExpansion.tsx` opportunity name `<Link>` `onClick` | _(none — CRM record id/url kept out)_ |
| `customer analytics account summary cadence changed` | `accountSummariesLogic` `setCadence` listener (after the PATCH succeeds) | `cadence` (`daily` \| `weekly` \| `monthly` \| `off`) |
| `customer analytics account summary expanded` | `accountSummariesLogic` `toggleSummaryExpanded` listener (only when the toggle opens a summary, not on collapse) | _(none — summary content/period is customer data and kept out)_ |
diff --git a/products/customer_analytics/frontend/components/Accounts/AccountRelatedUsersExpansion.test.tsx b/products/customer_analytics/frontend/components/Accounts/AccountRelatedUsersExpansion.test.tsx
new file mode 100644
index 000000000000..d420e951850f
--- /dev/null
+++ b/products/customer_analytics/frontend/components/Accounts/AccountRelatedUsersExpansion.test.tsx
@@ -0,0 +1,46 @@
+import '@testing-library/jest-dom'
+
+import { cleanup, render, screen } from '@testing-library/react'
+import { Provider } from 'kea'
+
+import api from 'lib/api'
+import { userLogic } from 'scenes/userLogic'
+
+import type { HogQLQueryResponse } from '~/queries/schema/schema-general'
+import { initKeaTests } from '~/test/init'
+import type { UserType } from '~/types'
+
+import { AccountRelatedUsersExpansion } from './AccountRelatedUsersExpansion'
+
+describe('AccountRelatedUsersExpansion', () => {
+ beforeEach(() => {
+ initKeaTests()
+ jest.restoreAllMocks()
+ userLogic.actions.loadUserSuccess({ is_staff: true } as UserType)
+ })
+
+ afterEach(() => {
+ cleanup()
+ })
+
+ it('opens a dev EU member in the current admin', async () => {
+ jest.spyOn(api.organizationMembers, 'listForOrg').mockResolvedValue({
+ count: 0,
+ next: null,
+ previous: null,
+ results: [],
+ })
+ jest.spyOn(api, 'query').mockResolvedValue({
+ results: [[42, 'membership-1', 'Alex', 'Mercer', '[email protected]', 'distinct-1']],
+ } as HogQLQueryResponse)
+
+ render(
+ <Provider>
+ <AccountRelatedUsersExpansion externalId="organization-1" />
+ </Provider>
+ )
+
+ const impersonateButton = await screen.findByText('Impersonate')
+ expect(impersonateButton.closest('a')).toHaveAttribute('href', 'http://localhost/admin/posthog/user/42/change/')
+ })
+})
diff --git a/products/customer_analytics/frontend/components/Accounts/AccountRelatedUsersExpansion.tsx b/products/customer_analytics/frontend/components/Accounts/AccountRelatedUsersExpansion.tsx
index 0d9b30684140..0fce03fcb1be 100644
--- a/products/customer_analytics/frontend/components/Accounts/AccountRelatedUsersExpansion.tsx
+++ b/products/customer_analytics/frontend/components/Accounts/AccountRelatedUsersExpansion.tsx
@@ -1,17 +1,20 @@
import { useActions, useValues } from 'kea'
import posthog from 'posthog-js'
-import { LemonTable, LemonTableColumns, Link } from '@posthog/lemon-ui'
+import { LemonButton, LemonTable, LemonTableColumns, Link } from '@posthog/lemon-ui'
import { fullName } from 'lib/utils/strings'
import { urls } from 'scenes/urls'
+import { userLogic } from 'scenes/userLogic'
+import { getAccountRelatedUserAdminUrl } from './accountRelatedUserAdminUrl'
import { accountRelatedUsersLogic, AccountOrganizationMember, PAGE_SIZE } from './accountRelatedUsersLogic'
import { AccountsEvents } from './constants'
export function AccountRelatedUsersExpansion({ externalId }: { externalId: string }): JSX.Element {
const logic = accountRelatedUsersLogic({ externalId })
const { membersResponse, membersResponseLoading, page } = useValues(logic)
+ const { user } = useValues(userLogic)
const { setPage } = useActions(logic)
const columns: LemonTableColumns<AccountOrganizationMember> = [
@@ -40,6 +43,33 @@ export function AccountRelatedUsersExpansion({ externalId }: { externalId: strin
},
]
+ if (user?.is_staff) {
+ columns.push({
+ title: 'Actions',
+ key: 'actions',
+ width: 0,
+ render: (_, member) => {
+ const adminUrl = getAccountRelatedUserAdminUrl(member.region, member.user.id)
+
+ return (
+ <LemonButton
+ type="secondary"
+ size="xsmall"
+ to={adminUrl}
+ targetBlank
+ tooltip="Open this user in admin to impersonate them."
+ data-attr="customer-analytics-account-user-admin-link"
+ onClick={() =>
+ posthog.capture(AccountsEvents.RelatedUserAdminOpened, { region: member.region })
+ }
+ >
+ Impersonate
+ </LemonButton>
+ )
+ },
+ })
+ }
+
return (
<LemonTable<AccountOrganizationMember>
size="small"
diff --git a/products/customer_analytics/frontend/components/Accounts/accountRelatedUserAdminUrl.test.ts b/products/customer_analytics/frontend/components/Accounts/accountRelatedUserAdminUrl.test.ts
new file mode 100644
index 000000000000..809281e5ae15
--- /dev/null
+++ b/products/customer_analytics/frontend/components/Accounts/accountRelatedUserAdminUrl.test.ts
@@ -0,0 +1,18 @@
+import { Region } from '~/types'
+
+import { getAccountRelatedUserAdminUrl } from './accountRelatedUserAdminUrl'
+
+const ADMIN_URL_CASES: [Region.US | Region.EU, string, string][] = [
+ [Region.US, 'https://us.posthog.com', 'https://us.posthog.com'],
+ [Region.EU, 'https://us.posthog.com', 'https://eu.posthog.com'],
+ [Region.US, 'http://localhost:8011', 'http://localhost:8011'],
+ [Region.EU, 'https://app.dev.posthog.dev', 'https://app.dev.posthog.dev'],
+]
+
+describe('getAccountRelatedUserAdminUrl', () => {
+ test.each(ADMIN_URL_CASES)('opens %s users from %s in %s admin', (region, currentOrigin, expectedAdminOrigin) => {
+ expect(getAccountRelatedUserAdminUrl(region, 42, currentOrigin)).toBe(
+ `${expectedAdminOrigin}/admin/posthog/user/42/change/`
+ )
+ })
+})
diff --git a/products/customer_analytics/frontend/components/Accounts/accountRelatedUserAdminUrl.ts b/products/customer_analytics/frontend/components/Accounts/accountRelatedUserAdminUrl.ts
new file mode 100644
index 000000000000..9da2d0b9d2ff
--- /dev/null
+++ b/products/customer_analytics/frontend/components/Accounts/accountRelatedUserAdminUrl.ts
@@ -0,0 +1,18 @@
+import { CLOUD_HOSTNAMES } from 'lib/constants'
+
+import { Region } from '~/types'
+
+const POSTHOG_CLOUD_HOSTNAMES = new Set([CLOUD_HOSTNAMES[Region.US], CLOUD_HOSTNAMES[Region.EU]])
+
+export function getAccountRelatedUserAdminUrl(
+ region: Region.US | Region.EU,
+ userId: number,
+ currentOrigin: string = window.location.origin
+): string {
+ const currentUrl = new URL(currentOrigin)
+ const adminOrigin = POSTHOG_CLOUD_HOSTNAMES.has(currentUrl.hostname)
+ ? `https://${CLOUD_HOSTNAMES[region]}`
+ : currentUrl.origin
+
+ return `${adminOrigin}/admin/posthog/user/${userId}/change/`
+}
diff --git a/products/customer_analytics/frontend/components/Accounts/accountRelatedUsersLogic.test.ts b/products/customer_analytics/frontend/components/Accounts/accountRelatedUsersLogic.test.ts
index 12387468af30..db0f5c968539 100644
--- a/products/customer_analytics/frontend/components/Accounts/accountRelatedUsersLogic.test.ts
+++ b/products/customer_analytics/frontend/components/Accounts/accountRelatedUsersLogic.test.ts
@@ -4,7 +4,7 @@ import posthog from 'posthog-js'
import api, { CountedPaginatedResponse } from 'lib/api'
import { initKeaTests } from '~/test/init'
-import type { OrganizationMemberType } from '~/types'
+import { OrganizationMemberType, Region } from '~/types'
import { accountRelatedUsersLogic, PAGE_SIZE } from './accountRelatedUsersLogic'
@@ -13,6 +13,7 @@ const buildMember = (overrides: Partial<OrganizationMemberType> = {}): Organizat
id: 'membership-1',
level: 1,
user: {
+ id: 1,
uuid: 'user-uuid-1',
distinct_id: 'distinct-1',
first_name: 'Alex',
@@ -44,14 +45,17 @@ describe('accountRelatedUsersLogic', () => {
logic?.unmount()
})
- it('loads the first page of organization members for the account external id', async () => {
- const response = buildResponse([buildMember()], 1)
+ it('loads the first page of US organization members for the account external id', async () => {
+ const member = buildMember()
+ const response = buildResponse([member], 1)
const listForOrg = jest.spyOn(api.organizationMembers, 'listForOrg').mockResolvedValue(response)
logic = accountRelatedUsersLogic({ externalId: 'org-uuid' })
logic.mount()
- await expectLogic(logic).toFinishAllListeners().toMatchValues({ membersResponse: response })
+ await expectLogic(logic)
+ .toFinishAllListeners()
+ .toMatchValues({ membersResponse: { ...response, results: [{ ...member, region: Region.US }] } })
expect(listForOrg).toHaveBeenCalledWith('org-uuid', { limit: PAGE_SIZE, offset: 0 })
})
@@ -81,6 +85,7 @@ describe('accountRelatedUsersLogic', () => {
})
const buildEuRow = (n: number): unknown[] => [
+ 100 + n,
`eu-m-${n}`,
`First${n}`,
`Last${n}`,
@@ -100,8 +105,16 @@ describe('accountRelatedUsersLogic', () => {
expect(logic.values.membersResponse).toMatchObject({
count: 2,
results: [
- { id: 'eu-m-1', user: { first_name: 'First1', email: '[email protected]', distinct_id: 'did-1' } },
- { id: 'eu-m-2', user: { first_name: 'First2', email: '[email protected]', distinct_id: 'did-2' } },
+ {
+ id: 'eu-m-1',
+ user: { id: 101, first_name: 'First1', email: '[email protected]', distinct_id: 'did-1' },
+ region: Region.EU,
+ },
+ {
+ id: 'eu-m-2',
+ user: { id: 102, first_name: 'First2', email: '[email protected]', distinct_id: 'did-2' },
+ region: Region.EU,
+ },
],
})
})
diff --git a/products/customer_analytics/frontend/components/Accounts/accountRelatedUsersLogic.ts b/products/customer_analytics/frontend/components/Accounts/accountRelatedUsersLogic.ts
index cc261ff9440f..f3c9e56f0887 100644
--- a/products/customer_analytics/frontend/components/Accounts/accountRelatedUsersLogic.ts
+++ b/products/customer_analytics/frontend/components/Accounts/accountRelatedUsersLogic.ts
@@ -7,12 +7,14 @@ import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'
import { HogQLQueryResponse, NodeKind } from '~/queries/schema/schema-general'
import { hogql } from '~/queries/utils'
-import { OrganizationMemberType } from '~/types'
+import { OrganizationMemberType, Region } from '~/types'
import { CUSTOMER_ANALYTICS_DEFAULT_QUERY_TAGS } from '../../constants'
// The account org-members endpoint returns a slim member shape — only id + user are serialized.
-export type AccountOrganizationMember = Pick<OrganizationMemberType, 'id' | 'user'>
+export type AccountOrganizationMember = Pick<OrganizationMemberType, 'id' | 'user'> & {
+ region: Region.US | Region.EU
+}
export const PAGE_SIZE = 5
@@ -43,7 +45,7 @@ const fetchEuMembers = async (externalId: string): Promise<AccountOrganizationMe
kind: NodeKind.HogQLQuery,
tags: CUSTOMER_ANALYTICS_DEFAULT_QUERY_TAGS,
query: hogql`
- select membership_id, first_name, last_name, email, distinct_id
+ select user_id, membership_id, first_name, last_name, email, distinct_id
from eu_org_members
where organization_id = ${externalId}
order by joined_at desc
@@ -52,13 +54,15 @@ const fetchEuMembers = async (externalId: string): Promise<AccountOrganizationMe
})) as HogQLQueryResponse
const rows = (response.results ?? []) as unknown[][]
return rows.map((row) => ({
- id: String(row[0]),
+ id: String(row[1]),
user: {
- first_name: (row[1] as string | null) ?? '',
- last_name: (row[2] as string | null) ?? '',
- email: (row[3] as string | null) ?? '',
- distinct_id: (row[4] as string | null) ?? '',
+ id: Number(row[0]),
+ first_name: (row[2] as string | null) ?? '',
+ last_name: (row[3] as string | null) ?? '',
+ email: (row[4] as string | null) ?? '',
+ distinct_id: (row[5] as string | null) ?? '',
} as AccountOrganizationMember['user'],
+ region: Region.EU,
}))
} catch (error) {
if (!isExpectedMissingViewError(error)) {
@@ -92,10 +96,10 @@ export interface accountRelatedUsersLogicActions {
errorObject?: any
}
loadMembersSuccess: (
- membersResponse: CountedPaginatedResponse<Pick<OrganizationMemberType, 'id' | 'user'>>,
+ membersResponse: CountedPaginatedResponse<AccountOrganizationMember>,
payload?: any
) => {
- membersResponse: CountedPaginatedResponse<Pick<OrganizationMemberType, 'id' | 'user'>>
+ membersResponse: CountedPaginatedResponse<AccountOrganizationMember>
payload?: any
}
setPage: (page: number) => {
@@ -146,7 +150,10 @@ export const accountRelatedUsersLogic = kea<accountRelatedUsersLogicType>([
})
breakpoint()
if (response.count > 0) {
- return response
+ return {
+ ...response,
+ results: response.results.map((member) => ({ ...member, region: Region.US })),
+ }
}
const euMembers = await fetchEuMembers(props.externalId)
breakpoint()
@@ -154,7 +161,7 @@ export const accountRelatedUsersLogic = kea<accountRelatedUsersLogicType>([
cache.euMembers = euMembers
return paginateMembers(euMembers, values.page)
}
- return response
+ return { ...response, results: [] }
} catch (error) {
if (!isBreakpoint(error as Error)) {
posthog.captureException(error as Error, {
diff --git a/products/customer_analytics/frontend/components/Accounts/constants.ts b/products/customer_analytics/frontend/components/Accounts/constants.ts
index 1f0ceed06a48..9aead74dfee2 100644
--- a/products/customer_analytics/frontend/components/Accounts/constants.ts
+++ b/products/customer_analytics/frontend/components/Accounts/constants.ts
@@ -51,6 +51,7 @@ export const AccountsEvents = {
UsageSeriesToggled: 'customer analytics account usage series toggled',
UsageSeriesBulkToggled: 'customer analytics account usage series bulk toggled',
RelatedUserClicked: 'customer analytics account related user clicked',
+ RelatedUserAdminOpened: 'customer analytics account related user admin opened',
OpportunityClicked: 'customer analytics account opportunity clicked',
SummaryCadenceChanged: 'customer analytics account summary cadence changed',
SummaryExpanded: 'customer analytics account summary expanded',