Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/view only analytics #12424

Merged
merged 3 commits into from
May 16, 2024
Merged

Feat/view only analytics #12424

merged 3 commits into from
May 16, 2024

Conversation

matejkriz
Copy link
Member

Description

Adding analytics for View-only feature and an easy way of debugging analytics reporting.

Related Issue

Resolve #11890

Screenshots:

image

@matejkriz matejkriz requested a review from a team as a code owner May 15, 2024 17:04
@matejkriz matejkriz added the mobile Suite Lite issues and PRs label May 15, 2024
Copy link
Contributor

@vytick vytick left a comment

Choose a reason for hiding this comment

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

lgtm 🚀

I have one nit Q, but feel free to ignore and resolve if you decide it does not matter

@@ -11,5 +11,10 @@ export const analytics = new Analytics<SuiteNativeAnalyticsEvent>({

if (isDebugEnv()) {
// Do not send analytics in development
analytics.report = () => {};
analytics.report = (event: Event) => {
if (process.env.EXPO_PUBLIC_IS_ANALYTICS_LOGGER_ENABLED) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i this condition (and env variable) needed when we only log this while isDebugEnv() ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I think it is still useful - mostly you don't care about analytics during development and you don't want console spammed by it...

@matejkriz matejkriz merged commit 4dbcf4f into develop May 16, 2024
24 of 25 checks passed
@matejkriz matejkriz deleted the feat/view-only-analytics branch May 16, 2024 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Suite Lite issues and PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

View only - analytics
2 participants