feat: track hashtags input usage

This commit is contained in:
2024-01-08 10:25:31 +00:00
parent 27210f91ae
commit 9ec27bcea3

View File

@ -173,6 +173,16 @@ export function NoteCreator() {
props ??= {};
props["zap-split"] = true;
}
if (note.hashTags.length > 0) {
props ??= {};
props["hashtags"] = true;
}
if (props) {
props["content-warning"] ??= false;
props["poll"] ??= false;
props["zap-split"] ??= false;
props["hashtags"] ??= false;
}
trackEvent("PostNote", props);
const events = (note.otherEvents ?? []).concat(ev);