Manual integration

Smartlook can be easily integrated into Heap using IntegrationListener:

Smartlook.registerIntegrationListener(object : IntegrationListener {
    override fun onSessionReady(dashboardSessionUrl: String) {
        val props = mapOf("Session url" to dashboardSessionUrl)

        Heap.track("Smartlook session URL", props)

    override fun onVisitorReady(dashboardVisitorUrl: String) {
        val props = mapOf("Smartlook visitor URL" to dashboardVisitorUrl)

Smartlook.registerIntegrationListener(new IntegrationListener() {
    public void onSessionReady(@NotNull String dashboardSessionUrl) {
        Map<String, String> props = new HashMap<>();
        props.put("Session url", dashboardSessionUrl);

        Heap.track("Smartlook session URL", props);

    public void onVisitorReady(@NotNull String dashboardVisitorUrl) {
        Map<String, String> props = new HashMap<>();
        props.put("Smartlook visitor URL", dashboardVisitorUrl);


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