From 6a06cc08eb157b3e1fada81148664cc9afb14d0d Mon Sep 17 00:00:00 2001 From: Janne Mareike Koschinski Date: Tue, 3 May 2022 13:41:52 +0200 Subject: [PATCH] welcome screen: add analytics to mini avatar upload --- src/components/structures/HomePage.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/structures/HomePage.tsx b/src/components/structures/HomePage.tsx index a3aec945c138..6facd941030e 100644 --- a/src/components/structures/HomePage.tsx +++ b/src/components/structures/HomePage.tsx @@ -74,7 +74,10 @@ const UserWelcomeTop = () => { hasAvatar={!!ownProfile.avatarUrl} hasAvatarLabel={_tDom("Great, that'll help people know it's you")} noAvatarLabel={_tDom("Add a photo so people know it's you.")} - setAvatarUrl={url => cli.setAvatarUrl(url)} + setAvatarUrl={async url => { + PosthogTrackers.trackInteraction("WebHomeMiniAvatarUploadButton"); + await cli.setAvatarUrl(url); + }} isUserAvatar >