feat: posthog version upgrade and added trackings (#24401)
* posthog version upgrade and calai banner tracking * disable posthog for EU * bunch more posthog tracking * Revert yarn.lock changes * add posthog package yarn changes * fix: add missing posthog import and fix lint warning in MemberInvitationModal Co-Authored-By: [email protected] <[email protected]> * fix: type check * cubic fixes * refactor * remove ui playground --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
42 files changed
+570
-271
No files matched your search
@@ -1,6 +1,7 @@
|
||||
|
||||
|
||||
import shuffle from "lodash/shuffle";
|
||||
import { useState, memo } from "react";
|
||||
import posthog from "posthog-js";
|
||||
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { localStorage } from "@calcom/lib/webstorage";
|
||||
@@ -226,6 +227,13 @@ function Tips() {
|
||||
thumbnailUrl={tip.thumbnailUrl}
|
||||
coverPhoto={tip.coverPhoto}
|
||||
mediaLink={isTopTip ? tip.mediaLink : undefined}
|
||||
mediaLinkOnClick={
|
||||
isTopTip
|
||||
? () => {
|
||||
posthog.capture("tip_video_clicked", tip);
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
title={t(tip.title)}
|
||||
description={t(tip.description)}
|
||||
learnMore={
|
||||
@@ -233,11 +241,22 @@ function Tips() {
|
||||
? {
|
||||
href: tip.href,
|
||||
text: t("learn_more"),
|
||||
onClick: () => {
|
||||
posthog.capture("tip_learn_more_clicked", tip);
|
||||
},
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
actionButton={
|
||||
isTopTip ? { onClick: () => handleRemoveItem(tip.id), child: t("dismiss") } : undefined
|
||||
isTopTip
|
||||
? {
|
||||
onClick: () => {
|
||||
posthog.capture("tip_dismiss_clicked", tip);
|
||||
handleRemoveItem(tip.id);
|
||||
},
|
||||
child: t("dismiss"),
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
containerProps={{
|
||||
tabIndex: isTopTip ? undefined : -1,
|
||||
|
||||
Reference in new issue
Block a user