Completely legal - in California all you have to do is post a privacy policy on your page if you collect this information. Almost everyone is collecting this and it applies to everyone regardless of whether they are a 3rd party or not.
Though, by the looks of it, intercom.io may benefit from a privacy policy =)