Merchandising tracking
Merchandising tracking counts impressions and clicks on:
- promotional banners;
- product recommendation blocks.
The data is available in the dedicated report:
Rapport de performance campagnes merchandiser
Available formats
There are two ways to integrate it:
| Format | When to use it |
|---|---|
| JavaScript | When tracking can be fired from the site without changing the redirect URLs. |
| Redirect | When the technical context does not allow JavaScript. |
Tracking impressions in JavaScript
Product recommendation block
For a product recommendation block, declare each product displayed with tpviewprd, then fire the campaign impression with dyntpview.
EA_push("tpviewprd", ["REFERENCE_PRODUIT_1", "POSITION_PRODUIT_1"]);
EA_push("tpviewprd", ["REFERENCE_PRODUIT_2", "POSITION_PRODUIT_2"]);
EA_push("tpviewprd", ["REFERENCE_PRODUIT_3", "POSITION_PRODUIT_3"]);
EA_push("dyntpview", [
"NOM_DU_SITE_EULERIAN",
"NOM_DE_LA_CAMPAGNE",
"EMPLACEMENT",
"PUBLISHER",
"MEDIA",
"CATEGORIE",
]);
tpviewprd must be called once per product displayed.
| Parameter | Required | Description |
|---|---|---|
REFERENCE_PRODUIT | Yes | The reference of the product displayed. |
POSITION_PRODUIT | No | The product’s position in the promotional block. |
Static banner
For a static banner, you do not need to call tpviewprd.
Only the dyntpview function is called:
EA_push("dyntpview", [
"NOM_DU_SITE_EULERIAN",
"NOM_DE_LA_CAMPAGNE",
"EMPLACEMENT",
"PUBLISHER",
"MEDIA",
"CATEGORIE",
]);
Example
EA_push("tpviewprd", ["prod1", 1]);
EA_push("tpviewprd", ["prod2", 2]);
EA_push("tpviewprd", ["prod3", 3]);
EA_push("tpviewprd", ["prod4", 4]);
EA_push("tpviewprd", ["prod5", 5]);
EA_push("dyntpview", [
"eulerian",
"soldes-hiver-2014",
"push_accessoire",
"eulerian",
"generic",
"regle-128",
]);
Tracking clicks in JavaScript (DEPRECATED for the JS format)
The JavaScript click format given here belongs to version V1 of the EA tag, which is marked as deprecated.
EA_tpclickposition(POSITION_PRODUIT_CLIQUE, NOMBRE_TOTAL_PRODUITS);
EA_tpclickproduct("REFERENCE_PRODUIT_CLIQUE");
EA_dyntpclick(
"NOM_DU_SITE_EULERIAN",
"NOM_DE_LA_CAMPAGNE",
"EMPLACEMENT",
"NOM_DU_SITE_EULERIAN",
"MEDIA",
"CATEGORIE"
);
| Function | What it does |
|---|---|
EA_tpclickposition | Optional. Passes the position of the clicked product in the promotional block. |
EA_tpclickproduct | Passes the reference of the clicked product. |
EA_dyntpclick | Fires the call that counts the click. |
EA_tpclickproduct and EA_tpclickposition are only needed for product recommendation blocks.
Example
function myclick() {
EA_tpclickposition(3, 5);
EA_tpclickproduct("prod1");
EA_dyntpclick(
"eulerian",
"soldes-hiver-2014",
"banniere-30%",
"eulerian",
"generic",
"promo"
);
}
Redirect format
You can use the redirect format when the technical context does not allow JavaScript.
Tracking impressions by redirect
http(s)://<DOMAIN>/tpview/<NOM_DU_SITE_EULERIAN>/<NOM_DE_LA_CAMPAGNE>/<EMPLACEMENT>/<NOM_DU_SITE_EULERIAN>/generic/<NOMBRE_ALEATOIRE>?evprdr0=<REFERENCE_PRODUIT_1>&evprdpos0=<POSITION_PRODUIT_1>&evprdr1=<REFERENCE_PRODUIT_2>&evprdpos1=<POSITION_PRODUIT_2>&url=<URL_DE_LA_PAGE_ENCODEE>&
Example
https://et.eulerian.net/tpview/site-eulerian/Push-produit/Push-Produit-Ficheproduit-marque/site-eulerian/generic/1579153199?evprdr0=52823&evprdpos0=1&evprdr1=127681&evprdpos1=2&evprdr2=123456&evprdpos2=3&url=http%3A%2F%2Fwww.eulerian.net%2F&
Tracking clicks by redirect
http(s)://<DOMAIN>/tpclick/<NOM_DU_SITE_EULERIAN>/<NOM_DE_LA_CAMPAGNE>/<EMPLACEMENT>/<NOM_DU_SITE_EULERIAN>/generic/<NOMBRE_ALEATOIRE>?ecpos=<POSITION_PRODUIT_CLIQUE>&ecnbr=<NOMBRE_TOTAL_PRODUITS>&ecprdr=<REFERENCE_PRODUIT>&eurl=<URL_DE_LANDING_ENCODEE>
Example
https://et.eulerian.net/tpclick/site-eulerian/Push-produit/Push-Produit-Ficheproduit-marque/site-eulerian/generic/1304654421?ecpos=10&ecnbr=12&ecprdr=171878&eurl=http%3A%2F%2Fwww.eulerian.net%2Fproduit%2F171878
Parameters
| Parameter | Required | Description |
|---|---|---|
<DOMAIN> | Yes | The tracking subdomain. |
<NOM_DU_SITE_EULERIAN> | Yes | The site’s Eulerian name, as it appears in the site list of the Eulerian account interface. |
<NOM_DE_LA_CAMPAGNE> | Yes | The campaign name. It matches the segmentation by campaign in the report. |
<EMPLACEMENT> | Yes | The placement of the banner or block. It matches the segmentation by banner in the report. |
<MEDIA> | Yes | Leave the value as generic. |
<NOMBRE_ALEATOIRE> | Yes | A random string of digits or letters. |
<URL_DE_LA_PAGE_ENCODEE> | Yes | The current page’s URL, encoded. |
<URL_DE_LANDING_ENCODEE> | Yes | The landing URL after the click, encoded. |
<POSITION_PRODUIT_CLIQUE> | Yes | The position of the clicked product in the recommendation block. |
<NOMBRE_TOTAL_PRODUITS> | Yes | The total number of products in the recommendation block. |
<REFERENCE_PRODUIT> | Yes | The product reference. |
<REFERENCE_PRODUIT_CLIQUE> | Yes | The reference of the clicked product. |
Points to watch
- For a static banner, only the campaign call is needed.
- For a product recommendation block, every product displayed must be passed with its reference.
- The product position is optional for JavaScript impressions, but it lets you analyse performance by display order within the block.
- URLs passed in the
urloreurlparameters must be encoded. - By redirect, the
ecnbrparameter must contain the total number of products in the block. - The JavaScript click format shown here belongs to version V1 of the EA tag, which is deprecated.