Intercom(‘trackEvent’, ‘myevent’).on(‘fired’, function () {
// The event has fired.
}).on(‘unscheduled’, function () {
// The event rules met but unable to fire based on schedule.
});
See example above: Is there a way to track an event not firing based on not being scheduled but meeting the rules? (meeting rules but not in schedule to be fired)
The reason being that I’m working with javascript where there would need to be default behavior if the Intercom banner doesn’t show.
- intercom banner → close banner → redirect to url
- (no banner) → redirect to url