2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-11 13:11:01 +00:00

For #9136: Send all adjust properties to glean (#9253)

This commit is contained in:
Sawyer Blatz 2020-03-20 10:06:55 -07:00 committed by GitHub
parent 21606bf94f
commit a356b4b2c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 59 additions and 1 deletions

View File

@ -360,11 +360,61 @@ metrics:
- metrics - metrics
bugs: bugs:
- https://github.com/mozilla-mobile/fenix/issues/1298 - https://github.com/mozilla-mobile/fenix/issues/1298
- https://github.com/mozilla-mobile/fenix/issues/9136
data_reviews: data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/5579 - https://github.com/mozilla-mobile/fenix/pull/5579
notification_emails: notification_emails:
- fenix-core@mozilla.com - fenix-core@mozilla.com
expires: "2020-09-01" expires: "2020-09-01"
adjust_ad_group:
type: string
lifetime: application
description: >
A string containing the Adjust ad group ID from which the user installed Fenix. This will not
send on the first session the user runs. If the install is organic, this will be empty.
send_in_pings:
- metrics
bugs:
- https://github.com/mozilla-mobile/fenix/issues/1298
- https://github.com/mozilla-mobile/fenix/issues/9136
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/9253
notification_emails:
- fenix-core@mozilla.com
expires: "2020-09-01"
adjust_creative:
type: string
lifetime: application
description: >
A string containing the Adjust creative ID from which the user installed Fenix. This will not
send on the first session the user runs. If the install is organic, this will be empty.
send_in_pings:
- metrics
bugs:
- https://github.com/mozilla-mobile/fenix/issues/1298
- https://github.com/mozilla-mobile/fenix/issues/9136
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/9253
notification_emails:
- fenix-core@mozilla.com
expires: "2020-09-01"
adjust_network:
type: string
lifetime: application
description: >
A string containing the Adjust network ID from which the user installed Fenix. This will not
send on the first session the user runs. If the install is organic, this will be empty.
send_in_pings:
- metrics
bugs:
- https://github.com/mozilla-mobile/fenix/issues/1298
- https://github.com/mozilla-mobile/fenix/issues/9136
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/9253
notification_emails:
- fenix-core@mozilla.com
expires: "2020-09-01"
toolbar_position: toolbar_position:
type: string type: string
lifetime: application lifetime: application

View File

@ -22,7 +22,7 @@ activation:
installation: installation:
description: > description: >
This ping is intended to capture the source of the installation This ping is intended to capture the source of the installation
include_client_id: false include_client_id: true
bugs: bugs:
- https://github.com/mozilla-mobile/fenix/issues/7295 - https://github.com/mozilla-mobile/fenix/issues/7295
data_reviews: data_reviews:

View File

@ -545,7 +545,12 @@ class GleanMetricsService(private val context: Context) : MetricsService {
defaultMozBrowser.set(it) defaultMozBrowser.set(it)
} }
mozillaProducts.set(MozillaProductDetector.getInstalledMozillaProducts(context)) mozillaProducts.set(MozillaProductDetector.getInstalledMozillaProducts(context))
adjustCampaign.set(context.settings().adjustCampaignId) adjustCampaign.set(context.settings().adjustCampaignId)
adjustAdGroup.set(context.settings().adjustAdGroup)
adjustCreative.set(context.settings().adjustCreative)
adjustNetwork.set(context.settings().adjustNetwork)
toolbarPosition.set( toolbarPosition.set(
if (context.settings().shouldUseBottomToolbar) { if (context.settings().shouldUseBottomToolbar) {
Event.ToolbarPositionChanged.Position.BOTTOM.name Event.ToolbarPositionChanged.Position.BOTTOM.name

View File

@ -204,7 +204,10 @@ The following metrics are added to the ping:
| Name | Type | Description | Data reviews | Extras | Expiration | | Name | Type | Description | Data reviews | Extras | Expiration |
| --- | --- | --- | --- | --- | --- | | --- | --- | --- | --- | --- | --- |
| events.total_uri_count |[counter](https://mozilla.github.io/glean/book/user/metrics/counter.html) |A counter of URIs visited by the user in the current session, including page reloads. This does not include background page requests and URIs from embedded pages or private browsing. |[1](https://github.com/mozilla-mobile/fenix/pull/1785), [2](https://github.com/mozilla-mobile/fenix/pull/8314)||2020-09-01 | | events.total_uri_count |[counter](https://mozilla.github.io/glean/book/user/metrics/counter.html) |A counter of URIs visited by the user in the current session, including page reloads. This does not include background page requests and URIs from embedded pages or private browsing. |[1](https://github.com/mozilla-mobile/fenix/pull/1785), [2](https://github.com/mozilla-mobile/fenix/pull/8314)||2020-09-01 |
| metrics.adjust_ad_group |[string](https://mozilla.github.io/glean/book/user/metrics/string.html) |A string containing the Adjust ad group ID from which the user installed Fenix. This will not send on the first session the user runs. If the install is organic, this will be empty. |[1](https://github.com/mozilla-mobile/fenix/pull/9253)||2020-09-01 |
| metrics.adjust_campaign |[string](https://mozilla.github.io/glean/book/user/metrics/string.html) |A string containing the Adjust campaign ID from which the user installed Fenix. This will not send on the first session the user runs. If the install is organic, this will be empty. |[1](https://github.com/mozilla-mobile/fenix/pull/5579)||2020-09-01 | | metrics.adjust_campaign |[string](https://mozilla.github.io/glean/book/user/metrics/string.html) |A string containing the Adjust campaign ID from which the user installed Fenix. This will not send on the first session the user runs. If the install is organic, this will be empty. |[1](https://github.com/mozilla-mobile/fenix/pull/5579)||2020-09-01 |
| metrics.adjust_creative |[string](https://mozilla.github.io/glean/book/user/metrics/string.html) |A string containing the Adjust creative ID from which the user installed Fenix. This will not send on the first session the user runs. If the install is organic, this will be empty. |[1](https://github.com/mozilla-mobile/fenix/pull/9253)||2020-09-01 |
| metrics.adjust_network |[string](https://mozilla.github.io/glean/book/user/metrics/string.html) |A string containing the Adjust network ID from which the user installed Fenix. This will not send on the first session the user runs. If the install is organic, this will be empty. |[1](https://github.com/mozilla-mobile/fenix/pull/9253)||2020-09-01 |
| metrics.default_browser |[boolean](https://mozilla.github.io/glean/book/user/metrics/boolean.html) |Is Fenix the default browser? |[1](https://github.com/mozilla-mobile/fenix/pull/1067#issuecomment-474598673)||2020-09-01 | | metrics.default_browser |[boolean](https://mozilla.github.io/glean/book/user/metrics/boolean.html) |Is Fenix the default browser? |[1](https://github.com/mozilla-mobile/fenix/pull/1067#issuecomment-474598673)||2020-09-01 |
| metrics.default_moz_browser |[string](https://mozilla.github.io/glean/book/user/metrics/string.html) |The name of the default browser on device if and only if it's a Mozilla owned product |[1](https://github.com/mozilla-mobile/fenix/pull/1953/), [2](https://github.com/mozilla-mobile/fenix/pull/5216)||2020-09-01 | | metrics.default_moz_browser |[string](https://mozilla.github.io/glean/book/user/metrics/string.html) |The name of the default browser on device if and only if it's a Mozilla owned product |[1](https://github.com/mozilla-mobile/fenix/pull/1953/), [2](https://github.com/mozilla-mobile/fenix/pull/5216)||2020-09-01 |
| metrics.mozilla_products |[string_list](https://mozilla.github.io/glean/book/user/metrics/string_list.html) |A list of all the Mozilla products installed on device. We currently scan for: Firefox, Firefox Beta, Firefox Aurora, Firefox Nightly, Firefox Fdroid, Firefox Lite, Reference Browser, Reference Browser Debug, Fenix, Focus, and Lockwise. |[1](https://github.com/mozilla-mobile/fenix/pull/1953/), [2](https://github.com/mozilla-mobile/fenix/pull/5216)||2020-09-01 | | metrics.mozilla_products |[string_list](https://mozilla.github.io/glean/book/user/metrics/string_list.html) |A list of all the Mozilla products installed on device. We currently scan for: Firefox, Firefox Beta, Firefox Aurora, Firefox Nightly, Firefox Fdroid, Firefox Lite, Reference Browser, Reference Browser Debug, Fenix, Focus, and Lockwise. |[1](https://github.com/mozilla-mobile/fenix/pull/1953/), [2](https://github.com/mozilla-mobile/fenix/pull/5216)||2020-09-01 |