Importing offline sales into Eulerian
Importing offline sales lets you bring into Eulerian conversions that happened outside your website, for example:
- in-store sales;
- sales made through a call centre;
- offline sales interactions.
The aim is to link these sales to the user’s online marketing journey wherever possible, so that you can analyse them in Eulerian’s attribution reports.
How reconciliation works
When a user interacts with your online campaigns, Eulerian records their marketing history: impressions, clicks, visits and so on.
This history is tied to a Eulerian identifier specific to the user, their browser and their device.
If the user logs in on your site, you can pass their CRM ID to Eulerian through the uid parameter, described in Understanding UID metrics.
Eulerian can then link:
ID Eulerian ⇔ ID CRM ⇔ historique marketing
When an offline sale is imported with that CRM ID, Eulerian can find the associated marketing history and attribute the sale according to the attribution views available.
Two ways to match an offline sale
An offline sale can be tied to a marketing journey in two ways.
Matching via UID
If the file contains a uid that matches a customer ID already known to Eulerian, the sale can be linked to that user’s marketing history.
This is the most complete case, because attribution can rely on the user’s actual online journey.
Matching via AES
The ereplay-aes field lets you tie the sale to a campaign through an AES tracking code.
This code appears in the click URLs and impression pixels of your campaigns.
If no AES is provided, the sale is attributed to direct access, unless the uid already leads to a reconciled marketing history.
Be careful with CRM parameters
CRM parameters are overwritten at every synchronisation.
If you want to keep the value a CRM parameter had at the exact moment of the sale, rather than its value at the last synchronisation, record it as a custom parameter in the import file.
Example: if the customer’s status changes after the sale but you want to keep the status they had when they bought, import that status as data attached to the sale.
How the import works
Offline sales are imported through a CSV file dropped on an FTP or SFTP server.
You define:
- the server where the file is dropped;
- how often it is dropped;
- the date and time it is collected;
- the file structure;
- the fields used for reconciliation and attribution.
Eulerian then collects the file and loads the sales into your account.
If producing a CSV file is difficult, another export format can be considered.
Preparing the import file
The file must follow these rules:
| Item | Expected |
|---|---|
| Format | .csv |
| Encoding | UTF-8 |
| Separator | Semicolon ; |
| Hosting | FTP, SFTP or Eulerian server |
| Frequency | Set to suit your needs: daily, weekly, etc. |
If you use the Eulerian FTP server, we recommend creating an FTP user dedicated to the import, to avoid conflicts with the standard interface accesses.
CSV file structure
The import file contains one row per sale.
Sample file:
flux_de_ventes_offline.csv (423 bytes)
Required columns
| Column | Description | Example |
|---|---|---|
ref | Unique reference of the sale to inject | 17490004 |
ereplay-time | Date of the sale in UNIX Epoch format | 1417535136 |
Main optional columns
| Column | Description | Example |
|---|---|---|
payment | Payment type | visa |
amount | Sale amount | 69.95 |
type | Sale type | magasin |
uid | The user’s unique internal identifier | 11866126 |
email | The user’s email address | example@email.fr |
status | Sale status: VALID, INVALID or PENDING by default | VALID |
profile | The user’s overall profile | NEWBUYER |
ereplay-ip | The user’s IP, used to enrich geolocation | 88.136.253.66 |
ereplay-aes | AES tracking code used to tie the sale to a campaign | SmMvxkqDL6S1a6zQbSWA6WtPWTfMmCOO818- |
Product columns
You can also import the details of the products in the order.
| Column | Description | Example |
|---|---|---|
prdnb | Number of unique product references | 1 |
prdref | Reference of the first product | 645646468 |
prdname | Name of the first product | chaussure |
prdamount | Amount of the first product | 17.85 |
prdquantity | Quantity of the first product | 3 |
For the following products, use the same principle with a numeric suffix:
prdref2
prdname2
prdamount2
prdquantity2
Then:
prdref3
prdname3
prdamount3
prdquantity3
And so on.
Sample CSV file
ref;ereplay-time;payment;amount;type;uid;email;status;profile;ereplay-aes;prdnb;prdref;prdname;prdamount;prdquantity
17490004;1417535136;visa;69.95;magasin;11866126;example@email.fr;VALID;NEWBUYER;SmMvxkqDL6S1a6zQbSWA6WtPWTfMmCOO818-;1;645646468;chaussure;17.85;3
In this example:
- the sale’s reference is
17490004; - the sale date is sent in UNIX Epoch format;
- the sale amount is
69.95; - the sale type is
magasin(in-store); - the
uidis used to attempt reconciliation with the online history; - the
ereplay-aesfield ties the sale to a campaign if needed; - the product details are sent too.
Good practice
Use a unique sale reference in the ref column.
Check that the sale date is sent in UNIX Epoch format in ereplay-time.
Add the uid whenever you can, so the sale can be reconciled with the online marketing history.
Use ereplay-aes when you want to tie the sale explicitly to a campaign.
Avoid changing the file structure without updating the import settings.
For recurring imports, set a stable naming convention and a clear drop frequency.
Key points
Importing offline sales lets you bring into Eulerian sales made in store or through a call centre.
Reconciliation can rely on:
- the
uid, to find the user’s online marketing history; - the
ereplay-aes, to tie the sale to a specific campaign.
The import file must be a UTF-8 CSV with a semicolon separator.
The ref and ereplay-time columns are required. The other columns enrich the sale, make attribution easier and add product details.