Hi, is there any way to wait until window.Intercom(‘trackEvent’) finishes?
I’m tracking user’s logout event then use Intercom(‘shutdown’) to clean up the cookies and reset Intercom, but it always throws this error:
Uncaught TypeError: Cannot read properties of undefined (reading 'then')
at frame-modern.422879eb.js:1:381486