Standard JSON format
This document describes the standard JSON format Eulerian uses to send data to Business Intelligence (BI) solutions.
This model is used when a BI connector is set up. It sends the data in a structured, granular form that external tools can work with. It is the standard model for sending data to BI solutions that can take in Eulerian data at its most granular.
The standard JSON format contains, among other things:
- the type of event sent;
- user and device information;
- browsing information;
- marketing and attribution data;
- the products associated with the event;
- custom parameters;
- the associated audiences and segments.
Note
This model will evolve. New keys may be added over time, but existing keys and their structure will not change.
Call type
The type key gives the type of call sent.
The list of possible values is fixed.
| Value | Description |
|---|---|
click | Every click on an Eulerian tracked link, for example clic, dynclick, etc. |
view | Every Eulerian tracked impression, for example view, dynview, etc. |
hit | Site-centric traffic. Covers any page other than an order, estimate or scart page. |
visit | Like hit, but shows that it is the first page of a new visit. |
order | Order confirmation page. |
estimate | Quote confirmation page. |
scart | Started basket page. |
The fields sent
Each event sent contains a JSON structure made up of common fields and, depending on the context, fields specific to browsing, conversion or products. The available fields therefore vary with the call type.
Common fields
These fields can be present on every call type.
| Field | Type | Description | Example |
|---|---|---|---|
type | STRING | Type of call sent. | click |
epoch | TIMESTAMP | Date of the event in epoch format. | 1450102413 |
eulerianid | INTEGER | Internal Eulerian identifier. | 489780172675333 |
euleriandeviceid | INTEGER | Device identifier. | 998455384754733 |
uid | STRING | Unique identifier of the user, see Understanding UID metrics. | 123456 |
devicetype | STRING | Type of device used. | desktop |
useragent | STRING | The user’s user agent. | Chrome |
geo | STRING | Geolocation. | france |
ip | STRING | IP address. | 80.150.10.3 |
profile | STRING | The user’s profile. | looker, shopper, buyer |
fullurl | STRING | Full URL associated with the event. | https://www.example.com/page |
Channel and attribution fields
These fields describe the marketing or acquisition context of the event.
| Field | Type | Description | Example |
|---|---|---|---|
channel_c | STRING | Channel abbreviation. | ad |
channel_publisher | STRING | Publisher name. | support |
channel_ope | STRING | Campaign name. | campagne-brand-fil-rouge |
channel_creatxt | STRING | Name of the banner or creative. | 150316-fr-brand |
channel_loctxt | STRING | Placement name. | support-160x600 |
channel_referer | STRING | Referrer domain of the first page viewed. | https://example.com |
channel_rfdom | STRING | Ad-centric referring domain. | https://example.com |
channel_rfdomuri | STRING | Ad-centric referring URI. | /page |
channel_seng | STRING | SEO search engine. | Bing |
channel_sengkw | STRING | SEO keyword. | marque |
channel_sikey | STRING | Incoming segment. | segmentation |
channel_sival | STRING | Incoming sub-segment. | chaud |
channel_slaccount | STRING | SEA account name. | Branding |
channel_slcamp | STRING | SEM campaign. | Marque-Bing |
channel_sladgroup | STRING | Ad group. | marque |
channel_slkw | STRING | SEM keyword. | parfum voiture neuve |
Site-centric fields
These fields are mainly available for hit, visit, order, scart or estimate calls.
| Field | Type | Context | Description | Example |
|---|---|---|---|---|
path | STRING | hit, visit, order, scart, estimate | Page name. | Shop/Step1 |
pagegroup | STRING | hit, visit, order, scart, estimate | Page group. | pageBasket |
Products
Products are sent in the product field.
This field contains a list of objects, each object being one product associated with the event.
| Field | Type | Context | Description | Example |
|---|---|---|---|---|
product | ARRAY of OBJECTS | hit, visit, order, scart, estimate | List of products. | [{"ref":"45835","price":"0","quantity":"1"}] |
product.ref | STRING | hit, visit, order, scart, estimate | Product reference. | 4077075 |
product.price | FLOAT | hit, visit, order, scart, estimate | Product price. | 12.5 |
product.quantity | FLOAT | hit, visit, order, scart, estimate | Product quantity. | 1 |
"product": [
{
"ref": "1246310",
"price": "",
"quantity": "1"
},
{
"ref": "1363092",
"price": "",
"quantity": "1"
}
]
Custom parameters
Custom parameters are sent in the customp field.
This field contains a list of objects with a key k and a value v.
| Field | Type | Context | Description | Example |
|---|---|---|---|---|
customp | ARRAY of OBJECTS | hit, visit, order, scart, estimate | List of custom parameters. | [{"k":"age","v":"25-30"}] |
customp.k | STRING | hit, visit, order, scart, estimate | Name of the custom parameter. | code-promo |
customp.v | STRING | hit, visit, order, scart, estimate | Value of the custom parameter. | 123456 |
"customp": [
{
"k": "email",
"v": ""
},
{
"k": "age",
"v": "25-30"
},
{
"k": "size",
"v": "M"
}
]
Audiences and segments
The audiences and segments associated with the user are sent in the cluster field. This field is an object containing a list of key / value pairs, built in Audience Engine.
| Field | Type | Description | Example |
|---|---|---|---|
cluster | OBJECT | List of the audiences and their respective segments. | {"audience":"segment"} |
"cluster": {
"Actif newsletter": "Actif -30 jours",
"Premium": "Client Premium +1 an"
}
Conversion fields
These fields are mainly available for order or estimate calls.
| Field | Type | Context | Description | Example |
|---|---|---|---|---|
amount | FLOAT | order, estimate | Conversion amount. | 100 |
ref | STRING | order, estimate | Conversion reference. | 28923018 |
estimatetype | STRING | order, estimate | Quote type. | option |
orderpayment | STRING | order | Payment type. | CB |
ordertype | STRING | order | Sale type, or the value of the conversion’s type parameter. | ancien_client |
currency | STRING | order | Currency. | EUR |
JSON examples
The examples below show the main call types that can be sent in the standard JSON format.
Example · click
{
"devicetype": "Tablet",
"wskey": "client-fr",
"type": "click",
"epoch": "1476762585",
"eulerianid": "6742614185137654637",
"euleriandeviceid": "98724774666436377383",
"uid": "41771080",
"useragent": "Mozilla/5.0 (iPad; CPU OS 9_3_5 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13G36",
"geo": "FRA8",
"ip": "78.118.234.156",
"profile": "Shopper",
"channel_c": "ml",
"channel_t": "c",
"channel_publisher": "client-fr",
"channel_ope": "NL-FR-CLIENTS-PREMIUM-161018",
"channel_seng": "",
"channel_sengkw": "",
"channel_rfdom": "",
"channel_rfdomuri": "",
"channel_loctxt": "",
"channel_creatxt": "",
"channel_slkw": "",
"channel_sikey": "category",
"channel_sival": "premium",
"channel_slcamp": "",
"channel_sladgroup": "",
"fullurl": "http://eulerian.client.fr/dynclick/client-fr/?eml-publisher=client-fr&eml-name=NL-FR-CLIENTS-PREMIUM-161018&eseg-name=category&eseg-item=premium&uid=41771080&eurl=http%3A%2F%2Fwww.client.fr%2Fofferpremium",
"cluster": {
"Actif newsletter": "Actif -30 jours",
"Premium": "Client Premium +1 an"
}
}
Example · view
{
"devicetype": "Desktop",
"wskey": "client-fr",
"type": "view",
"epoch": "1476741805",
"eulerianid": "2764143871266801030",
"euleriandeviceid": "2764143871266801030",
"uid": "",
"useragent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36",
"geo": "FR",
"ip": "80.236.101.164",
"profile": "",
"channel_c": "ad",
"channel_t": "v",
"channel_publisher": "tradelab",
"channel_ope": "TLAB_PROSPECTING_PROFILING",
"channel_seng": "",
"channel_sengkw": "",
"channel_rfdom": "",
"channel_rfdomuri": "",
"channel_loctxt": "tradelab-domain_name",
"channel_creatxt": "Generic",
"channel_slkw": "",
"channel_sikey": "",
"channel_sival": "",
"channel_slcamp": "",
"channel_sladgroup": "",
"fullurl": "https://eulerian.client.fr/dynview/photobox-fr/pix.gif?ead-publisher=tradelab&ead-name=TLAB_PROSPECTING_PROFILING&ead-location=domain_name&ead-creative=Generic&ead-creativetype=1x1&ea-rnd=205363586",
"cluster": {
"A-B_Retargeting": "Cible A",
"prospects": "nouveau prospect"
}
}
Example · hit
{
"devicetype": "SmartPhone",
"type": "hit",
"epoch": "1476741661",
"eulerianid": "13494950543979816964",
"euleriandeviceid": "2537865102402279348",
"uid": "5360955",
"useragent": "Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D257 Safari/9537.53",
"geo": "FR",
"ip": "80.12.55.41",
"profile": "visitor",
"fullurl": "https://eulerian.client.com/col1/-/1678601783?urlp=%2FHome&pagegroup=Home&age=25-30&size=M&prdr2=669130&prdr0=1246310&prdr1=1363092&ss=320x480&sd=32&fra=0&url=https%3A%2F%2Fwww.oscaro.com%2F",
"path": "/Home",
"pagegroup": "Home",
"channel_c": "br",
"channel_publisher": "",
"channel_ope": "BRANDING",
"channel_seng": "Google",
"channel_sengkw": "client-notprovided",
"channel_rfdom": "",
"channel_rfdomuri": "",
"channel_loctxt": "",
"channel_creatxt": "",
"channel_slkw": "",
"channel_sikey": "",
"channel_sival": "",
"channel_slcamp": "",
"channel_sladgroup": "",
"currency": "EUR",
"product": [
{
"ref": "1246310",
"price": "",
"quantity": "1"
},
{
"ref": "1363092",
"price": "",
"quantity": "1"
},
{
"ref": "669130",
"price": "",
"quantity": "1"
}
],
"customp": [
{
"k": "email",
"v": ""
},
{
"k": "age",
"v": "25-30"
},
{
"k": "size",
"v": "M"
},
{
"k": "segment",
"v": ""
}
],
"cluster": {
"A-B_Retargeting": "B",
"prospects": "nouveau prospect"
}
}
Example · order
{
"devicetype": "Desktop",
"type": "order",
"epoch": "1476755706",
"eulerianid": "12116298850026246700",
"euleriandeviceid": "3664146731612841153",
"uid": "6263105",
"useragent": "Mozilla/5.0 (Windows NT 6.0; rv:49.0) Gecko/20100101 Firefox/49.0",
"geo": "FR",
"ip": "90.18.238.84",
"profile": "registered",
"fullurl": "https://eulerian.client.com/col1/-/475487784?amount=320.74&frais_de_port=4.99&urlp=%2FStep5%2FConfirmTransaction&payment=CB&profile=registered&ref=33788526&eemail=aff37b68b83d0c1refref5a77aa477efe&uid=6263105&pagegroup=confirmation&prdr0=177292&prda0=36.63&prdq0=2&prdr1=1856824&prda1=141.36&prdq1=1&prdr2=3857469&prda2=8.21&prdq2=2&ss=1280x800&sd=24&fra=0&fl=23.0%20r0&url=https%3A%2F%2Feulerian.client.com%2FStep5%2FConfirmTransaction",
"path": "/Step5/ConfirmTransaction",
"pagegroup": "",
"channel_c": "ad",
"channel_publisher": "leboncoin",
"channel_ope": "cpm-display",
"channel_seng": "",
"channel_sengkw": "",
"channel_rfdom": "www.leboncoin.fr",
"channel_rfdomuri": "",
"channel_loctxt": "leboncoin-vignette-produit",
"channel_creatxt": "vignette-generique",
"channel_slkw": "",
"channel_sikey": "",
"channel_sival": "",
"channel_slcamp": "",
"channel_sladgroup": "",
"currency": "EUR",
"product": [
{
"ref": "177292",
"price": "36.63",
"quantity": "2"
},
{
"ref": "1856824",
"price": "141.36",
"quantity": "1"
},
{
"ref": "3857469",
"price": "8.21",
"quantity": "2"
}
],
"ref": "33788526",
"amount": "320.74",
"ordertype": "Marketplace",
"orderpayment": "CB",
"customp": [
{
"k": "age",
"v": "18-25"
},
{
"k": "size",
"v": "M"
},
{
"k": "segment",
"v": "Nouveau client"
}
],
"cluster": {
"clients-actifs": "Nouveau client -1 mois",
"Test_Retargeting": "B"
}
}
Key points
The standard JSON format sends Eulerian data in a structured model that BI solutions can work with.
The main points to remember are:
- the
typekey identifies the nature of the event sent; - the common fields describe the user, the device, the URL and the general context;
- the marketing fields describe the channel, the campaign, the publisher or the referrer;
- the
product,custompandclusterfields carry detailed information on products, custom parameters and audiences; - conversion fields, such as
amount,ref,ordertypeororderpayment, are mainly available fororderorestimateevents.
This format can evolve with new keys being added, while the structure of existing keys stays the same.