Skip to content

Data Ingestion Best Practices

Everything in FirstHive (profiles, segments, personalization and reports) depends on the data you bring in. A little planning at the start saves a lot of rework later.

Plan before you connect

  • List your sources and what each one is the system of record for: for example, the CRM for customer details, the order system for transactions, the loyalty system for points.
  • Map each source to the FirstHive data model before loading: customer profile, transactions, and any vertical or custom entities. See How the Data Model Works and Standard Schema.
  • Start with your vertical schema (for example Banking and Fintech or Insurance) and add custom attributes only where the standard ones don’t fit.
  • Decide your identifiers early: which fields identify a customer in each source (customer ID, mobile number, email). These drive unification.

Choose the right ingestion method

NeedUse
One-off or occasional loadsCSV or Excel import
Regular loads from your database or warehouseDatabase queries on a schedule
Real-time updates from your systemsAPIs
Website and app behaviorFH Analytics and the mobile SDKs (see Web and Mobile Events)

See Integration Patterns for how these fit together.

Keep data clean

  • Standardize formats at the source: phone numbers with country code (E.164, for example +919876543210), lower-case emails, ISO dates (YYYY-MM-DD) and a single currency code per field.
  • Use consistent values for categories, for example always Gold, never gold or GOLD.
  • Don’t send placeholder values such as test@test.com, 9999999999 or NA. They unify unrelated customers and pollute segments.
  • Send consent with the data: email, SMS and WhatsApp opt-in status, and where it came from.
  • Include a last-updated timestamp on every record so FirstHive keeps the newest value.

Load in the right order

  1. Customer profiles first.
  2. Then transactions and other entities that reference those customers.
  3. Then historical events, if you’re backfilling.

Test with a small sample (a few hundred records) and check the profiles in Customer Profile before loading everything.

Keep it running

  • Schedule incremental loads (only new and changed records) rather than full reloads.
  • Set up alerts for failed or empty loads.
  • Review record counts after each load against the source system.
  • Sensitive fields can be encrypted; see Data Attribute Encryption.

Common mistakes

MistakeEffectFix
Different ID formats across sourcesCustomers don’t unifyStandardize IDs before loading.
Loading transactions before customersOrphan transactionsLoad profiles first.
Full reload every daySlow processing and changing historyUse incremental loads.
No consent fieldsCan’t send promotional messages safelyInclude opt-in status and source.