Heap

Manual integration

Smartlook can be easily integrated into Heap using IntegrationListener:

class CustomIntegrationListener implements IntegrationListener {
  void onSessionReady(String dashboardSessionUrl) {
      heap.track(
      identity: _identity,
      event: 'dashboardSessionUrl',
      properties: {
        'dashboardSessionUrl': dashboardSessionUrl
      },
    );
  }

  void onVisitorReady(String dashboardVisitorUrl) {
    heap.userProperties(
      identity: _identity,
      properties: {
        'dashboardVisitorUrl': dashboardVisitorUrl
      },
    );
  }
}

Smartlook.registerIntegrationListener(CustomIntegrationListener());

Full Heap API documentation can be found on the official website.