reelevant_analytics 0.0.1 copy "reelevant_analytics: ^0.0.1" to clipboard
reelevant_analytics: ^0.0.1 copied to clipboard

PlatformAndroidiOS
outdated

This Flutter package could be used to send tracking events to Reelevant datasources.

Tests iOS Android

Reelevant Analytics SDK for flutter (iOS and Android) #

This Flutter package could be used to send tracking events to Reelevant datasources.

How to use #

You need to have a datasourceId and a companyId to be able to init the SDK and start sending events:

final reelevantAnalytics = ReelevantAnalytics(companyId: '<company id>', datasourceId: '<datasource id>');

// Generate an event
var event = reelevantAnalytics.pageView(labels: {});
// Send it
reelevantAnalytics.send(event);

Current URL #

When a user is browsing a page you should call the sdk.setCurrentURL method if you want to be able to filter on it in Reelevant.

User infos #

To identify a user, you should call the sdk.setUser('<user id>') method which will store the user id in the device and send it to Reelevant.

Labels #

Each event type allow you to pass additional infos via labels (Map<String, String>) on which you'll be able to filter in Reelevant.

var event = reelevantAnalytics.addCart(ids: ['my-product-id'], labels: {'lang': 'en_US'});

Contribute #

This project is a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and iOS.

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

3
likes
140
points
6
downloads

Publisher

verified publisherreelevant.com

Weekly Downloads

This Flutter package could be used to send tracking events to Reelevant datasources.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, http, plugin_platform_interface, shared_preferences

More

Packages that depend on reelevant_analytics

Packages that implement reelevant_analytics