Migrating your data from a solution not supported natively
The RealTime Analytics - Import connector reimports into Eulerian a history of aggregated data from a solution that has no native connector.
It uses generic formats and so is not tied to a specific source platform. The data can come from any solution, provided it is prepared in the expected format.
The rules that apply to every reimport, whatever the source solution, are in General information.
General principle
Reimport lets you bring in an aggregated history for certain types of report.
It relies on two things:
- a CSV file containing the data to import;
- a JSON file describing the data format, the import type and the mapping between the CSV columns and the Eulerian dimensions or metrics.
Connector name: RealTime Analytics - Import
How the reimport works
The imported data is aggregated according to the profile defined in the JSON file.
If a single value is sent for a period longer than one day, it is spread evenly across all the days of the period. Any remainder is added to the first day.
When data is sent for a given period, it is processed as follows:
- if the row concerned does not exist yet, the value supplied in the file is injected;
- if the row concerned already exists, the new value cancels and replaces the existing one.
Example: if a row already contains 15 page views and a new import sends 17 page views, the value shown in the interface will be 17.
Prerequisites
To set up the reimport, you need:
- your data in CSV format;
- a JSON file defining the data format and the import type.
Accented characters (such as those in French text) are removed automatically during the reimport, to ensure better compatibility between solutions.
Once the connector is created, API endpoints let you specify the type of data to import.
Data synchronised
The following sections describe the different types of data supported.
For each type, you will find:
- the metrics available;
- a sample JSON format;
- a sample CSV file;
- the API call URL to use.
Overall site-level data
The following metrics:
- time spent:
duration- it must be supplied in seconds - visits:
visit - daily unique visitors:
dvisitor - sales:
scartvalid - sales revenue:
scartvalidamount - quotes:
estimatevalid - quote revenue:
estimatevalidamount - started baskets:
scart
Sample import format:
{
"skipHeader" : true,
"kind" : "website",
"dimensions" : [{
"idx" : 0,
"target": "website_name"
}],
"metrics" : [{
"idx" : 1,
"target" : "visit"
}, {
"idx" : 4,
"target" : "duration"
}, {
"idx" : 7,
"target" : "dvisitor"
}],
"period" : {
"from" : "01/03/2023",
"to" : "31/03/2023",
"scale" : "D"
}
}
CSV file containing the data to import:
| Label | Visits | Actions | Maximum actions in one visit | Total time spent by visitors (in seconds) | Bounces | Visits with conversions | Unique visitors (daily sum) | Users (daily sum) |
|---|---|---|---|---|---|---|---|---|
| MonSite | 439216 | 818178 | 300 | 39214621 | 317335 | 0 | 403838 | 0 |
Call URL to import this data:
curl -F "meta-data=@website.json" -F "file-name=@website.csv" https://$URL_API/ea/v2/$TOKEN_API_EPC/epc/$SITE/analyticsimport/website.json
Page-level data
The following metrics:
- page views:
hit - time spent:
duration- it must be supplied in seconds - visits:
visit - entry visits:
visitin - exit visits:
visitout - single-page visits:
visitone
Sample import format:
{
"skipHeader" : true,
"kind" : "pagetree",
"dimensions" : [{
"idx" : 0,
"target": "pageinfo_name"
}],
"metrics" : [{
"idx" : 2,
"target" : "hit"
}, {
"idx" : 3,
"target" : "duration"
}, {
"idx" : 22,
"target" : "visitin"
}, {
"idx" : 25,
"target" : "visitone"
}, {
"idx" : 26,
"target" : "visitout"
}],
"period" : {
"from" : "01/03/2023",
"to" : "31/03/2023",
"scale" : "D"
}
}
CSV file containing the data to import:
| Label | Unique page views | Page views | Total time spent by visitors (in seconds) | nb_hits_with_time_network | min_time_network | max_time_network | nb_hits_with_time_server | min_time_server | max_time_server | nb_hits_with_time_transfer | min_time_transfer | max_time_transfer | nb_hits_with_time_dom_processing | min_time_dom_processing | max_time_dom_processing | nb_hits_with_time_dom_completion | min_time_dom_completion | max_time_dom_completion | nb_hits_with_time_on_load | min_time_on_load | max_time_on_load | Entries | Actions after entering here | Total time spent by visitors (in seconds) after entering here | Bounces | Exits | Unique visitors (daily sum) | Unique entries (daily sum) | Unique exits (daily sum) | Average network time | Avg. server time | Avg. transfer time | Average DOM processing time | Average DOM completion time | Avg. on load time | Average page load time | Average time on page | Bounce rate | Exit rate | Metadata: segment | Clicked in search results |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Homepage | 100651 | 119493 | 4343012 | 116206 | 0 | 1289.613 | 116217 | 0 | 1460.591 | 116220 | 0 | 604.561 | 116143 | 0.757 | 9743.714 | 388 | 1.014 | 54.823 | 353 | 0.085 | 1.236 | 76674 | 123083 | 4355771 | 57586 | 79539 | 87678 | 67301 | 69116 | 0.135 | 0.21 | 0.064 | 1.093 | 0.263 | 0.012 | 1.777 | 36 | 75% | 79% | pageTitle==tata | |
| Bienvenu-sur-notre-sitre | 78120 | 101083 | 3898685 | 100632 | 0 | 5608.867 | 100622 | 0 | 882.9 | 100642 | 0 | 481.358 | 100517 | 0.184 | 11014.492 | 3367 | 0.175 | 694.053 | 3227 | 0.036 | 3.626 | 68162 | 167686 | 7805427 | 36363 | 50701 | 72280 | 61857 | 47658 | 0.221 | 0.206 | 0.078 | 1.233 | 0.538 | 0.013 | 2.289 | 39 | 53% | 65% | pageTitle==test |
Call URL to import this data:
curl -F "meta-data=@pagetree.json" -F "file-name=@pagetree.csv" https://$URL_API/ea/v2/$TOKEN_API_EPC/epc/$SITE/analyticsimport/pagetree.json
The page URL can also be supplied in another dimension called pageinfo_url.
Example:
{
"skipHeader" : true,
"kind" : "pagetree",
"dimensions" : [{
"idx" : 0,
"target": "pageinfo_name"
}, {
"idx" : 1,
"target" : "pageinfo_url"
}],
"metrics" : [{
"idx" : 2,
"target" : "hit"
}, {
"idx" : 3,
"target" : "duration"
}, {
"idx" : 22,
"target" : "visitin"
}, {
"idx" : 25,
"target" : "visitone"
}, {
"idx" : 26,
"target" : "visitout"
}],
"period" : {
"from" : "01/03/2023",
"to" : "31/03/2023",
"scale" : "D"
}
}
Search engine data
The following metrics:
- time spent:
duration- it must be supplied in seconds - visits:
visit - daily unique visitors:
dvisitor - sales:
scartvalid - sales revenue:
scartvalidamount - quotes:
estimatevalid - quote revenue:
estimatevalidamount - started baskets:
scart
Sample import format:
{
"skipHeader" : true,
"kind" : "searchengine",
"dimensions" : [{
"idx" : 0,
"target": "searchengine_name"
}],
"metrics" : [{
"idx" : 1,
"target" : "visit"
}, {
"idx" : 4,
"target" : "duration"
}, {
"idx" : 7,
"target" : "dvisitor"
}],
"period" : {
"from" : "01/03/2023",
"to" : "31/03/2023",
"scale" : "D"
}
}
CSV file containing the data to import:
| Label | Visits | Actions | Maximum actions in one visit | Total time spent by visitors (in seconds) | Bounces | Visits with conversions | Unique visitors (daily sum) | Users (daily sum) | Metadata: segment | Metadata: url | Metadata: logo |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 385590 | 684329 | 300 | 33213892 | 287085 | 0 | 358242 | 0 | referrerType==search;referrerName==Google | http://google.com | plugins/Morpheus/icons/dist/searchEngines/google.com.png | |
| Bing | 12835 | 31047 | 128 | 1671124 | 8290 | 0 | 12060 | 0 | referrerType==search;referrerName==Bing | http://bing.com | plugins/Morpheus/icons/dist/searchEngines/bing.com.png |
Call URL to import this data:
curl -F "meta-data=@searchengine.json" -F "file-name=@searchengine.csv" https://$URL_API/ea/v2/$TOKEN_API_EPC/epc/$SITE/analyticsimport/searchengine.json
Referring site data (referrers)
The following metrics:
- time spent:
duration- it must be supplied in seconds - visits:
visit - daily unique visitors:
dvisitor - sales:
scartvalid - sales revenue:
scartvalidamount - quotes:
estimatevalid - quote revenue:
estimatevalidamount - started baskets:
scart
Sample import format:
{
"skipHeader" : true,
"kind" : "refererdomain",
"dimensions" : [{
"idx" : 0,
"target": "refererdomain_name"
}],
"metrics" : [{
"idx" : 1,
"target" : "visit"
}, {
"idx" : 4,
"target" : "duration"
}, {
"idx" : 7,
"target" : "dvisitor"
}],
"period" : {
"from" : "01/03/2023",
"to" : "31/03/2023",
"scale" : "D"
}
}
CSV file containing the data to import:
| Label | Visits | Actions | Maximum actions in one visit | Total time spent by visitors (in seconds) | Bounces | Visits with conversions | Unique visitors (daily sum) | Users (daily sum) | Metadata: segment |
|---|---|---|---|---|---|---|---|---|---|
www.francetvinfo.fr | 394 | 1765 | 71 | 38473 | 276 | 0 | 382 | 0 | referrerName==www.francetvinfo.fr |
www.oneplanetsummit.fr | 376 | 758 | 13 | 61846 | 203 | 0 | 353 | 0 | referrerName==www.oneplanetsummit.fr |
fr.wikipedia.org | 371 | 1397 | 53 | 69163 | 213 | 0 | 365 | 0 | referrerName==fr.wikipedia.org |
Call URL to import this data:
curl -F "meta-data=@refererdomain.json" -F "file-name=@refererdomain.csv" https://$URL_API/ea/v2/$TOKEN_API_EPC/epc/$SITE/analyticsimport/refererdomain.json
Paid acquisition source data
The following metrics:
- time spent:
duration- it must be supplied in seconds - visits:
visit - daily unique visitors:
dvisitor - sales:
scartvalid - sales revenue:
scartvalidamount - quotes:
estimatevalid - quote revenue:
estimatevalidamount - started baskets:
scart
Allowed values for media_key:
- MAILING: emailing
- ADVERTISING: display
- AFFILIATION: affiliation
- SPONSOREDLINK: SEA
- PARTNER: partnership
- TRUSTEDFEED: price comparison sites
- OFFLINE: offline / broadcast / TV
- GENERIC: generic
Sample import format:
{
"skipHeader" : true,
"kind" : "opedata",
"dimensions" : [{
"idx" : 0,
"target": "media_key"
}, {
"idx" : 1,
"target" : "publisher_name"
}, {
"idx" : 2,
"target" : "ope_name"
}],
"metrics" : [{
"idx" : 3,
"target" : "visit"
}, {
"idx" : 4,
"target" : "duration"
}, {
"idx" : 5,
"target" : "dvisitor"
}],
"period" : {
"from" : "01/03/2023",
"to" : "31/03/2023",
"scale" : "D"
}
}
CSV file containing the data to import:
| Channel | Media outlet | Campaign | Visits | Time spent (in seconds) | Unique visitors (daily sum) |
|---|---|---|---|---|---|
| ADVERTISING | Google-Display | 9654 | 665332 | 58 | |
| AFFILIATION | AWin | awin | 548 | 98 | 6 |
Call URL to import this data:
curl -F "meta-data=@media.json" -F "file-name=@media.csv" https://$URL_API/ea/v2/$TOKEN_API_EPC/epc/$SITE/analyticsimport/opedata.json
Country-level data
The following metrics:
- time spent:
duration- it must be supplied in seconds - visits:
visit - daily unique visitors:
dvisitor - sales:
scartvalid - sales revenue:
scartvalidamount - quotes:
estimatevalid - quote revenue:
estimatevalidamount - started baskets:
scart
Sample import format:
{
"skipHeader" : true,
"kind" : "geoloccountry",
"dimensions" : [{
"idx" : 9,
"target": "geoloccountry_isocode"
}],
"metrics" : [{
"idx" : 1,
"target" : "visit"
}, {
"idx" : 4,
"target" : "duration"
}, {
"idx" : 7,
"target" : "dvisitor"
}],
"period" : {
"from" : "01/03/2023",
"to" : "31/03/2023",
"scale" : "D"
}
}
CSV file containing the data to import:
| Label | Visits | Actions | Maximum actions in one visit | Total time spent by visitors (in seconds) | Bounces | Visits with conversions | Unique visitors (daily sum) | Users (daily sum) | Metadata: code | Metadata: logo | Metadata: segment | Metadata: logoHeight |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| France | 439216 | 818178 | 300 | 39214621 | 317335 | 0 | 403838 | 0 | fr | plugins/Morpheus/icons/dist/flags/fr.png | countryCode==fr | 16 |
| United States | 22276 | 35735 | 115 | 3022018 | 17095 | 0 | 21092 | 0 | us | plugins/Morpheus/icons/dist/flags/us.png | countryCode==us | 16 |
Call URL to import this data:
curl -F "meta-data=@geoloccountry.json" -F "file-name=@geoloccountry.csv" https://$URL_API/ea/v2/$TOKEN_API_EPC/epc/$SITE/analyticsimport/geoloccountry.json
Checklist before import
Before launching a reimport, check that:
- the CSV file contains the expected columns;
- the JSON file references the right column indexes;
- the import period is set correctly;
- the import type matches the type of data sent;
- the values already imported can be replaced if a new import is run on the same rows.