zeba_user_tracker
๐ A lightweight Flutter user tracking and analytics toolkit to help developers monitor user interactions and gain insights into app behavior.
zeba_user_tracker provides tools for tracking taps, scrolls, session events, heatmaps, and funnel analysis โ all in one easy-to-use package.
โจ Features
- ๐ด Heatmap Overlay โ Visualize user taps in real-time
- ๐ Session Recorder โ Track taps, scrolls, and user sessions
- ๐ Funnel Tracker โ Analyze user journeys and drop-off rates
- ๐ฅ Analytics Dashboard โ Review session events, heatmaps, and funnel metrics
- ๐ Local Storage โ Store analytics offline using JSON and SharedPreferences
๐ฆ Installation
Add this package to your pubspec.yaml.
dependencies:
zeba_user_tracker: ^1.0.0
Then run:
flutter pub get
๐ Getting Started
Import the package:
import 'package:zeba_user_tracker/zeba_user_tracker.dart';
๐ด Heatmap Overlay
Wrap your app with HeatmapOverlay to track and display taps.
done
HeatmapOverlay(
child: MyApp(),
)
๐ Session Recorder
Wrap your app with SessionRecorder to track scrolls, taps, and session events.
SessionRecorder(
child: MyApp(),
)
๐ Funnel Tracker
Track screen visits and drop-offs:
final tracker = ZebaUserTracker();
tracker.funnelTracker.screenVisited("HomeScreen");
tracker.funnelTracker.userExited("HomeScreen");
Compute drop-off rates:
double rate = tracker.funnelTracker.dropOffRate("HomeScreen");
print("Drop-off: \$rate%");
๐ฅ Analytics Dashboard
View session events, heatmaps, and funnel data:
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => const ZebaAnalyticsDashboard(),
),
);
๐งช Testing
Run tests using:
flutter test
๐ค Contributing
Contributions are welcome!
- Fork the repository
- Create a feature branch
- Submit a pull request
๐ License
This project is licensed under the GNU General Public License v3.0.
About Me
โจ Iโm Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects. You can learn more about me and my work at sufyanism.com or connect with me on Linkedin
Your all-in-one no-bloat hub!
๐ Explore cutting-edge resources in coding, tech, and development at zeba.academy and code.zeba.academy. Empower yourself with practical skills through curated directives, real-world projects, and hands-on experience. Level up your tech game today! ๐ปโจ
Zeba Academy is a learning platform dedicated to coding, technology, and development.
โก Visit our main site: https://zeba.academy โก Explore hands-on courses and resources at: https://code.zeba.academy โก Check out our YouTube for more tutorials: https://www.youtube.com/@zeba.academy โก Follow us on Instagram: https://www.instagram.com/zeba.academy/
โญ If you find this package useful, consider giving it a star and sharing it with the community!
Thank you for visiting!