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
| Need | Use |
|---|---|
| One-off or occasional loads | CSV or Excel import |
| Regular loads from your database or warehouse | Database queries on a schedule |
| Real-time updates from your systems | APIs |
| Website and app behavior | FH 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
- Customer profiles first.
- Then transactions and other entities that reference those customers.
- 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
| Mistake | Effect | Fix |
|---|---|---|
| Different ID formats across sources | Customers don’t unify | Standardize IDs before loading. |
| Loading transactions before customers | Orphan transactions | Load profiles first. |
| Full reload every day | Slow processing and changing history | Use incremental loads. |
| No consent fields | Can’t send promotional messages safely | Include opt-in status and source. |
© 2026 FirstHive. All rights reserved.