8000 [🔙] NT-843 Project Page Pledge Button Clicked event by eoji · Pull Request #736 · kickstarter/android-oss · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[🔙] NT-843 Project Page Pledge Button Clicked event #736

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

Merged
merged 1 commit into from
Feb 13, 2020
Merged

Conversation

eoji
Copy link
Contributor
@eoji eoji commented Feb 6, 2020

📲 What

Adding Project Page Pledge Button Clicked event.

🤔 Why

We have new Back a Project events.

🛠 How

  • Added LakeEvent.PROJECT_PAGE_PLEDGE_BUTTON_CLICKED with value "Project Page Pledge Button Clicked"
  • Added Koala.trackProjectPagePledgeButtonClicked
  • Tracking when a user clicks the "Back this project" button in ProjectViewModel
  • Added tests in ProjectViewModelTest

👀 See

No visual changes.

📋 QA

So many ways 2 QA:

  • ktk the staging lake
  • check the Logcat in Android Studio
  • Look at the dev project in Amplitude

Story 📖

NT-843

…r clicks the Back this project button

Added LakeEvent.PROJECT_PAGE_PLEDGE_BUTTON_CLICKED
Tracking when a user clicks the Back this project button in ProjectViewModel
Added tests in ProjectViewModelTest
@eoji eoji requested a review from justinswart February 6, 2020 19:57
val refTagsAndProject = Observable.combineLatest<RefTag, RefTag, Project, RefTagsAndProject>(refTag, cookieRefTag, currentProject)
{ refTagFromIntent, refTagFromCookie, project -> RefTagsAndProject(refTagFromIntent, refTagFromCookie, project) }
.filter { it.project.hasRewards() }
.take(1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need the take(1) with the takeWhen further down?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think so because currentProject emits again when the Project gets refreshed and we don't want to track this screen view again for those refreshes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh right - I guess in this case it wouldn't matter because the event doesn't track based on the screen refreshing but on the button press. Either way 🤷‍♂

@eoji eoji merged commit 7126e33 into master Feb 13, 2020
@eoji eoji deleted the NT-843 branch February 13, 2020 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0