fenix icon indicating copy to clipboard operation
fenix copied to clipboard

Send Mobile Activation Ping telemetry

Open cpeterso opened this issue 7 years ago • 13 comments

@vesta0 - This bug should be a Fenix MVP blocker.

Fennec telemetry shows 25% more installs than the Google Play Store does (bug 1483927). @fbertsch has specified a new Mobile Activation Ping (in bug 1501822) that includes a hash of the user's Google Ad ID in install/uninstall telemetry to count unique users and avoid double-counting reinstalls. We need to implement this new Mobile Activation Ping for both Fennec (bug 1534451) and Fenix.

Google Ad ID can be reset by users. Google's policy requirement is that all apps use this ID in lieu of any others for advertising. We are not using this for advertising so that policy should not apply to us.

fbertsch recommends that Fenix use Glean (and A-C's Glean component). We can then use the "Ping Format" section of the Mobile Activation Ping spec as a guideline for which metrics to implement.

Fenix Mobile Activation Ping spec: https://docs.google.com/document/d/1mYklPkL1LYnAnjfeyaiqXJ4uuui8r08GCgN30Iod53k/edit

┆Issue is synchronized with this Jira Task

cpeterso avatar Mar 14 '19 23:03 cpeterso

cc @bbinto

vesta0 avatar Mar 17 '19 20:03 vesta0

Based on my understanding, since integrating with Glean SDK is a must have for MVP, this should be covered with this GH issue https://github.com/mozilla-mobile/fenix/issues/105

bbinto avatar Mar 18 '19 13:03 bbinto

Hi All, we were tracking this in Bugzilla previously. The Data Review (Bug 15088390) has the most useful information. There is additional information in Bug 1481220 about the difference between Telemetry and Adjust.

Essentially, BD needs more exact numbers to better predict and find exact activation counts when creating distribution deals. Raw Telemetry numbers aren't good for that kind of analysis.

This issue should be another ping sent by Glean. We need to track the implementation work (setting up the new Ping in Glean, and loading it with the correct data).

fbertsch avatar Mar 18 '19 13:03 fbertsch

IIUC, Fenix (or an AC component) can send the Mobile Activation Ping using Glean, but Fennec will require its own implementation (Fennec bug 1534451). If Fenix or AC implements this ping first, then Fennec can copy/paste Fenix's code for reading the Google Ad ID and computing the hash.

cpeterso avatar Mar 18 '19 18:03 cpeterso

I filed A-C issue mozilla-mobile/android-components#2397. We'll probably want this Mobile Activation Ping in other Mozilla apps besides Fenix, so we should implement it in an A-C component. Fennec can just copy/paste the component code if it doesn't use A-C.

cpeterso avatar Mar 18 '19 23:03 cpeterso

For the purpose of this repo/product, I assume we will track the work in the A/C issue that @cpeterso has filed. I am still not clear who the owner is of this request that this should block MVP?

bbinto avatar Mar 20 '19 19:03 bbinto

@cpeterso @bbinto sounds like this is covered in the A-C issue mozilla-mobile/android-components#2397. Can we close it?

vesta0 avatar Apr 04 '19 02:04 vesta0

I agree, @vesta0 - thanks.

bbinto avatar Apr 04 '19 14:04 bbinto

I would recommend leaving this Fenix issue open until:

  1. Fenix picks up the fixed AC version.
  2. Someone verifies that Fenix users' Mobile Activation Pings are successfully showing up in whichever telemetry database they're supposed to go.

cpeterso avatar Apr 10 '19 20:04 cpeterso

This is being implemented in #1707 . After asking in #fenix on slack, since no other product is currently using this, it's fine for it to land in Fenix first and then be backported once needed.

Dexterp37 avatar Apr 18 '19 12:04 Dexterp37

One more comment here, there's the data review and discussion of Mobile Activation Ping but once it's being used we should move that documentation to be public, either in Glean or here in Fenix.

liuche avatar Apr 20 '19 00:04 liuche

One more comment here, there's the data review and discussion of Mobile Activation Ping but once it's being used we should move that documentation to be public, either in Glean or here in Fenix.

Agreed. I'll take care of doing this before merging the implementation. We're also adding ping documentation in the implementation PR, I'll flag you there as well, just FYI :)

Dexterp37 avatar Apr 23 '19 08:04 Dexterp37

This has been tested by QA, the activation ping is successfully sent and appears in glean.

bsurd avatar May 28 '19 07:05 bsurd