Update docs around ga3 ga4 mismatch (#147075)

Fixing nit in code doc
This commit is contained in:
Elias Yishak
2024-04-19 12:15:09 -07:00
committed by GitHub
parent e09ee6be9b
commit be0eb721d5
2 changed files with 3 additions and 3 deletions

View File

@@ -115,8 +115,8 @@ Future<int> run(
await globals.analytics.setTelemetry(true);
}
// Ensure that anyone opted out of package:unified_analytics is also
// opted out of legacy analytics and that analytics is not being suppressed
// Send an event to GA3 for any users that are opted into GA3
// analytics but have opted out of GA4 (package:unified_analytics)
// TODO(eliasyishak): remove once GA3 sunset, https://github.com/flutter/flutter/issues/128251
if (!globals.analytics.telemetryEnabled &&
globals.flutterUsage.enabled) {

View File

@@ -434,7 +434,7 @@ void main() {
io.setExitFunctionForTests((int exitCode) {});
// Begin by opting out of telemetry for package:unified_analytics
// and leaving legacy analytics opted in
// and legacy analytics
await fakeAnalytics.setTelemetry(false);
testUsage.enabled = false;
expect(fakeAnalytics.telemetryEnabled, false);