diff --git a/.github/ISSUE_TEMPLATE/unified_analytics_event.yml b/.github/ISSUE_TEMPLATE/unified_analytics_event.yml index 835580e03..298bb074d 100644 --- a/.github/ISSUE_TEMPLATE/unified_analytics_event.yml +++ b/.github/ISSUE_TEMPLATE/unified_analytics_event.yml @@ -6,8 +6,8 @@ body: attributes: value: | An event is an action that a user, or the tool, performs. - You can see the events that are being collected [here](./pkgs/unified_analytics/lib/src/enums.dart) - and the data associated with those events [here](./pkgs/unified_analytics/lib/src/event.dart). + You can see the events that are being collected [here](../../pkgs/unified_analytics/lib/src/enums.dart) + and the data associated with those events [here](../../pkgs/unified_analytics/lib/src/event.dart). - type: checkboxes attributes: label: Has this already been approved in the privacy design documentation? @@ -26,7 +26,7 @@ body: you would like to add data to. If this is a new event, tell us the name, description, and tool owner. - Possible tool owners can be found in the `DashTool` enum [here](./pkgs/unified_analytics/lib/src/enums.dart). + Possible tool owners can be found in the `DashTool` enum [here](../../pkgs/unified_analytics/lib/src/enums.dart). For example, pub_get represents pub package resolution details. The owner is the Dart tool. validations: diff --git a/.github/ISSUE_TEMPLATE/unified_analytics_user_property.yml b/.github/ISSUE_TEMPLATE/unified_analytics_user_property.yml index 1904047a2..98052b57e 100644 --- a/.github/ISSUE_TEMPLATE/unified_analytics_user_property.yml +++ b/.github/ISSUE_TEMPLATE/unified_analytics_user_property.yml @@ -8,7 +8,7 @@ body: A user property is a key-value pair that is used to segment users. For example, the Flutter channel that the user is on. You can see which user properties are being collected - [here](./pkgs/unified_analytics/lib/src/user_property). + [here](../../pkgs/unified_analytics/lib/src/user_property). - type: checkboxes attributes: diff --git a/pkgs/unified_analytics/USAGE_GUIDE.md b/pkgs/unified_analytics/USAGE_GUIDE.md index 6916c6bda..2a83bbd02 100644 --- a/pkgs/unified_analytics/USAGE_GUIDE.md +++ b/pkgs/unified_analytics/USAGE_GUIDE.md @@ -137,7 +137,7 @@ the Flutter channel used. To request that a new user property be added, file an issue [using this template](https://github.com/dart-lang/tools/issues/new?template=unified_analytics_user_property.yml). To add a new user property, add a new property to the `UserProperty` class -in the [`user_property.dart`` file](./pkgs/unified_analytics/lib/src/user_property.dart). +in the [`user_property.dart` file](./lib/src/user_property.dart). #### Events Events are actions that the user, or tool, performs. In Google Analytics, @@ -148,10 +148,10 @@ To request new events, or event data, file an issue [using this template](https://github.com/dart-lang/tools/issues/new?template=unified_analytics_event.yml). To add a new event, create a new field in the `DashEvent` enum in -the [`enums.dart`` file](./pkgs/unified_analytics/lib/src/enums.dart). +the [`enums.dart` file](./lib/src/enums.dart). Then, add event data, create a new method for the `Event` class -in the [`event.data` file](./pkgs/unified_analytics/lib/src/event.dart). +in the [`event.data` file](./lib/src/event.dart). ### Testing event collection