Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
fix(metrics.yaml): include new data_taxonomy & data_reviews info
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfluckey committed Nov 15, 2023
1 parent 83e8ce4 commit 63a39e8
Show file tree
Hide file tree
Showing 4 changed files with 171 additions and 13 deletions.
14 changes: 14 additions & 0 deletions telemetry/generated/identifiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import StringMetricType from "@mozilla/glean/private/metrics/string";
/**
* The user's full account handle, with domain. For example,
* `account_name@mozilla.social`.
* data_taxonomy:
* data_categories: [user.account.username]
* data_uses: [analytics.reporting, personalize.content]
* data_subjects: [customer]
*
* Generated from `identifiers.mastodon_account_handle`.
*/
Expand All @@ -22,6 +26,11 @@ export const mastodonAccountHandle = new StringMetricType({

/**
* The user's numeric account ID from Mastodon.
* data_taxonomy:
* data_categories: [user.unique_id]
* data_uses: [analytics.reporting, personalize.content]
* data_subjects: [customer]
* data_qualifier: [identified]
*
* Generated from `identifiers.mastodon_account_id`.
*/
Expand All @@ -35,6 +44,11 @@ export const mastodonAccountId = new StringMetricType({

/**
* The device user agent string.
* data_taxonomy:
* data_categories: [user.device]
* data_uses: [analytics.reporting]
* data_subjects: [customer, visitor]
* data_qualifier: [n/a]
*
* Generated from `identifiers.user_agent`.
*/
Expand Down
16 changes: 13 additions & 3 deletions telemetry/generated/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@
import EventMetricType from "@mozilla/glean/private/metrics/event";

/**
* Event triggered when a user taps/clicks on a UI element, triggering a change in
* app state.
* Event triggered when a user taps/clicks on a UI element, triggering a change
* in app state.
* data_taxonomy:
* data_categories: [user.behavior]
* data_uses: [analytics.reporting, personalize.content]
* data_subjects: [customer, visitor]
* data_qualifier: [n/a]
*
* Generated from `ui.engagement`.
*/
Expand All @@ -31,8 +36,13 @@ export const engagement = new EventMetricType<{

/**
* Event triggered when a user views a notable UI element. Triggered once per page
* load, as soon as any pixel of that UI element is visible in the foreground for
* load, as soon as any pixel of that UI element is visible in the foreground for
* any length of time. UI elements may include: content, pages, CTAs, etc.
* data_taxonomy:
* data_categories: [user.behavior]
* data_uses: [analytics.reporting, personalize.content]
* data_subjects: [customer, visitor]
* data_qualifier: [n/a]
*
* Generated from `ui.impression`.
*/
Expand Down
22 changes: 21 additions & 1 deletion telemetry/generated/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@

// AUTOGENERATED BY glean_parser v8.1.1. DO NOT EDIT. DO NOT COMMIT.

import StringMetricType from "@mozilla/glean/private/metrics/string";
import EventMetricType from "@mozilla/glean/private/metrics/event";
import StringMetricType from "@mozilla/glean/private/metrics/string";

/**
* Event triggered when a user clicks a link on a web page.
* data_taxonomy:
* data_categories: [user.behavior]
* data_uses: [analytics.reporting]
* data_subjects: [customer, visitor]
* data_qualifier: [n/a]
*
* Generated from `web.link_click`.
*/
Expand All @@ -26,6 +31,11 @@ export const linkClick = new EventMetricType<{
/**
* The full URL of the page that was visited, along with URL query parameters. For
* example, `https://mozilla.social/home?utm_source=test`.
* data_taxonomy:
* data_categories: [user.behavior.browsing_history]
* data_uses: [analytics.reporting]
* data_subjects: [customer, visitor]
* data_qualifier: [n/a]
*
* Generated from `web.page_url`.
*/
Expand All @@ -39,6 +49,11 @@ export const pageUrl = new StringMetricType({

/**
* Event triggered when a user requests to load a web page.
* data_taxonomy:
* data_categories: [user.behavior]
* data_uses: [analytics.reporting]
* data_subjects: [customer, visitor]
* data_qualifier: [n/a]
*
* Generated from `web.page_view`.
*/
Expand All @@ -54,6 +69,11 @@ export const pageView = new EventMetricType({
* The full URL of the previous web page from which a link was followed in order
* to trigger the page view. Comes from the `referer` field of the HTTP header.
* May not always be available. For example, `https://www.google.com`.
* data_taxonomy:
* data_categories: []
* data_uses: [analytics.reporting]
* data_subjects: [customer, visitor]
* data_qualifier: [n/a]
*
* Generated from `web.referrer_url`.
*/
Expand Down
Loading

0 comments on commit 63a39e8

Please sign in to comment.