This package allows developers to connect to Core&Outline platform
npm i core-outline
var core = new CoreOutline(<app_id>)
var session_details = core.sessionDetails()
""" { "session_id":"<session_id>", } """
endCurrentSession()
Use this function when a user enters a page:
core.setCurrentPage(<current_page_name>, <is_terminal>)
Add this function to an onclick listener for when a user completes a transaction
core.recordPurchase()
This function is to be used when a user clicks on one of the recommended actions items
core.recordItemClick(<recommended_action_item_id>)