diff --git a/app/src/main/java/io/lbry/browser/ui/channel/ChannelFormFragment.java b/app/src/main/java/io/lbry/browser/ui/channel/ChannelFormFragment.java index 6a3cc1461..721e8991c 100644 --- a/app/src/main/java/io/lbry/browser/ui/channel/ChannelFormFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/channel/ChannelFormFragment.java @@ -328,6 +328,14 @@ public void onSuccess(Claim claimResult) { logPublish.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } + if (!editMode) { + // channel created + Bundle bundle = new Bundle(); + bundle.putString("claim_id", claimResult.getClaimId()); + bundle.putString("claim_name", claimResult.getName()); + LbryAnalytics.logEvent(LbryAnalytics.EVENT_CHANNEL_CREATE, bundle); + } + Context context = getContext(); if (context instanceof MainActivity) { MainActivity activity = (MainActivity) context; diff --git a/app/src/main/java/io/lbry/browser/ui/following/FileViewFragment.java b/app/src/main/java/io/lbry/browser/ui/following/FileViewFragment.java index 9a00d2e33..9b06b7945 100644 --- a/app/src/main/java/io/lbry/browser/ui/following/FileViewFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/following/FileViewFragment.java @@ -479,6 +479,10 @@ public void onResume() { Context context = getContext(); Helper.setWunderbarValue(currentUrl, context); + if (context instanceof MainActivity) { + LbryAnalytics.setCurrentScreen((MainActivity) context, "File", "File"); + } + if (MainActivity.appPlayer != null) { if (MainActivity.playerReassigned) { setPlayerForPlayerView(); diff --git a/app/src/main/java/io/lbry/browser/ui/other/AboutFragment.java b/app/src/main/java/io/lbry/browser/ui/other/AboutFragment.java index bf7e75373..0923ad1be 100644 --- a/app/src/main/java/io/lbry/browser/ui/other/AboutFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/other/AboutFragment.java @@ -193,7 +193,7 @@ public void onResume() { Context context = getContext(); if (context instanceof MainActivity) { MainActivity activity = (MainActivity) context; - LbryAnalytics.setCurrentScreen(activity, "Settings", "Settings"); + LbryAnalytics.setCurrentScreen(activity, "About", "About"); if (!Lbry.SDK_READY) { activity.addSdkStatusListener(this); diff --git a/app/src/main/java/io/lbry/browser/ui/wallet/InvitesFragment.java b/app/src/main/java/io/lbry/browser/ui/wallet/InvitesFragment.java index 3d0ac7fae..1a0656eb6 100644 --- a/app/src/main/java/io/lbry/browser/ui/wallet/InvitesFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/wallet/InvitesFragment.java @@ -526,6 +526,12 @@ public void onSuccess(Claim claimResult) { logPublishTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } + // channel created + Bundle bundle = new Bundle(); + bundle.putString("claim_id", claimResult.getClaimId()); + bundle.putString("claim_name", claimResult.getName()); + LbryAnalytics.logEvent(LbryAnalytics.EVENT_CHANNEL_CREATE, bundle); + // add the claim to the channel list and set it as the selected item channelSpinnerAdapter.add(claimResult); channelSpinner.setSelection(channelSpinnerAdapter.getCount() - 1);