Heap Analytics Integration
Heap is a very powerful analytics tool that allows you to analyse your users journeys across every click and interaction.
It is incredibly easy to integrate featureflow into heap so that you can see the evaluated features for your users.
Simply pass the featureflow features to heap after you have set your featureflow user in the javascript api, for example, here is an example of setting a user, typically done after a user has logged in:
featureflow.updateUser({
id: principalUser.login,
attributes: {
fullName: `${principalUser.firstName} ${principalUser.lastName}`,
email: principalUser.email,
roles: principalUser.authorities,
langKey: principalUser.langKey,
organisationId: organisation.id,
domain: organisation.domain
}
}, (error)=>{
window.heap.addUserProperties(featureflow.features);//set heap features
})
Thats it! You heap user will be annotated with properties matching the features and variants that were evaluated for them. You can use those attributes in heap to filter users based on the features they saw.