Hi again, @cegadmin,
In this topic, I discuss how the identity-profiles
array contains a record's merge history.
When you're in the HubSpot app, you can only create a new identity by manually creating a new contact record. If you merged this record into another, the resulting record would have at least two identities.
I say "at least" because a contact can be associated with more identities when they visit your site and identify themselves as the same person as a known contact record.
Per the Tracking Code API Overview documentation:
The HubSpot Analytics system identifies unique records using two pieces of data, the usertoken (stored in the visitors browser in the hubspotutk cookie) and the email address. When the HubSpot tracking code tracks an action (such as a page view) for a visitor, the tracking code automatically associates that action with the usertoken. When you use the Tracking Code API to identify a record by its email address, the analytics system will tie that email address to the usertoken, so that the HubSpot Contacts system can update the contact record with that email address, or create a new contact record with the email address if no contact with that email exists yet.
Generally speaking, whenever a usertoken is associated with an existing email address (e.g. through a form submission or the identify
method), it will create a new identity in the identity-profiles
array.