Skip to content

Commit

Permalink
invert analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jun 8, 2024
1 parent e2950d2 commit b5f8346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Backend/plausible_dio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PlausibleDio extends Plausible {
/// Post event to plausible
@override
Future<int> event({String name = "pageview", String referrer = "", String page = "", Map<String, String> props = const {}}) async {
if (!enabled || HiveProxy.getOrDefault(settings, allowAnalytics, defaultValue: allowAnalyticsDefault)) {
if (!enabled || !HiveProxy.getOrDefault(settings, allowAnalytics, defaultValue: allowAnalyticsDefault)) {
return 0;
}
final transaction = Sentry.startTransaction('Plausible Event', 'http');
Expand Down

0 comments on commit b5f8346

Please sign in to comment.