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

Sync: Usage Pixels and Monitoring #4018

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

malmstein
Copy link
Contributor

@malmstein malmstein commented Dec 18, 2023

Task/Issue URL: https://app.asana.com/0/488551667048375/1206193954622385/f

Description

This PR adds the usage pixels for Sync

Steps to test this PR

Signup Direct
Fired when user sets up a sync account directly.

  • Create a new sync account
  • Verify “m.sync.signup.direct” pixel is sent

Signup Connect
Fired when user sets up a sync account from connect flow. You’ll need two devices for this one.

  • Device A - Open Sync Setup screen
  • Tap on Sync with another device
  • Device B- Open Sync Setup screen
  • Tap on Sync with another device
  • Device A - Read QR code present in Device B
  • Verify “m.sync.signup.connect” pixel is sent in Device B
  • Verify “m.sync.login” pixel is sent in Device A

Login - Entering Code
Fired when adding new device to existing account. You’ll need two devices for this one.

  • Device A - Create a new sync account
  • Copy the recovery code
  • Device B- Open Sync Setup screen
  • Tap on Sync with another device
  • Tap on Manually Enter Code
  • Paste code from Device A
  • Verify “m.sync.login” pixel is sent in Device B

Login - Scan QR
Fired when adding new device to existing account. You’ll need two devices for this one.

  • Device A - Create a new sync account
  • Navigate to Sync Settings
  • Device B- Open Sync Setup screen
  • Tap on Sync with another device
  • Scan QR Code from Device A
  • Verify “m.sync.login” pixel is sent in Device B

Login - Recover Account with Code
Fired when adding new device to existing account. You’ll need two devices for this one.

  • Device A - Create a new sync account
  • Copy the recovery code
  • Device B- Open Sync Setup screen
  • Tap on Recover Synced Data
  • Tap on Manually Enter Code
  • Paste code from Device A
  • Verify “m.sync.login” pixel is sent in Device B

Login - Recover Account with QR
Fired when adding new device to existing account. You’ll need two devices for this one.

  • Device A - Create a new sync account
  • Navigate to Sync Settings
  • Device B- Open Sync Setup screen
  • Tap on Recover Synced Data
  • Scan QR Code from Device A
  • Verify “m.sync.login” pixel is sent in Device B

Daily pixel
Fired for first sync on a given day.

  • Create a new sync account
  • Verify “m.sync.daily” pixel is sent
  • Close app
  • Open app again
  • Verify “m.sync.daily” pixel is NOT sent

@malmstein
Copy link
Contributor Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@malmstein malmstein force-pushed the feature/david/12-18-Sync_Pixels_and_Monitoring branch from db12e77 to fb28dd5 Compare December 19, 2023 09:23
@malmstein malmstein changed the title Sync: Pixels and Monitoring Sync: Usage Pixels and Monitoring Dec 19, 2023
@malmstein malmstein force-pushed the feature/david/12-18-Sync_Pixels_and_Monitoring branch 3 times, most recently from b513292 to 5faeb2b Compare December 20, 2023 21:27
@malmstein malmstein marked this pull request as ready for review December 20, 2023 21:35
@malmstein malmstein force-pushed the feature/david/12-18-Sync_Pixels_and_Monitoring branch from 5faeb2b to 0799bde Compare December 20, 2023 22:11
@malmstein malmstein force-pushed the feature/david/12-18-Sync_Pixels_and_Monitoring branch from 0799bde to 71aa730 Compare December 21, 2023 15:25
@joshliebe joshliebe self-assigned this Dec 21, 2023
@@ -25,6 +25,7 @@ import com.duckduckgo.sync.api.engine.SyncEngine.SyncTrigger.ACCOUNT_CREATION
import com.duckduckgo.sync.api.engine.SyncEngine.SyncTrigger.ACCOUNT_LOGIN
import com.duckduckgo.sync.crypto.*
import com.duckduckgo.sync.impl.Result.Error
import com.duckduckgo.sync.impl.Result.Success
Copy link
Contributor

Choose a reason for hiding this comment

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

A few unused imports in this file

Copy link
Contributor

@joshliebe joshliebe left a comment

Choose a reason for hiding this comment

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

Just some unused imports, otherwise LGTM and works as expected 🚀

@malmstein
Copy link
Contributor Author

Thanks @joshliebe !

@malmstein malmstein merged commit a0f0fdc into develop Dec 22, 2023
7 checks passed
@malmstein malmstein deleted the feature/david/12-18-Sync_Pixels_and_Monitoring branch December 22, 2023 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants