var dataLayer = window["dataLayer"] || []; if (!window.wsf) { window.wsf = { AnalyticsVariables: {} }; } window.wsf.AnalyticsVariables = {"event_name":"internal search","eventCategory":"internal search","search_keyword":null,"eventAction":"search::manual","eventLabel":null,"method":"manual"}; var initData = dataLayer[0]; if (initData !== undefined) { dataLayer[0] = Object.assign({}, initData, window.wsf.AnalyticsVariables); } else { dataLayer.push(window.wsf.AnalyticsVariables); }

Résultats

var dataLayer = window["dataLayer"] || []; if (!window.wsf) { window.wsf = { AnalyticsVariables: {} }; } window.wsf.AnalyticsVariables = {"numberResults":56}; var initData = dataLayer[0]; if (initData !== undefined) { if (initData["numberResults"] !== undefined) { window.wsf.AnalyticsVariables["numberResults"] = +initData["numberResults"] + 56; } dataLayer[0] = Object.assign({}, initData, window.wsf.AnalyticsVariables); } else { dataLayer.push(window.wsf.AnalyticsVariables); }
Ignorer la curseur: ingrédients

56 Résultats de la recherche – Ingrédients

{ "@context": "http://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type":"ListItem", "position": 1, "item": { "@id": "/", "name": "Home" } } , { "@type":"ListItem", "position": 2, "item": { "@id": "https://www.lorealparis.ch/fr-ch/search-page", "name": "Page de recherche" } } , { "@type":"ListItem", "position": 3, "item": { "@id": "https://www.lorealparis.ch/fr-ch/search-page/article-results", "name": "Résultats de recherche" } } ] }