Add isLocation to ComposerEvent analytics events (#11187)
This commit is contained in:
parent
90b572f074
commit
54ffce9d20
3 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,7 @@ export async function sendMessage(
|
|||
const posthogEvent: ComposerEvent = {
|
||||
eventName: "Composer",
|
||||
isEditing: false,
|
||||
isLocation: false,
|
||||
isReply: Boolean(replyToEvent),
|
||||
// TODO thread
|
||||
inThread: relation?.rel_type === THREAD_RELATION_TYPE.name,
|
||||
|
@ -199,6 +200,7 @@ export async function editMessage(
|
|||
PosthogAnalytics.instance.trackEvent<ComposerEvent>({
|
||||
eventName: "Composer",
|
||||
isEditing: true,
|
||||
isLocation: false,
|
||||
inThread: Boolean(editedEvent?.getThread()),
|
||||
isReply: Boolean(editedEvent.replyEventId),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue