: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { ActivityLogItem } from 'lib/components/ActivityLog/humanizeActivity'
import { ActivityScope, InsightShortId } from '~/types'
export const teamActivityResponseJson: ActivityLogItem[] = [
{
user: {
first_name: 'Ben',
last_name: 'White',
email: '[email protected]',
},
unread: false,
is_system: false,
activity: 'updated',
item_id: '2',
scope: ActivityScope.TEAM,
detail: {
merge: null,
name: '🦔 PostHog App + Website',
type: undefined,
changes: [
{
type: ActivityScope.TEAM,
after: {
recordBody: false,
recordHeaders: false,
},
field: 'session_recording_network_payload_capture_config',
action: 'changed',
before: {
recordBody: false,
recordHeaders: true,
},
},
],
trigger: null,
short_id: null,
},
created_at: '2024-03-08T12:55:02.795667Z',
},
{
user: {
first_name: 'Paul',
last_name: "D'Ambra",
email: '[email protected]',
},
unread: false,
is_system: false,
activity: 'updated',
item_id: '2',
scope: ActivityScope.TEAM,
detail: {
merge: null,
name: '🦔 PostHog App + Website',
type: undefined,
changes: [
{
type: ActivityScope.TEAM,
after: {
recordBody: true,
recordHeaders: false,
},
field: 'session_recording_network_payload_capture_config',
action: 'changed',
before: {
recordBody: false,
recordHeaders: true,
},
},
],
trigger: null,
short_id: null,
},
created_at: '2024-03-11T14:36:31.179297Z',
},
{
user: {
first_name: 'sdavasdadadsadas',
last_name: '',
email: '[email protected]',
},
unread: false,
is_staff: false,
is_system: false,
activity: 'updated',
item_id: '1',
scope: ActivityScope.TEAM,
detail: {
name: 'Default Project',
type: undefined,
merge: null,
changes: [
{
type: ActivityScope.TEAM,
after: { poe_v2_enabled: true },
field: 'extra_settings',
action: 'created',
before: null,
},
],
trigger: null,
short_id: null,
},
created_at: '2024-02-08T19:23:53.530402Z',
},
{
user: {
first_name: 'sdavasdadadsadas',
last_name: '',
email: '[email protected]',
},
unread: false,
is_staff: false,
is_system: false,
activity: 'updated',
item_id: '1',
scope: ActivityScope.TEAM,
detail: {
name: 'Default Project',
type: undefined,
merge: null,
changes: [
{
type: ActivityScope.TEAM,
after: 2000,
field: 'session_recording_minimum_duration_milliseconds',
action: 'created',
before: null,
},
],
trigger: null,
short_id: null,
},
created_at: '2024-02-08T19:23:53.530402Z',
},
{
user: {
first_name: 'sdavasdadadsadas',
last_name: '',
email: '[email protected]',
},
unread: false,
is_staff: false,
is_system: false,
activity: 'updated',
item_id: '1',
scope: ActivityScope.TEAM,
detail: {
name: 'Default Project',
type: undefined,
merge: null,
changes: [
{
type: ActivityScope.TEAM,
after: {
record_canvas: true,
},
field: 'session_replay_config',
action: 'created',
before: null,
},
],
trigger: null,
short_id: null,
},
created_at: '2024-02-08T19:23:48.099540Z',
},
{
user: {
first_name: 'sdavasdadadsadas',
last_name: '',
email: '[email protected]',
},
unread: false,
is_staff: false,
is_system: false,
activity: 'updated',
item_id: '1',
scope: ActivityScope.TEAM,
detail: {
name: 'Default Project',
type: undefined,
merge: null,
changes: [
{
type: ActivityScope.TEAM,
after: true,
field: 'capture_console_log_opt_in',
action: 'changed',
before: false,
},
],
trigger: null,
short_id: null,
},
created_at: '2024-02-08T19:23:46.325979Z',
},
{
user: {
first_name: 'sdavasdadadsadas',
last_name: '',
email: '[email protected]',
},
unread: false,
is_staff: false,
is_system: false,
activity: 'updated',
item_id: '1',
scope: ActivityScope.TEAM,
detail: {
name: 'Default Project',
type: undefined,
merge: null,
changes: [
{
type: ActivityScope.TEAM,
after: false,
field: 'capture_console_log_opt_in',
action: 'changed',
before: true,
},
],
trigger: null,
short_id: null,
},
created_at: '2024-02-08T19:23:44.851511Z',
},
]
export const featureFlagsActivityResponseJson: ActivityLogItem[] = [
{
user: {
first_name: 'Neil',
email: '[email protected]',
},
activity: 'updated',
scope: ActivityScope.FEATURE_FLAG,
item_id: '2348',
detail: {
changes: [
{
type: ActivityScope.FEATURE_FLAG,
action: 'changed',
field: 'name',
before: 'starting',
after: 'finishing',
},
],
merge: null,
trigger: null,
name: 'cohort-filters',
short_id: null,
},
created_at: '2022-05-24T12:28:14.507709Z',
},
{
user: { first_name: 'James', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.FEATURE_FLAG,
item_id: '984',
detail: {
merge: null,
trigger: null,
changes: [
{ type: ActivityScope.FEATURE_FLAG, action: 'changed', field: 'active', before: false, after: true },
],
name: 'cloud-announcement',
},
created_at: '2022-03-20T15:26:58.006900Z',
},
{
user: { first_name: 'James', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.FEATURE_FLAG,
item_id: '984',
detail: {
merge: null,
trigger: null,
changes: [
{ type: ActivityScope.FEATURE_FLAG, action: 'changed', field: 'active', before: true, after: false },
],
name: 'cloud-announcement',
},
created_at: '2022-03-20T15:26:58.006900Z',
},
{
user: { first_name: 'Paul', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.FEATURE_FLAG,
item_id: '1353',
detail: {
merge: null,
trigger: null,
changes: [
{
type: ActivityScope.FEATURE_FLAG,
action: 'changed',
field: 'filters',
before: {
groups: [
{
properties: [
{ key: 'id', type: 'cohort', value: 98, operator: null },
{ key: 'id', type: 'cohort', value: 641, operator: null },
],
rollout_percentage: null,
},
{
properties: [
{
key: 'email',
type: ActivityScope.PERSON,
value: ['[email protected]'],
operator: 'exact',
},
],
rollout_percentage: null,
},
{
properties: [
{
key: 'email',
type: ActivityScope.PERSON,
value: ['[email protected]'],
operator: 'exact',
},
],
rollout_percentage: null,
},
{
properties: [{ key: 'id', type: 'cohort', value: 411, operator: null }],
rollout_percentage: 50,
},
],
multivariate: null,
},
after: {
groups: [
{
properties: [
{ key: 'id', type: 'cohort', value: 98, operator: null },
{ key: 'id', type: 'cohort', value: 641, operator: null },
],
rollout_percentage: null,
},
{
properties: [
{
key: 'email',
type: ActivityScope.PERSON,
value: ['[email protected]'],
operator: 'exact',
},
],
rollout_percentage: null,
},
{
properties: [
{
key: 'email',
type: ActivityScope.PERSON,
value: ['[email protected]'],
operator: 'exact',
},
],
rollout_percentage: null,
},
{
properties: [{ key: 'id', type: 'cohort', value: 411, operator: null }],
rollout_percentage: 100,
},
],
multivariate: null,
},
},
],
name: 'fantastic_new_feature',
},
created_at: '2022-03-21T12:48:27.811085Z',
},
{
user: { first_name: 'James', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.FEATURE_FLAG,
item_id: '984',
detail: {
merge: null,
trigger: null,
changes: [
{
type: ActivityScope.FEATURE_FLAG,
action: 'changed',
field: 'filters',
before: {
groups: [
{
properties: [
{ key: 'realm', type: ActivityScope.PERSON, value: ['cloud'], operator: 'exact' },
],
rollout_percentage: null,
},
],
multivariate: {
variants: [
{
key: 'Dec 7: Event ingestion is delayed due to ongoing AWS issues. No events are being dropped, but we are unable to process them at the moment',
name: 'AWS issues impacting plugin server',
rollout_percentage: 100,
},
],
},
},
after: {
groups: [
{
properties: [
{ key: 'realm', type: ActivityScope.PERSON, value: ['cloud'], operator: 'exact' },
],
rollout_percentage: null,
},
],
multivariate: {
variants: [
{
key: 'Mar_20_Some_counts_and_aggregates_may_be_slightly_low_due_to_maintenance_with_ClickHouse_This_will_be_resolved_by_Monday',
name: 'ClickHouse Maintenance',
rollout_percentage: 100,
},
],
},
},
},
],
name: 'cloud-announcement',
},
created_at: '2022-03-20T15:26:13.314035Z',
},
{
user: { first_name: 'Alex Kim', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.FEATURE_FLAG,
item_id: '1474',
detail: {
merge: null,
trigger: null,
changes: [
{
type: ActivityScope.FEATURE_FLAG,
action: 'changed',
field: 'filters',
before: {
groups: [
{
properties: [{ key: 'id', type: 'cohort', value: 98, operator: null }],
rollout_percentage: null,
},
],
multivariate: null,
},
after: {
groups: [
{
properties: [{ key: 'id', type: 'cohort', value: 98, operator: null }],
rollout_percentage: null,
},
{
properties: [{ key: 'id', type: 'cohort', value: 411, operator: null }],
rollout_percentage: 50,
},
],
multivariate: null,
},
},
],
name: 'data-management',
},
created_at: '2022-03-19T16:58:47.747634Z',
},
{
user: { first_name: 'Alex Kim', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.FEATURE_FLAG,
item_id: '1474',
detail: {
merge: null,
trigger: null,
changes: [
{
type: ActivityScope.FEATURE_FLAG,
action: 'changed',
field: 'filters',
before: {
groups: [
{
properties: [
{
key: 'id',
type: 'cohort',
value: 98,
operator: null,
},
],
rollout_percentage: null,
},
{
properties: [],
rollout_percentage: 30,
},
],
multivariate: null,
},
after: {
groups: [
{
properties: [
{
key: 'id',
type: 'cohort',
value: 98,
operator: null,
},
],
rollout_percentage: null,
},
],
multivariate: null,
},
},
],
name: 'data-management',
},
created_at: '2022-03-21T15:58:55.792014Z',
},
{
user: { first_name: 'Neil', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.FEATURE_FLAG,
item_id: '1846',
detail: {
merge: null,
trigger: null,
changes: [
{ type: ActivityScope.FEATURE_FLAG, action: 'changed', field: 'deleted', before: false, after: true },
],
name: 'test-ff',
},
created_at: '2022-03-21T15:50:25.894422Z',
},
{
user: { first_name: 'Neil', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.FEATURE_FLAG,
item_id: '1846',
detail: {
merge: null,
trigger: null,
changes: [
{ type: ActivityScope.FEATURE_FLAG, action: 'changed', field: 'deleted', before: true, after: false },
],
name: 'test-ff',
},
created_at: '2022-03-21T15:50:25.894422Z',
},
{
user: { first_name: 'Neil', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.FEATURE_FLAG,
item_id: '1846',
detail: {
merge: null,
trigger: null,
changes: [
{
type: ActivityScope.FEATURE_FLAG,
action: 'changed',
field: 'key',
before: 'the-original-key',
after: 'the-new-key',
},
],
name: 'test-ff',
},
created_at: '2022-03-21T15:50:25.894422Z',
},
{
user: { first_name: 'Neil', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.FEATURE_FLAG,
item_id: '1846',
detail: {
merge: null,
trigger: null,
changes: [
{
type: ActivityScope.FEATURE_FLAG,
action: 'changed',
field: 'ensure_experience_continuity',
before: false,
after: true,
},
],
name: 'test-ff',
},
created_at: '2022-03-21T15:50:25.894422Z',
},
{
user: { first_name: 'Neil', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.FEATURE_FLAG,
item_id: '1846',
detail: {
merge: null,
trigger: null,
changes: [
{
type: ActivityScope.FEATURE_FLAG,
action: 'changed',
field: 'ensure_experience_continuity',
before: true,
after: false,
},
],
name: 'test-ff',
},
created_at: '2022-03-21T15:50:25.894422Z',
},
{
user: { first_name: 'Paul', email: '[email protected]' },
activity: 'created',
scope: ActivityScope.FEATURE_FLAG,
item_id: '1825',
detail: {
merge: null,
trigger: null,
changes: null,
name: 'feature_that_will_dazzle',
},
created_at: '2022-03-21T13:22:14.605131Z',
},
]
export const personActivityResponseJson: ActivityLogItem[] = [
{
user: { first_name: 'Paul', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.PERSON,
item_id: '502792727',
detail: {
changes: [
{
type: ActivityScope.PERSON,
action: 'changed',
field: 'properties',
before: undefined,
after: undefined,
},
],
merge: null,
trigger: null,
name: null,
short_id: null,
},
created_at: '2022-06-23T20:53:09.806219Z',
},
{
user: { first_name: 'Paul', email: '[email protected]' },
activity: 'people_merged_into',
scope: ActivityScope.PERSON,
item_id: '502792727',
detail: {
changes: null,
merge: {
type: ActivityScope.PERSON,
source: [
{
id: '01819231-75a0-0000-467e-a4be57b44a37',
name: '1819231753016b-0b04ab5a3ab143-3297640-75300-181923175313d4',
uuid: '01819231-75a0-0000-467e-a4be57b44a37',
created_at: '2022-06-23T20:12:03.828000Z',
properties: {
$geoip_latitude: 51.5368,
$geoip_city_name: 'London',
$geoip_longitude: -0.6718,
$geoip_time_zone: 'Europe/London',
$initial_pathname: '/',
$geoip_postal_code: 'SL1',
$geoip_country_code: 'GB',
$geoip_country_name: 'United Kingdom',
$initial_current_url: 'https://pauldambra.dev/',
$initial_device_type: 'Desktop',
$geoip_continent_code: 'EU',
$geoip_continent_name: 'Europe',
$initial_geoip_latitude: 51.5368,
$initial_browser_version: null,
$initial_geoip_city_name: 'London',
$initial_geoip_longitude: -0.6718,
$initial_geoip_time_zone: 'Europe/London',
$geoip_subdivision_1_code: 'ENG',
$geoip_subdivision_1_name: 'England',
$initial_geoip_postal_code: 'SL1',
$initial_geoip_country_code: 'GB',
$initial_geoip_country_name: 'United Kingdom',
$initial_geoip_continent_code: 'EU',
$initial_geoip_continent_name: 'Europe',
$initial_geoip_subdivision_1_code: 'ENG',
$initial_geoip_subdivision_1_name: 'England',
},
distinct_ids: ['1819231753016b-0b04ab5a3ab143-3297640-75300-181923175313d4'],
},
{
id: '01819220-aa0b-0000-6992-fad9de0ea4dc',
name: '1819220a99e5ec-0005fee037f8d2-3297640-75300-1819220a99f6b7',
uuid: '01819220-aa0b-0000-6992-fad9de0ea4dc',
created_at: '2022-06-23T19:53:43.137000Z',
properties: {
$geoip_latitude: 51.5368,
$geoip_city_name: 'London',
$geoip_longitude: -0.6718,
$geoip_time_zone: 'Europe/London',
$initial_pathname: '/',
$geoip_postal_code: 'SL1',
$geoip_country_code: 'GB',
$geoip_country_name: 'United Kingdom',
$initial_current_url: 'https://pauldambra.dev/',
$initial_device_type: 'Desktop',
$geoip_continent_code: 'EU',
$geoip_continent_name: 'Europe',
$initial_geoip_latitude: 51.5368,
$initial_browser_version: null,
$initial_geoip_city_name: 'London',
$initial_geoip_longitude: -0.6718,
$initial_geoip_time_zone: 'Europe/London',
$geoip_subdivision_1_code: 'ENG',
$geoip_subdivision_1_name: 'England',
$initial_geoip_postal_code: 'SL1',
$initial_geoip_country_code: 'GB',
$initial_geoip_country_name: 'United Kingdom',
$initial_geoip_continent_code: 'EU',
$initial_geoip_continent_name: 'Europe',
$initial_geoip_subdivision_1_code: 'ENG',
$initial_geoip_subdivision_1_name: 'England',
},
distinct_ids: ['1819220a99e5ec-0005fee037f8d2-3297640-75300-1819220a99f6b7'],
},
{
id: '01819218-92f2-0000-7132-90a079001dc9',
name: '18192189287517-0e66a695611002-3297640-75300-18192189288790',
uuid: '01819218-92f2-0000-7132-90a079001dc9',
created_at: '2022-06-23T19:44:52.944000Z',
properties: {
$geoip_latitude: 51.5368,
$geoip_city_name: 'London',
$geoip_longitude: -0.6718,
$geoip_time_zone: 'Europe/London',
$initial_pathname: '/',
$geoip_postal_code: 'SL1',
$geoip_country_code: 'GB',
$geoip_country_name: 'United Kingdom',
$initial_current_url: 'https://pauldambra.dev/',
$initial_device_type: 'Desktop',
$geoip_continent_code: 'EU',
$geoip_continent_name: 'Europe',
$initial_geoip_latitude: 51.5368,
$initial_browser_version: null,
$initial_geoip_city_name: 'London',
$initial_geoip_longitude: -0.6718,
$initial_geoip_time_zone: 'Europe/London',
$geoip_subdivision_1_code: 'ENG',
$geoip_subdivision_1_name: 'England',
$initial_geoip_postal_code: 'SL1',
$initial_geoip_country_code: 'GB',
$initial_geoip_country_name: 'United Kingdom',
$initial_geoip_continent_code: 'EU',
$initial_geoip_continent_name: 'Europe',
$initial_geoip_subdivision_1_code: 'ENG',
$initial_geoip_subdivision_1_name: 'England',
},
distinct_ids: ['18192189287517-0e66a695611002-3297640-75300-18192189288790'],
},
{
id: '01819208-c74f-0000-75e7-7d3dc16da26b',
name: '1819208c6ed32c-0e427ef09bbae-3297640-75300-1819208c6ee74b',
uuid: '01819208-c74f-0000-75e7-7d3dc16da26b',
created_at: '2022-06-23T19:27:37.771000Z',
properties: {
$geoip_latitude: 51.5368,
$geoip_city_name: 'London',
$geoip_longitude: -0.6718,
$geoip_time_zone: 'Europe/London',
$initial_pathname: '/',
$geoip_postal_code: 'SL1',
$geoip_country_code: 'GB',
$geoip_country_name: 'United Kingdom',
$initial_current_url: 'https://pauldambra.dev/',
$initial_device_type: 'Desktop',
$geoip_continent_code: 'EU',
$geoip_continent_name: 'Europe',
$initial_geoip_latitude: 51.5368,
$initial_browser_version: null,
$initial_geoip_city_name: 'London',
$initial_geoip_longitude: -0.6718,
$initial_geoip_time_zone: 'Europe/London',
$geoip_subdivision_1_code: 'ENG',
$geoip_subdivision_1_name: 'England',
$initial_geoip_postal_code: 'SL1',
$initial_geoip_country_code: 'GB',
$initial_geoip_country_name: 'United Kingdom',
$initial_geoip_continent_code: 'EU',
$initial_geoip_continent_name: 'Europe',
$initial_geoip_subdivision_1_code: 'ENG',
$initial_geoip_subdivision_1_name: 'England',
},
distinct_ids: ['1819208c6ed32c-0e427ef09bbae-3297640-75300-1819208c6ee74b'],
},
],
target: {
id: '502792727',
name: '1819220a99e5ec-0005fee037f8d2-3297640-75300-1819220a99f6b7',
uuid: '01819256-1d25-0000-4ed7-ea437589ada7',
created_at: '2022-06-23T20:52:06.053733Z',
properties: {},
distinct_ids: [
'1819220a99e5ec-0005fee037f8d2-3297640-75300-1819220a99f6b7',
'1819231753016b-0b04ab5a3ab143-3297640-75300-181923175313d4',
'1819249450126c-0162012e0be59d-3297640-75300-1819249450238e',
],
},
},
trigger: null,
name: null,
short_id: null,
},
created_at: '2022-06-23T20:52:53.637157Z',
},
{
user: { first_name: 'Paul', email: '[email protected]' },
activity: 'split_person',
scope: ActivityScope.PERSON,
item_id: '502792727',
detail: {
changes: [
{
type: ActivityScope.PERSON,
action: 'split',
field: undefined,
before: undefined,
after: {
distinct_ids: [
'1819208c6ed32c-0e427ef09bbae-3297640-75300-1819208c6ee74b',
'18192189287517-0e66a695611002-3297640-75300-18192189288790',
'1819220a99e5ec-0005fee037f8d2-3297640-75300-1819220a99f6b7',
'1819231753016b-0b04ab5a3ab143-3297640-75300-181923175313d4',
'1819249450126c-0162012e0be59d-3297640-75300-1819249450238e',
],
},
},
],
merge: null,
trigger: null,
name: null,
short_id: null,
},
created_at: '2022-06-23T20:53:17.620277Z',
},
]
export const insightsActivityResponseJson: ActivityLogItem[] = [
{
user: {
first_name: 'Employee 427',
email: '[email protected]',
},
activity: 'updated',
scope: ActivityScope.INSIGHT,
item_id: '39',
detail: {
merge: null,
changes: [
{
type: ActivityScope.INSIGHT,
action: 'changed',
field: 'derived_name',
before: "Pageview count by event's $feature/auto-redirect",
after: "Pageview count by event's Browser Version",
},
{
type: ActivityScope.INSIGHT,
action: 'changed',
field: 'filters',
before: {
events: [
{
id: '$pageview',
math: 'total',
name: '$pageview',
type: 'events',
order: 0,
},
],
display: 'ActionsLineGraph',
insight: 'TRENDS',
interval: 'day',
breakdown: '$feature/auto-redirect',
date_from: '-7d',
entity_type: 'events',
breakdown_type: 'event',
filter_test_accounts: false,
},
after: {
events: [
{
id: '$pageview',
math: 'total',
name: '$pageview',
type: 'events',
order: 0,
},
],
display: 'ActionsLineGraph',
insight: 'TRENDS',
interval: 'day',
breakdown: '$browser_version',
date_from: '-7d',
entity_type: 'events',
breakdown_type: 'event',
filter_test_accounts: false,
breakdown_histogram_bin_count: 10,
},
},
],
trigger: null,
name: "Pageview count by event's Browser Version",
short_id: 'T6G3KTkh' as InsightShortId,
},
created_at: '2023-08-21T20:47:45.898432Z',
},
{
user: {
first_name: 'Cory',
email: '[email protected]',
},
activity: 'updated',
scope: ActivityScope.INSIGHT,
item_id: '999296',
detail: {
merge: null,
changes: [
{
type: ActivityScope.INSIGHT,
action: 'changed',
field: 'derived_name',
before: 'from SQL into a data table.',
after: "Pageview unique sessions by person's $email",
},
{
type: ActivityScope.INSIGHT,
action: 'changed',
field: 'filters',
before: {},
after: {
events: [
{
id: '$pageview',
math: 'unique_session',
name: '$pageview',
type: 'events',
order: 0,
},
],
actions: [],
display: 'ActionsLineGraph',
insight: 'TRENDS',
interval: 'month',
breakdown: '$email',
new_entity: [],
properties: [],
breakdown_type: ActivityScope.PERSON,
filter_test_accounts: false,
},
},
{
type: ActivityScope.INSIGHT,
action: 'deleted',
field: 'query',
before: {
full: true,
kind: 'DataTableNode',
source: {
kind: 'HogQLQuery',
query: ' select event,\n person.properties.email,\n properties.$browser,\n count()\n from events\n where timestamp > now () - interval 1 day\n and person.properties.email is not null\n group by event,\n properties.$browser,\n person.properties.email\n order by count() desc\n limit 100',
},
},
after: null,
},
],
trigger: null,
name: 'Users by session count',
short_id: 'XxmUm8A6' as InsightShortId,
},
created_at: '2023-04-20T18:35:14.033429Z',
},
{
user: {
first_name: 'Employee 427',
email: '[email protected]',
},
activity: 'updated',
scope: ActivityScope.INSIGHT,
item_id: '40',
detail: {
merge: null,
changes: [
{
type: ActivityScope.INSIGHT,
action: 'changed',
field: 'query',
after: {
kind: 'InsightVizNode',
source: {
kind: 'TrendsQuery',
series: [
{ kind: 'EventsNode', event: '$pageview', name: '$pageview', math: 'total' },
{ kind: 'EventsNode', event: 'signed up', name: 'signed up', math: 'dau' },
],
interval: 'day',
dateRange: { date_from: '-30d' },
properties: [{ key: '$browser', type: 'event', value: ['Chrome'], operator: 'exact' }],
breakdownFilter: { breakdown: '$browser', breakdown_type: 'event' },
trendsFilter: { display: 'ActionsLineGraph' },
},
},
},
],
trigger: null,
name: 'Pageviews and signups by browser',
short_id: 'HcLbVmQp' as InsightShortId,
},
created_at: '2023-04-21T09:12:44.033429Z',
},
{
user: {
first_name: 'Employee 427',
email: '[email protected]',
},
activity: 'updated',
scope: ActivityScope.INSIGHT,
item_id: '41',
detail: {
merge: null,
changes: [
{
type: ActivityScope.INSIGHT,
action: 'changed',
field: 'query',
after: {
kind: 'InsightVizNode',
source: {
kind: 'FunnelsQuery',
series: [
{
kind: 'EventsNode',
event: '$pageview',
name: '$pageview',
custom_name: 'Visited the site',
},
{ kind: 'EventsNode', event: 'signed up', name: 'signed up' },
],
dateRange: { date_from: '-14d' },
funnelsFilter: { funnelVizType: 'steps' },
},
},
},
],
trigger: null,
name: 'Signup funnel',
short_id: 'Zk3RtYw2' as InsightShortId,
},
created_at: '2023-04-21T09:14:02.033429Z',
},
{
user: { first_name: 'Cameron', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.INSIGHT,
item_id: '738061',
detail: {
changes: [{ type: ActivityScope.INSIGHT, action: 'changed', field: 'deleted', before: false, after: true }],
merge: null,
trigger: null,
name: 'Pageview count',
short_id: 'iVXqSrre' as InsightShortId,
},
created_at: '2022-05-03T15:27:29.072978Z',
},
{
user: {
first_name: 'System',
email: '[email protected]',
},
activity: 'exported for opengraph image',
scope: ActivityScope.INSIGHT,
item_id: '1102349',
detail: {
changes: [
{
type: ActivityScope.INSIGHT,
action: 'exported',
field: 'export_format',
before: null,
after: 'image/png',
},
],
trigger: null,
name: 'my amazing insight',
short_id: '02l6yZ1I' as InsightShortId,
type: undefined,
merge: null,
},
created_at: '2023-07-03T15:54:15.604336Z',
},
{
user: { first_name: 'Cameron', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.INSIGHT,
item_id: '738061',
detail: {
changes: [
{
type: ActivityScope.INSIGHT,
action: 'changed',
field: 'name',
before: 'original name',
after: 'cool insight',
},
],
merge: null,
trigger: null,
name: 'cool insight',
short_id: 'iVXqSrre' as InsightShortId,
},
created_at: '2022-05-03T15:27:20.265216Z',
},
{
user: { first_name: 'Michael', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.INSIGHT,
item_id: '738061',
detail: {
changes: [
{
type: ActivityScope.INSIGHT,
action: 'changed',
field: 'short_id',
before: 'wr34th',
after: 'iVXqSrre',
},
],
merge: null,
trigger: null,
name: 'Pageview count',
short_id: 'iVXqSrre' as InsightShortId,
},
created_at: '2022-05-03T15:27:14.031192Z',
},
{
user: { first_name: 'Michael', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.INSIGHT,
item_id: '738061',
detail: {
changes: [
{
type: ActivityScope.INSIGHT,
action: 'changed',
field: 'description',
before: 'something',
after: 'something better',
},
],
merge: null,
trigger: null,
name: 'Pageview count',
short_id: 'iVXqSrre' as InsightShortId,
},
created_at: '2022-05-03T15:27:14.031192Z',
},
{
user: { first_name: 'Michael', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.INSIGHT,
item_id: '738061',
detail: {
changes: [
{
type: ActivityScope.INSIGHT,
action: 'changed',
field: 'favorited',
before: false,
after: 'TRUE',
},
],
merge: null,
trigger: null,
name: 'Pageview count',
short_id: 'iVXqSrre' as InsightShortId,
},
created_at: '2022-05-03T15:27:14.031192Z',
},
{
user: { first_name: 'Michael', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.INSIGHT,
item_id: '738061',
detail: {
changes: [
{
type: ActivityScope.INSIGHT,
action: 'changed',
field: 'favorited',
before: 'TRUe',
after: 'fAlSe',
},
],
merge: null,
trigger: null,
name: 'Pageview count',
short_id: 'iVXqSrre' as InsightShortId,
},
created_at: '2022-05-03T15:27:14.031192Z',
},
{
user: {
first_name: 'Ben',
email: '[email protected]',
},
activity: 'updated',
scope: ActivityScope.INSIGHT,
item_id: '6',
detail: {
changes: [
{
type: ActivityScope.INSIGHT,
action: 'exported',
field: 'tags',
before: ['one', 'two', 'wrong', 'three'],
after: ['one', 'two', 'right', 'four'],
},
],
merge: null,
trigger: null,
name: 'Super B.I.',
short_id: 'KQhbLk2R' as InsightShortId,
},
created_at: '2022-06-24T14:53:24.194502Z',
},
{
user: {
first_name: 'Ben',
email: '[email protected]',
},
activity: 'exported',
scope: ActivityScope.INSIGHT,
item_id: '6',
detail: {
changes: [
{
type: ActivityScope.INSIGHT,
action: 'exported',
field: 'export_format',
before: undefined,
after: 'image/png',
},
],
merge: null,
trigger: null,
name: 'Super B.I.',
short_id: 'KQhbLk2R' as InsightShortId,
},
created_at: '2022-06-24T14:53:24.194502Z',
},
{
user: { first_name: 'Paul', email: '[email protected]' },
activity: 'updated',
scope: ActivityScope.INSIGHT,
item_id: '738061',
detail: {
name: 'DAU',
merge: null,
trigger: null,
changes: [
{
type: ActivityScope.INSIGHT,
after: {
events: [],
actions: [
{
id: '8917',
math: 'dau',
name: 'Popover or Notification',
type: 'actions',
order: 0,
properties: [],
custom_name: 'Extension',
math_property: null,
},
{
id: '14430',
math: 'dau',
name: 'appOpen OR onboardingOpen',
type: 'actions',
order: 1,
properties: [
{
key: 'nativeApplicationVersion',
type: 'event',
value: 'is_set',
operator: 'is_set',
},
],
custom_name: 'Mobile',
},
{
id: '13927',
math: 'dau',
name: 'Client Open',
type: 'actions',
order: 2,
custom_name: 'Total',
},
],
date_to: null,
display: 'ActionsLineGraph',
insight: 'TRENDS',
interval: 'day',
date_from: '-90d',
new_entity: [],
properties: [],
funnel_window_days: 14,
},
field: 'filters',
action: 'changed',
before: {
events: [],
actions: [
{
id: '8917',
math: 'dau',
name: 'Popover or Notification',
type: 'actions',
order: 0,
properties: [],
custom_name: 'Extension',
math_property: null,
},
{
id: '14430',
math: 'dau',
name: 'appOpen OR onboardingOpen',
type: 'actions',
order: 1,
properties: [],
custom_name: 'Mobile',
},
{
id: '13927',
math: 'dau',
name: 'Client Open',
type: 'actions',
order: 2,
custom_name: 'Total',
},
],
date_to: null,
display: 'ActionsLineGraph',
insight: 'TRENDS',
interval: 'day',
date_from: '-90d',
new_entity: [],
properties: [],
funnel_window_days: 14,
},
},
{ type: ActivityScope.INSIGHT, action: 'changed', field: 'name', before: 'cool insight', after: 'DAU' },
],
short_id: 'eRY9-Frr' as InsightShortId,
},
created_at: '2022-05-03T15:27:29.072978Z',
},
{
user: {
first_name: 'Ben',
email: '[email protected]',
},
activity: 'updated',
scope: ActivityScope.INSIGHT,
item_id: '6',
detail: {
changes: [
{
type: ActivityScope.INSIGHT,
action: 'exported',
field: 'dashboards',
before: [
{ id: 1, name: 'one' },
{ id: 2, name: 'two' },
{ id: 3, name: 'wrong' },
],
after: [
{ id: 1, name: 'one' },
{ id: 2, name: 'two' },
{ id: 4, name: 'right' },
{ id: 5, name: 'five' },
],
},
],
merge: null,
trigger: null,
name: 'Super B.I.',
short_id: 'KQhbLk2R' as InsightShortId,
},
created_at: '2022-06-24T14:53:24.194502Z',
},
]