analytics_inspector 1.0.4 copy "analytics_inspector: ^1.0.4" to clipboard
analytics_inspector: ^1.0.4 copied to clipboard

A simple inspector to plug to your analytics events to help debugging them without needing Debug View

Buy Me A Coffee

A simple inspector to plug to your analytics events to help debugging them without needing Debug View

Features #

Whoever worked with Firebase Analytics Debug View knows how much it sucks. In most of the cases we just need a straight forward way of knowing if our events are being sent or not.

This package adds this thin layer that can be plugged to your analytics and you can use the data to determine if the correct events and parameters are being sent.

Getting started #

Using this is as simple as adding events or screen events:

AnalyticsInspector.instance.setUserProperty(
    'user_property',
    'user_property_value',
);
AnalyticsInspector.instance.logEvent(
        'my_event_name', {
        'parameter1': 'value1',
    },
);
AnalyticsInspector.instance.logScreenEvent(
        'screen_name', {
        'parameter1': 'value1',
    },
);

The package them exposes 3 Lists for working with User Properties, Events and Screen Events:

final userProperties = AnalyticsInspector.instance.userProperties;
final events = AnalyticsInspector.instance.events;
final screenEvents = AnalyticsInspector.instance.screenEvents;

The package is not opinionated on how this information should be displayed. The Lists are exposed and is up to you to display the way you want it.

1
likes
160
points
1.12k
downloads

Publisher

verified publisherrodrigobastos.dev

Weekly Downloads

A simple inspector to plug to your analytics events to help debugging them without needing Debug View

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

equatable, flutter

More

Packages that depend on analytics_inspector