Import CSV. Leads & Deals
Complete guide to importing leads and deals via CSV in Metrikia: template, column mapping, intelligent deduplication using hashed PII, and best practices for error-free migration.
When to Use CSV Import
CSV import is your best ally in three situations:
- Migrating from another tool: You're leaving a CRM or competing tracking tool and want to recover your history
- Importing historical data: You have months (or even years) of data in Excel or Google Sheets files
- Unsupported CRM: Metrikia natively integrates 6 CRMs. If yours isn't one of them, CSV import is the solution
Pro tip: Even if your CRM is natively supported, CSV import is still useful for loading historical data from before the integration connection date.
Lead Import
Download the Template
Go to Settings > Import > Leads and click Download CSV Template. The file contains the expected columns with examples.
Required Fields
A lead must have at minimum one of these identifiers:
- Email (recommended, best deduplication accuracy)
- Phone (international or French national format accepted)
- First name + Last name (if neither email nor phone is available)
Optional Fields
| Field | Expected Format | Example |
|---|---|---|
| firstName | Text | John |
| lastName | Text | Smith |
| Valid email | john@example.com | |
| phone | E.164 or national | +33612345678 or 0612345678 |
| source | Free text | Meta Ads |
| status | new / qualified / converted / lost | qualified |
| createdAt | ISO 8601 | 2025-06-15 |
| Custom fields | Text, number, or date | Any additional column |
Upload Process
- Drag and drop your CSV file (or click to browse)
- Metrikia displays a preview of the first 5 rows
- The column mapping interface opens (see dedicated section)
- Validate the mapping and launch the import
- A progress bar shows real-time advancement
- At the end, an import report summarizes: rows imported, updated, skipped, errors
Deal Import
Required Fields
| Field | Description |
|---|---|
| Lead (email) | Email of the associated lead. Metrikia finds the existing lead by matching |
| Deal value | Amount in euros (with or without decimals) |
| Status | open / won / lost |
Optional Fields
| Field | Expected Format |
|---|---|
| Line items | Name and amount of each line |
| Payment schedule | Dates and amounts of planned payments |
| Assigned closer | Email of the closer on your team |
| Creation date | ISO 8601 |
| Close date | ISO 8601 |
Pro tip: Always import your leads BEFORE your deals. A deal must be linked to an existing lead. If the lead referenced by email doesn't exist, the row will be flagged as an error.
Deduplication Logic
This is the most powerful feature of CSV import. Metrikia doesn't create duplicates, it recognizes existing leads through PII hashing (Personally Identifiable Information).
How It Works
Metrikia uses HashedPii to compare imported data with existing leads:
- Email hash (score: 1.0) : The email is normalized (lowercase, Gmail dot removal, +alias handling) then hashed. This is the most reliable identifier.
- Phone hash (score: 0.8) : The number is normalized to E.164 format for France: +33 prefix, leading 0 stripped. So
0612345678,+33612345678, and06 12 34 56 78are all recognized as the same number. - Name hash (score: 0.6) : The name is normalized via ICU NFD transliterator: accents are removed, case is harmonized.
Jean-Françoisandjean francoismatch.
Match Scoring
Metrikia calculates a match score (LeadMatchScore) based on available hashes:
- Email only: score 1.0 → Match
- Phone only: score 0.8 → Match
- Name only: score 0.6 → No match (below threshold)
- Phone + Name: score 1.4 → Match
The match threshold is 0.8. Above it, the existing lead is updated. Below it, a new lead is created.
Column Mapping
Automatic Detection
Metrikia automatically recognizes common column names:
| Your Column | Detected Metrikia Field |
|---|---|
| email, e-mail, courriel | |
| nom, last_name, lastname | Last Name |
| prénom, prenom, first_name | First Name |
| téléphone, telephone, phone | Phone |
| date, created_at, date_creation | Creation Date |
Manual Mapping
For unrecognized columns, the mapping interface allows you to:
- Associate each column with a Metrikia field
- Create a custom field on the fly
- Ignore a column (don't import it)
Best Practices
- Test with 10 rows first. Import a small sample to verify that mapping and deduplication work correctly before launching the full import.
- Include email for best accuracy. Email is the most reliable identifier for deduplication (score 1.0). Without email, Metrikia must rely on phone or name, which are less precise.
- Use ISO 8601 date format (YYYY-MM-DD). Ambiguous formats like 01/02/2025 (January or February?) cause errors.
- Monetary values in euros with decimals (1500.00) or in cents (150000). Metrikia detects and converts automatically.
- UTF-8 encoding required. If your file comes from Excel, export as "CSV UTF-8" to preserve accents and special characters.
Troubleshooting
Common Errors
| Error | Cause | Solution |
|---|---|---|
| "Invalid date format" | Date in DD/MM/YYYY or MM/DD/YYYY format | Convert to YYYY-MM-DD |
| "Invalid phone number" | Number with non-standard spaces or dashes | Use +33XXXXXXXXX format |
| "Lead not found for deal" | Deal email doesn't match any lead | Import leads first |
| "Unexpected duplicate" | Same person with different email and no phone | Add phone to improve matching |
| "Incorrect encoding" | Corrupted special characters (é instead of é) | Re-export as UTF-8 from Excel |
Pro tip: After a large import, check the import report in Settings > Import > History. You'll find the row-by-row detail of creations, updates, and errors. It's the best way to verify your data is clean.
To go further, check out our blog, the documentation or contact support.