Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/leancode_analytics_posthog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.1

- Fix `LeanAnalyticsPostHogObserver` sending two `$screen` events per navigation

## 0.1.0

- Initial release with PostHog Analytics implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import 'package:posthog_flutter/posthog_flutter.dart';
/// PostHog observer that tracks screen views for routes implementing
/// [LeanAnalyticsRoute].
class LeanAnalyticsPostHogObserver extends PosthogObserver {
/// Creates an observer that sends screen views for [LeanAnalyticsRoute]s only.
LeanAnalyticsPostHogObserver() : super(nameExtractor: (_) => null);

@override
void didPush(Route<dynamic> route, Route<dynamic>? previousRoute) {
if (route is LeanAnalyticsRoute) {
Expand Down
2 changes: 1 addition & 1 deletion packages/leancode_analytics_posthog/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: leancode_analytics_posthog
description: PostHog Analytics implementation for LeanCode analytics.
version: 0.1.0+1
version: 0.1.1
homepage: https://github.com/leancodepl/flutter_corelibrary/tree/master/packages/leancode_analytics_posthog
repository: https://github.com/leancodepl/flutter_corelibrary

Expand Down
Loading