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);
}
Resultados
var dataLayer = window["dataLayer"] || [];
if (!window.wsf) {
window.wsf = { AnalyticsVariables: {} };
}
window.wsf.AnalyticsVariables = {"numberResults":69};
var initData = dataLayer[0];
if (initData !== undefined) {
if (initData["numberResults"] !== undefined) {
window.wsf.AnalyticsVariables["numberResults"] = +initData["numberResults"] + 69;
}
dataLayer[0] = Object.assign({}, initData, window.wsf.AnalyticsVariables);
} else {
dataLayer.push(window.wsf.AnalyticsVariables);
}
{
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type":"ListItem",
"position": 1,
"item": {
"@id": "/",
"name": "Home"
}
}
,
{
"@type":"ListItem",
"position": 2,
"item": {
"@id": "https://es.lorealparisusa.com/search-page",
"name": "Pagina de busqueda"
}
}
,
{
"@type":"ListItem",
"position": 3,
"item": {
"@id": "https://es.lorealparisusa.com/search-page/product results",
"name": "Product Results"
}
}
]
}