feat: track Memind product analytics
This commit is contained in:
@@ -372,6 +372,7 @@ export function ChatView({
|
||||
<button
|
||||
type="button"
|
||||
className="header-icon-btn"
|
||||
data-analytics-action="chat_new"
|
||||
aria-label="新聊天"
|
||||
title="新聊天"
|
||||
onClick={() => void handleNewSession()}
|
||||
@@ -386,7 +387,7 @@ export function ChatView({
|
||||
</svg>
|
||||
</button>
|
||||
{onOpenAdmin && (
|
||||
<button type="button" className="ghost-btn" onClick={onOpenAdmin}>
|
||||
<button type="button" className="ghost-btn" data-analytics-action="open_admin" onClick={onOpenAdmin}>
|
||||
管理
|
||||
</button>
|
||||
)}
|
||||
@@ -395,6 +396,7 @@ export function ChatView({
|
||||
ref={spaceButtonRef}
|
||||
type="button"
|
||||
className="ghost-btn"
|
||||
data-analytics-action="open_mindspace"
|
||||
onClick={() => onOpenSpace?.()}
|
||||
>
|
||||
我的空间
|
||||
@@ -402,7 +404,7 @@ export function ChatView({
|
||||
)}
|
||||
{user && <WechatAccountButton returnTo={window.location.pathname} />}
|
||||
{onLogout && (
|
||||
<button type="button" className="ghost-btn logout-btn" onClick={onLogout}>
|
||||
<button type="button" className="ghost-btn logout-btn" data-analytics-action="logout" onClick={onLogout}>
|
||||
登出
|
||||
</button>
|
||||
)}
|
||||
@@ -429,6 +431,7 @@ export function ChatView({
|
||||
<button
|
||||
type="button"
|
||||
className="header-icon-btn"
|
||||
data-analytics-action="chat_new"
|
||||
aria-label="新聊天"
|
||||
title="新聊天"
|
||||
onClick={() => void handleNewSession()}
|
||||
@@ -446,6 +449,7 @@ export function ChatView({
|
||||
<button
|
||||
type="button"
|
||||
className="header-icon-btn"
|
||||
data-analytics-action="open_mindspace"
|
||||
aria-label="我的空间"
|
||||
title="我的空间"
|
||||
onClick={() => onOpenSpace?.()}
|
||||
|
||||
Reference in New Issue
Block a user