Generic implementation guide for the Eulerian server-side web tagging plan
The Eulerian Measurement Protocol lets you send analytics data directly from your Server-Side container (sGTM, sTealium) to Eulerian Analytics (see The server-side solution recommended by Eulerian).
Important
Before moving to server-side tagging, make sure you do not need the client-side features (identity synchronisation, heatmap, etc.), because server calls cannot run scripts on the client side.
1 · Setting up the measurement protocol
1.1 · Request structure
Data is sent through HTTP POST or GET requests to the Eulerian tracking server.
The URL format is as follows:
https://TRACKING_HOSTNAME/TYPE/WEBSITE_NAME/
Example for a site named demo-site with the tracking server dem.eulerian.net:
https://dem.eulerian.net/collector/demo-site/
- Recommended: use POST, which lets you send more data.
- Alternative: use GET if POST is not possible.
Example · POST request:
User-Agent: Mozilla/5.0
POST https://dem.eulerian.net/collector/demo-site/
Body: key1=val1&key2=val2
Example · GET request:
GET /collector/demo-site?key1=val1&key2=val2 HTTP/1.1
Host: dem.eulerian.net
User-Agent: Mozilla/5.0
Note
If you use a custom library that may be identified as a bot (such as cURL or wget), the call will not be recorded. So provide a specific user-agent, or a standard one, to replace your client library’s default, so that the call can go through. (e.g. Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0)
1.2 · Response codes
- 2xx: request received successfully.
- Other: check and fix the error before trying again.
An HTTP 2xx response means Eulerian received the request. It does not guarantee that the payload is well formed or that all the data sent is usable.
You therefore need to validate the quality of the data collected in Eulerian’s checking or testing tools, not just from the HTTP response code.
2 · Data to send
Data sent to Eulerian must be UTF-8 and URL-encoded as key-value pairs (param1=val1¶m2=val2).
For example, to send the key urlp with the value /my page €:
urlp=%2Fmy%20page%20%E2%82%AC
2.1 · User identification
These parameters must be present in every hit to keep the user’s identity throughout their browsing.
| Name | Parameter | Description | Default value | Required | Example |
|---|---|---|---|---|---|
| Device ID | euidl | The user’s anonymous cross-session identifier. Do not use etuix as the value. | n/a | Yes | d213be2e-053f-4bfb-9c32-1bd6efb5687e |
| Customer ID | uid | Known customer identifier | n/a | No | customer123 |
| Hashed email | eemail | The user’s email, hashed (SHA-256) | n/a | No | 6d13c014fedf2dd6100320a05c1a46b7... |
| User profile | profile | Profile attached to the user | n/a | No | visitor |
Note
The value is checked on every call against
^[a-zA-Z0-9+#@_!=:.-]{4,64}$, and auidthat does not match it is ignored without any error. The details and consequences are in the native parameters of the web collector.
2.2 · Replay parameters
These parameters pass on the client’s actual data rather than the server’s.
| Name | Parameter | Description | Default value | Required | Example |
|---|---|---|---|---|---|
| Hit timestamp | ereplay-time | Unix timestamp at which the hit was recorded | Current time of the collection server | Yes | 1599210524 |
| Client IP | ereplay-ip | The client’s IP address. If missing, geographic resolution is affected. | IP of the server generating the hit | Yes | 12.236.2.65 |
| Client User-Agent | ereplay-ua | The client’s User-Agent. If missing, device resolution and filtering are affected. | n/a | Yes, unless ereplay-mdevicetype is set | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0 |
| Client device type | ereplay-mdevicetype | Device type to set manually if ereplay-ua cannot be provided | n/a | Yes, unless ereplay-ua is set | Desktop Phone Tablet Tv AppnativeAndroidphone AppnativeIOSphone |
2.3 · Consent management
Consent parameters must be present in 100% of the calls sent to Eulerian. Make sure the consent manager configured for the target site is the right one.
| Name | Parameter | Description | Default value | Required | Example |
|---|---|---|---|---|---|
| TCFv2 consent | gdpr_consent | Full TCFv2 string as defined in the TCF framework | n/a | Yes, unless pmcat is present | CPjTJ1aPjTJ1aOhAAAENCZCgAAAA... |
| Forbidden categories | pmcat | Categories disabled for the user (same IDs as in the interface) | n/a | Yes, unless gdpr_consent is present | 89-5-3 |
| Allow all categories | pmcat=- | Allows every available category. The value must be -. | n/a | No | - |
| Disable consent management | enoepm | If set to 1, disables consent management and collects all data | n/a | No | 1 |
3 · Implementing the tagging plan
All the parameters in sections 3.2 to 3.7 must go in the same call, alongside the generic parameters of section 3.1.
3.1 · Generic tracking · all pages
| Name | Parameter | Description | Default value | Required | Example |
|---|---|---|---|---|---|
| Page URL | url | Full URL (document location) of the current page | n/a | Yes | https://www.eulerian.com/page/to/awesome/content |
| Page name | urlp | Custom page name when the URL is not descriptive enough | n/a | No | /page/to/awesome/content |
| Page group | pggrp | Grouping by page type. Can also be configured directly in the Eulerian interface. | n/a | No | FAQ |
| Page labels | pglbl | 5 labels at most per page, separated by commas. The order matters and must be kept the same on every page. | n/a | No | sport,football,madrid |
| Referrer | rf | Source URL, mainly used for SEO attribution | n/a | Yes | https://www.bing.com/query?kw=eulerian |
| Screen resolution | ss | Resolution of the client’s screen | n/a | No | 1920x1080 |
| Colour depth | sd | Colour depth of the screen | n/a | No | 24 |
3.2 · Tracking traffic sources for attribution
Traffic sources are passed through the parameters present on the landing page. The full URL including the tracking parameters must be provided in the url parameter.
| Name | Parameter | Description | Default value | Required | Example |
|---|---|---|---|---|---|
| Campaign parameters | param1, param2, ... | Eulerian, Google Analytics or other ad tracking parameters | n/a | Yes | param1=abc¶m2=xyz |
3.3 · Tracking conversions
Eulerian supports three types of transaction: order (sale), estimate (quote / lead), scart (basket summary).
Important
These three parameters are mutually exclusive: only one can be set to
1per request.
| Name | Parameter | Description | Default value | Required | Example |
|---|---|---|---|---|---|
| Transaction ID | ref | Unique identifier of the transaction | None | Yes (order or estimate) | 518fbb68-707e-4baa-ab46-de3499786751 |
| Transaction amount | amount | Total revenue including delivery charges and taxes | 0 | Yes (order or estimate) | 321.32 |
| Order | order | Set to 1 to indicate a sale. Exclusive with estimate and scart. | 0 | Yes (if sale) | 1 |
| Quote | estimate | Set to 1 to indicate a quote or lead. Exclusive with order and scart. | 0 | Yes (if quote) | 1 |
| Basket summary | scart | Set to 1 to indicate a basket has been created. Exclusive with order and estimate. | n/a | Yes (if basket) | 1 |
| Basket cumulation | sccumul | Set to 0 when a basket summary is created | n/a | Yes (if scart) | 0 |
| Conversion status | status | Status of the transaction | PENDING | Yes (order or estimate) | VALID PENDING INVALID |
| Conversion type | type | Type of order or estimate | None | No | code-promo |
| Payment method | payment | Payment method used | None | No | Paypal |
| Margin | margin | Value of the margin on the transaction | None | No | 29.00 |
Good practice
- Make sure only one of
order,estimateandscartis set to1 - Check that the transaction ID (
ref) is unique for each order - Include the product loops (see 3.4)
3.4 · Tracking products
A call without conversion parameters that contains a single product reference is identified as a product page.
Product parameters use an index <productIndex> starting at 0, so you can send several products in the same call.
| Name | Parameter | Description | Default value | Required | Example |
|---|---|---|---|---|---|
| Product reference (SKU) | prdr<productIndex> | The product’s SKU reference | n/a | Yes | prdr0=123456 |
| Product name | prdn<productIndex> | Name of the product | n/a | Yes | prdn0=my-blue-shoes |
| Product price | prda<productIndex> | Unit price. Required for scart, estimate and order calls. | n/a | Yes (if prdr provided) | prda0=199.00 |
| Quantity | prdq<productIndex> | Product quantity. Required for scart, estimate and order calls. | n/a | Yes (if prdr provided) | prdq0=2 |
| Product group | prdg<productIndex> | Product group or category. Lets you set a margin rate per group. | n/a | No | prdg0=shoes |
| Custom parameter key | prdp<productIndex>k<productParamIndex> | Key of a custom parameter for the product | n/a | No | prdp0k0=marque |
| Custom parameter value | prdp<productIndex>d<productParamIndex> | Value of the custom parameter | n/a | No | prdp0d0=jordan |
3.5 · Tracking internal search engine queries
| Name | Parameter | Description | Default value | Required | Example |
|---|---|---|---|---|---|
| Engine name | eise | Name of the internal search engine | n/a | Yes (if search page) | eise=mon-moteur-interne |
| Number of results | eisr | Number of results returned for the query | n/a | No | eisr=13 |
| Search parameter key | eisk<index> | Key of the search parameter | n/a | Yes (if search page) | eisk0=arrivee |
| Search parameter value | eisd<index> | Value of the search parameter | n/a | Yes (if search page) | eisd0=bordeaux |
3.6 · Advanced tracking of browsing journeys
| Name | Parameter | Description | Default value | Required | Example |
|---|---|---|---|---|---|
| Subkey2 | custom_param | Main traffic segmentation key | n/a | No | audience intentionnelle |
3.7 · Tracking events
These parameters must be included in every event request. Indexes start at 0.
| Name | Parameter | Description | Default value | Required | Example |
|---|---|---|---|---|---|
| Action name | actn<index> | Name of the action fired | n/a | Yes (if action) | actn0=utilisateur_loggué |
| Action mode | actm<index> | Building closed funnels. Do not use for simple event counting. | out | No | actm0=in actm0=out |
| Action label | actl<index> | One or more labels (max. 5) attached to the action | n/a | No | actl0=label1,label2,,,label5 |
| Unique reference | actr<index> | Unique reference for the action, stored in datamining | n/a | No | actr0=ref-action |
| Parameter key | actp<index>n<index> | Key of a parameter attached to the action | n/a | No | actp0n0=brochure |
| Parameter value | actp<index>v<index> | Value of the parameter attached to the action | n/a | No | actp0v0=formation-finance |
| Parameter type | actp<index>f<index> | Declares that the parameter has a finite number of values. Needed to store the values in Eulerian. | 1 | No | actp0f0=1 |
3.8 · Custom dimensions and user segments
Any custom parameter can be added freely to the call in the form key=value. These parameters can then be declared as Custom Dimensions or User Segments in the Eulerian interface.
mon_param=ma_valeur&autre_param=autre_valeur
3.9 · Common app parameters (apps)
| Name | Parameter | Description | Default value | Required | Example |
|---|---|---|---|---|---|
| OS version | eos | Operating system version, used for device filtering | n/a | Yes | eos=android4.4.4 |
| Hardware | ehw | Hardware name, used for device filtering | n/a | Yes | ehw=lge nexus 4 |
| App name | ea-appname | Name or bundle ID of the app | n/a | Yes | ea-appname=com.eulerian.app |
| App version | ea-appversion | App version (increments the upgrade KPIs) | n/a | Yes | ea-appversion=3.4 |
| App attribution | ea-uid-lookup | Set to 1 on first launch to trigger attribution handling | 0 | No | ea-uid-lookup=1 |
| App already installed | ea-appinstalled | Set to 1 if the app was already installed before this tracking setup | 0 | No | ea-appinstalled=1 |
3.10 · Android app parameters
| Name | Parameter | Description | Default value | Required | Example |
|---|---|---|---|---|---|
| Android ADID | ea-android-adid | Android advertising identifier for attribution and retargeting | n/a | Yes | ea-android-adid=da5d6573-6f9c-4085-8dd0-32f3b773294b |
| Android Referer | ea-android-referer | UUID used for cross-device on a click | n/a | Yes | ea-android-referer=dc8e5a5d-d78a-4e84-8bec-5ad8f649c652 |
| Android opt-out | ea-android-islat | Limits tracking for the euidl provided | n/a | Yes | ea-android-islat=1 |
3.11 · iOS app parameters
| Name | Parameter | Description | Default value | Required | Example |
|---|---|---|---|---|---|
| iOS IDFA | ea-ios-idfa | iOS advertising identifier for attribution and retargeting | n/a | Yes | ea-ios-idfa=da5d6573-6f9c-4085-8dd0-32f3b773294b |
| iOS IDFV | ea-ios-idfv | iOS vendor identifier for attribution | n/a | Yes | ea-ios-idfv=da5d6573-6f9c-4085-8dd0-32f3b773294b |
| iOS opt-out | ea-ios-islat | Limits tracking for the euidl provided | n/a | Yes | ea-ios-islat=1 |
3.12 · Webview
| Name | Parameter | Description | Default value | Required | Example |
|---|---|---|---|---|---|
| Bypass Visitor ID | ea-euidl-bypass | Passes the native euidl to the webview to keep identity continuous between the native environment and the webview | n/a | Yes (if webview) | ea-euidl-bypass=da5d6573-6f9c-4085-8dd0-32f3b773294b |
| Device type | edev | Forces the device type to ensure correct filtering. Useful in a webview or on mobile. | n/a | Yes (if webview or smartphone) | edev=AppnativeIOSphone edev=AppnativeAndroidphone |
The device type is not case-sensitive, here as in ereplay-mdevicetype (section 2.2): AppnativeIOSphone and APPNATIVEIOSPHONE are the same value.
4 · Sample tags
Parameters marked with a * are required. Mobile parameters (Android / iOS) are to be added on top of the Web parameters for each tag.
4.1 · Parameters common to all tags
These parameters must be present in every call, whatever the type of tag.
https://[TRACKING_HOSTNAME]/collector/[WEBSITE_NAME]/[*RANDOM*]?
&ereplay-ip=[*IP_CLIENT]
&ereplay-ua=[*USER-AGENT]
&ereplay-mdevicetype=[DEVICE_TYPE] // only if ereplay-ua is not available
&ereplay-time=[*TIMESTAMP_UNIX]
&gdpr_consent=[*CONSENT_STRING_TCFV2]
&euidl=[*VISITOR_ID]
&url=[*PAGE_URL]
&urlp=[PAGE_NAME]
&pggrp=[PAGE_GROUP]
&rf=[REFERRER]
&ss=[SCREEN_RESOLUTION]
&sd=[SCREEN_COLOR_DEPTH]
&eemail=[EMAIL_HASH_SHA256]
&uid=[CUSTOMER_ID]
&language=[USER_LANGUAGE]
&country=[USER_COUNTRY]
4.2 · Common mobile parameters
To be added on top of the Web parameters for any tag fired in a mobile app.
Android:
&eos=[*OS_VERSION]
&ehw=[*DEVICE_HARDWARE]
&ea-appname=[*APP_BUNDLE_ID]
&ea-appversion=[*APP_VERSION]
&ea-appinstalled=[1] // if the app was already installed before this setup
&ea-uid-lookup=[1] // on first launch only
&edev=[*AppnativeAndroidphone|AppnativeAndroidtablet]
&ea-android-adid=[*ANDROID_ADID]
&ea-android-referer=[*ANDROID_UUID]
iOS:
&eos=[*OS_VERSION]
&ehw=[*DEVICE_HARDWARE]
&ea-appname=[*APP_BUNDLE_ID]
&ea-appversion=[*APP_VERSION]
&ea-appinstalled=[1] // if the app was already installed before this setup
&ea-uid-lookup=[1] // on first launch only
&edev=[*AppnativeIOSphone|AppnativeIOStablet]
&ea-ios-idfa=[*IDFA]
&ea-ios-idfv=[*IDFV]
4.3 · Generic tag
Purpose: count page views on every page that has no specific tag.
Trigger: when each generic page loads.
Note
In a conversion funnel, fire only one tag per step, with a unique
urlpper page:urlp=tunnel_conversion_etape_1,urlp=tunnel_conversion_etape_2, etc.
https://[TRACKING_HOSTNAME]/collector/[WEBSITE_NAME]/[*RANDOM*]?
// --- Common parameters (see above) ---
No specific parameter: the generic tag relies solely on the common parameters.
4.4 · Product tag
Purpose: count product page views and collect the associated product data.
Trigger: when any page containing an identified product loads (product page, product modal, etc.).
Note
The
prdr0parameter (product reference) is required for Eulerian to recognise the tag as a product tag.
// --- Common parameters (see above) ---
&prdr0=[*PRODUCT_REF]
4.5 · Internal search engine tag
Purpose: send to Eulerian the queries made in the internal search engine.
Trigger: when the results page loads, after a query is submitted.
The eisk<index> / eisd<index> pairs must always be used together and can be repeated to send several search criteria.
// --- Common parameters (see above) ---
&eise=[*SEARCH_ENGINE_NAME]
&eisr=[*NB_RESULTS]
&eisk0=[SEARCH_KEY_0]
&eisd0=[SEARCH_VALUE_0]
&eisk1=[SEARCH_KEY_1] // repeat if there are several criteria
&eisd1=[SEARCH_VALUE_1]
Example · search engine on the home page:
&eise=moteur_home
&eisr=11
&eisk0=champ_recherche_destination
&eisd0=paris
Example · train search engine:
&eise=moteur_recherche_train
&eisr=11
&eisk0=champ_recherche_ville_depart
&eisd0=lyon
&eisk1=champ_recherche_gare
&eisd1=gare_de_lyon
4.6 · Quote tag (estimate)
Purpose: measure the conversion of a visitor into a lead after a quote or option is submitted.
Trigger: when the user submits the quote.
Note
When a quote is accepted and becomes a real sale, a separate sale tag must fire (without
estimate=1). No technical link is needed between the two tags.
// --- Common parameters (see above) ---
&estimate=1
&ref=[*REF_DEVIS]
&amount=[*MONTANT_DEVIS]
4.7 · Basket tag (scart)
Purpose: count the start of a basket, measure conversion and abandonment rates, and collect the details of its contents.
Trigger: when the basket page loads, as soon as the user reaches that step.
Note
Always start each product with
prdr<productIndex>. Custom product parameters (prdp) let you enrich each segment with its business attributes.
Multi-product example:
&prdr0=ref_product1
&prdn0=nom_product1
&prda0=10
&prdr1=ref_product2
&prdn1=nom_product2
&prda1=123
Full tag:
// --- Common parameters (see above) ---
&scart=1
&sccumul=0
&prix_total=[PRIX_TOTAL]
// Product 0 (repeat the block, incrementing the index for each product)
&prdr0=[*PRODUCT_REF]
&prdg0=[PRODUCT_GROUP]
&prda0=[PRODUCT_PRICE]
&prdp0k0=nom_transporteur
&prdp0d0=[VALUE]
&prdp0k1=prix_transporteur
&prdp0d1=[VALUE]
&prdp0k2=type_trajet
&prdp0d2=[VALUE]
&prdp0k3=code_gare_origine
&prdp0d3=[VALUE]
&prdp0k4=label_gare_origine
&prdp0d4=[VALUE]
&prdp0k5=code_ville_origine
&prdp0d5=[VALUE]
&prdp0k6=label_ville_origine
&prdp0d6=[VALUE]
&prdp0k7=code_gare_destination
&prdp0d7=[VALUE]
&prdp0k8=label_gare_destination
&prdp0d8=[VALUE]
&prdp0k9=code_ville_destination
&prdp0d9=[VALUE]
4.8 · Sale tag (order)
Purpose: measure final conversions (confirmed purchases) and collect the transaction information.
Trigger: when the purchase confirmation page loads (thank you page).
Note
refandamountare required. The product structure is the same as in the basket tag.
// --- Common parameters (see above) ---
&order=1
&ref=[*PURCHASE_ID]
&amount=[*TOTAL_PRICE]
&type=[TYPE_DE_VENTE]
&payment=[PAYMENT_MODE]
&status=[VALID|INVALID|PENDING]
// Product 0 (same structure as the basket tag)
&prdr0=[*PRODUCT_REF]
&prdg0=[PRODUCT_GROUP]
&prda0=[PRODUCT_PRICE]
&prdp0k0=nom_transporteur
&prdp0d0=[VALUE]
// ... (same prdp parameters as the basket tag)
// Custom parameters (as in the basket tag)
&duree_sejour=[VALUE]
&date_depart=[VALUE]
// ...
4.9 · Action tag (events)
Purpose: measure user interactions · clicks, gestures, push notifications, modals closed, etc.
Trigger: immediately after an action has actually been carried out (not on hover).
Note
enopagedt=1is required to show that this is not a page view. Several actions can be sent in the same call by repeating the indexes.
Index structure:
<index-action>: one action = one index (0, 1, 2…)<index-parametre>: parameters are indexed independently for each action
Example · search engine action:
&actn0=moteur-recherche-destination
&actl0=mon_label1,mon_label2,,,mon_label5
&actp0n0=ville-depart
&actp0v0=paris
&actp0n1=ville-destination
&actp0v1=lyon
Example · several actions in the same call:
&actn0=action1
&actl0=label1,,label3,,label5
&actn1=action2
&actl1=label1
&actn2=action3
&actl2=,,label3,,label5
Generic action tag · Web:
// --- Common parameters (see above) ---
&enopagedt=1
&actn<index>=[*NOM_ACTION]
&actl<index>=[label1,label2,label3,label4,label5]
&actp<index-action>n<index-param>=[CLÉ_PARAM]
&actp<index-action>v<index-param>=[VALEUR_PARAM]
Search engine action tag · Web:
// --- Common parameters (see above) ---
&enopagedt=1
&actn0=[*NOM_MOTEUR_RECHERCHE]
&actl0=[label1,label2,label3,label4,label5]
&actp0n0=[CHAMP_RECHERCHE_0]
&actp0v0=[VALEUR_RECHERCHE_0]
&actp0n1=[CHAMP_RECHERCHE_1]
&actp0v1=[VALEUR_RECHERCHE_1]
5 · Further technical information
5.1 · Cache busting
For GET calls, we recommend adding a cache-busting mechanism to stop collection requests from being cached.
There are two ways to do it:
- add a random value as the last part of the path;
- add the
ea-rndparameter with a unique or random value.
Example:
https://<tracking-domain>/collector/<site>/<random-value>
or
https://<tracking-domain>/collector/<site>?ea-rnd=<random-value>
5.2 · Request size limits
For POST calls, the body must contain a single URL-encoded payload. The maximum body size is 8192 bytes.
For GET calls, the full URL must not exceed 8000 bytes.
If you have a large amount of data to send, POST is recommended.
5.3 · Checking the payload before going live
Eulerian can return a 2xx code even if some parameters are missing, misnamed or badly formatted.
Before going live, check in particular:
- the collection domain used;
- the site name;
- the required parameters;
- the encoding of the values;
- the presence of a user identifier where one is required;
- the consistency of the consent parameters;
- that the expected conversions, products and events come through correctly.
5.4 · Reference documentation
For advanced implementations or specific cases, refer to the full documentation of the Eulerian Measurement Protocol.