Skip to content

Added public address to event tracking#234

Merged
danilosilvackl merged 2 commits intomainfrom
ds-analytics-public-address
Jul 31, 2025
Merged

Added public address to event tracking#234
danilosilvackl merged 2 commits intomainfrom
ds-analytics-public-address

Conversation

@danilosilvackl
Copy link
Copy Markdown
Contributor

Added public address of the currently active account to the common context for analytics events
Screenshot 2025-07-30 at 16 48 26

@danilosilvackl danilosilvackl requested review from a team and CassioMG July 30, 2025 19:52
@danilosilvackl danilosilvackl self-assigned this Jul 30, 2025
@danilosilvackl danilosilvackl added the enhancement New feature or request label Jul 30, 2025
const { account } = useAuthenticationStore.getState();

const context: Record<string, unknown> = {
publicKey: account?.publicKey ?? "N/A",
Copy link
Copy Markdown
Contributor Author

@danilosilvackl danilosilvackl Jul 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should never fall on the "N/A" but in case we experience any race issues I added this fallback here

Comment thread src/services/analytics/core.ts Outdated
Co-authored-by: Cássio Marcos Goulart <3228151+CassioMG@users.noreply.github.com>
@danilosilvackl danilosilvackl merged commit 09ed9ed into main Jul 31, 2025
2 checks passed
@danilosilvackl danilosilvackl deleted the ds-analytics-public-address branch July 31, 2025 14:01
@github-actions github-actions Bot mentioned this pull request Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants