We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a53933c commit 24beebfCopy full SHA for 24beebf
pkgs/dash_analytics/lib/src/analytics.dart
@@ -245,8 +245,6 @@ class AnalyticsImpl implements Analytics {
245
required DashEvent eventName,
246
Map<String, Object?> eventData = const {},
247
}) {
248
- if (!telemetryEnabled) return null;
249
-
250
// Construct the body of the request
251
final Map<String, Object?> body = generateRequestBody(
252
clientId: _clientId,
@@ -257,6 +255,8 @@ class AnalyticsImpl implements Analytics {
257
255
258
256
_logHandler.save(data: body);
259
+ if (!telemetryEnabled) return null;
+
260
// Pass to the google analytics client to send
261
return _gaClient.sendData(body);
262
}
0 commit comments