Getting custom profile field information in header

Hi I have created some custom profile fields in BP, which I am trying to grab with PHP to send to Mixpanel in the ‘header.php’ (default theme) I have tried the bp_member_profile_data(‘field=SiteName’); but it looks like I’m calling it to early as it is completely empty. Do I have to declare something before this, am I even on the right track?