Manual integration
Smartlook can be easily integrated into Heap using IntegrationListener
:
class CustomIntegrationListener implements IntegrationListener {
@override
void onSessionReady(String? dashboardSessionUrl) {
heap.track(
identity: _identity,
event: 'dashboardSessionUrl',
properties: {
'dashboardSessionUrl': dashboardSessionUrl
},
);
}
@override
void onVisitorReady(String? dashboardVisitorUrl) {
heap.userProperties(
identity: _identity,
properties: {
'dashboardVisitorUrl': dashboardVisitorUrl
},
);
}
}
//Put to your init state or some place you want to register this
Smartlook.registerIntegrationListener(CustomIntegrationListener());
Full Heap API documentation can be found on the official website.