Structuring first-party data for machine consumption