herald_adjust 1.0.0-dev.2
herald_adjust: ^1.0.0-dev.2 copied to clipboard
A Herald vendor adapter that sends to Adjust: events by dashboard token, purchases and ad revenue.
Herald for Adjust #
Sends Herald events to Adjust, over adjust_sdk: events by
dashboard token, purchases and ad revenue.
final tracker = AdjustAnalyticsTrackerService(
eventTrackerFactory: CompositeAdjustEventTrackerFactory([
TokenAdjustEventTrackerFactory({'checkout_completed': 'abc123'}),
]), // nothing at the end: only tokened events are sent
propertySetterFactory: CompositeAdjustPropertySetterFactory([
const GenericAdjustPropertySetterFactory(),
]),
);
final service = AdjustAnalyticsService(
AdjustConfig('YOUR_APP_TOKEN', AdjustEnvironment.production),
);
Adjust starts silent. start() turns Adjust off and only then starts it, so nothing is sent
until setEnabled(true). Let the service start Adjust; don't call Adjust.initSdk yourself.
Adjust's plugin doesn't wait for its native side, so Herald can't report a failure that happens there.
Purchases go through AdjustRevenueEvent and RevenueAdjustEventTracker, ad revenue through
AdjustAdRevenueEvent and AdRevenueAdjustEventTracker. Your factory builds them from your own
events.
Documentation #
The Herald website has the guides, and the repository has the other packages and an example app.