I'm using redux-segment for my analytics and am trying to implement Intercom. The issue I am having is actually getting it to load etc. I'm trying to follow this, but still unsure on where to enter the app id, etc. Intercom segment. I am want to load intercom in my action creator when grabbing the current user, but there is no documentation on how to actually load intercom.
import { EventTypes } from 'redux-segment';
export function currentUser() {
const request = user.current(); //this correctly grabs current user.
if(request == null) {
//having trouble with this part. load intercom non user specific
} else {
load intercom user specific
}
return {
type: CURRENT_USER,
payload: request
};
}