siteMapPerso

Changes

dist/mySiteMap.js 59(+51 -8)

src/mySiteMap.js 55(+45 -10)

Details

dist/mySiteMap.js 59(+51 -8)

diff --git a/dist/mySiteMap.js b/dist/mySiteMap.js
index 91b8281..4802e15 100644
--- a/dist/mySiteMap.js
+++ b/dist/mySiteMap.js
@@ -236,6 +236,34 @@ var landingDolarListeners = [{
   class: ".dolar .markets table tr",
   labelName: 'dolares',
   ItPropagation: false
+}, {
+  class: "nav.breadcrumb ol li a span",
+  labelName: 'Breadcrumb',
+  ItPropagation: false
+}];
+
+//SELECTORES MERCADOS ONLINE
+var mercadosOnlineListeners = [{
+  class: "nav.breadcrumb ol li a span",
+  labelName: 'Breadcrumb',
+  ItPropagation: false
+}];
+
+//SELECTORES Cotizaciones
+var cotizacionesListeners = [{
+  class: "nav.breadcrumb ol li a span",
+  labelName: 'Breadcrumb',
+  ItPropagation: false
+}, {
+  class: ".markets.button #button-follow",
+  labelName: 'Seguir (cotización)',
+  ItPropagation: false
+}];
+var confirmacionOnAirListeners = [];
+var streamingExclusivoListeners = [{
+  class: "#paywallButton-btn",
+  labelName: 'Quiero participar',
+  ItPropagation: false
 }];
 
 //Interacciones
@@ -251,29 +279,41 @@ var logInWallInteractions = {
 var landingDolarInteractions = {
   name: "Landing Dólar"
 };
+var mercadosOnlineInteractions = {
+  name: "Mercados online"
+};
+var confirmacionOnAirInteractions = {
+  name: "Confirmacion On Air"
+};
+var streamingExclusivoInteractions = {
+  name: "Streaming Exclusivo"
+};
 var home = new PageType("Home", "cronista.com", homeInteractions, homeListeners, false);
 var payWall = new PageType("PayWall", "cronista.com/suscripciones", payWallInteractions, payWallListeners, false);
 var logInWall = new PageType("LogInWall", "cronista.com/ingresa", logInWallInteractions, logInWallListeners, false);
 var landingDolar = new PageType("Landing Dólar", "cronista.com/MercadosOnline/dolar.html", landingDolarInteractions, landingDolarListeners, document.querySelector(".page.dolar"));
+var mercadosOnline = new PageType("Mercados Online", "cronista.com/informacion-de-mercados", mercadosOnlineInteractions, mercadosOnlineListeners, false);
+var confirmacionOnAir = new PageType("ConfirmacionOnAir", "cronista.com/on-air/confirmacion-on-air", confirmacionOnAirInteractions, confirmacionOnAirListeners, false);
+var streamingExclusivo = new PageType("Streaming Exclusivo", "cronista.com/on-air/streaming-exclusivo", streamingExclusivoInteractions, streamingExclusivoListeners, false);
 if (validarParteDeURL(window.location.href, "MercadosOnline") && !validarParteDeURL(window.location.href, "cronista.com/MercadosOnline/dolar.html")) {
-  var mercadosOnlineInteractions = {
+  var cotizacionesInteractions = {
     name: SalesforceInteractions.CatalogObjectInteractionName.ViewCatalogObject,
     catalogObject: {
-      type: "MercadosOnline",
+      type: "Cotizaciones",
       id: window.cronistaDataLayer[0].articleProperty.id,
       attributes: {
         url: window.location.href,
         name: SalesforceInteractions.cashDom(".section-header-title a").text()
       },
       relatedCatalogObjects: {
-        TipoDeCotizacion: SalesforceInteractions.DisplayUtils.pageElementLoaded("html").then(function (ele) {
+        TipoDeCotizaciones: SalesforceInteractions.DisplayUtils.pageElementLoaded("html").then(function (ele) {
           return [window.cronistaDataLayer[0].articleProperty.category.toUpperCase()];
         })
       }
     }
   };
-  var mercadosOnline = new PageType("Mercados Online", "cronista.com/MercadosOnline", mercadosOnlineInteractions, mercadosOnlineInteractions, false);
-  pages.push(mercadosOnline);
+  var cotizaciones = new PageType("Cotizaciones", "cronista.com/MercadosOnline", cotizacionesInteractions, cotizacionesListeners, false);
+  pages.push(cotizaciones);
 }
 if (document.querySelector("#pagecontent .news") || document.querySelector("#pagecontent .news-minisite") || document.querySelector("#pagecontent .news-es") || document.querySelector("#pagecontent .news-mx")) {
   var metaTag = document.querySelector('meta[property="og:image"]');
@@ -313,9 +353,10 @@ if (document.querySelector("#pagecontent .news") || document.querySelector("#pag
 }
 
 //Función que devuelve el array con las info de las pageType
-//[home, payWall, article, logInWall, landingDolar, mercadosOnline]
+/*[home, payWall, article, logInWall, landingDolar, mercadosOnline, confirmacionOnAir,
+streamingExclusivo]*/
 function Pages() {
-  pages.push(home, payWall, logInWall, landingDolar);
+  pages.push(home, payWall, logInWall, landingDolar, mercadosOnline, confirmacionOnAir, streamingExclusivo);
   return pages;
 }
 
@@ -335,10 +376,11 @@ function PageType(name, myUrl, interaction, myEvents, IsTemplate) {
       isMatch = true;
     } else {
       isMatch = url === "".concat(enviroment).concat(myUrl) ? true : false;
-      if (name == "Mercados Online" && validarParteDeURL(url, "MercadosOnline")) {
+      if (name == "Cotizaciones" && validarParteDeURL(url, "MercadosOnline")) {
         isMatch = true;
       }
     }
+    console.log(isMatch);
     return isMatch;
   };
   this.interaction = interaction;
@@ -365,6 +407,7 @@ function GlobalActions(actionEvent) {
     actionEvent.user.attributes.isAnonimus = isAnonimus;
     actionEvent.user.identities.userIdCms = idUser;
   }
+  console.log(actionEvent);
   return actionEvent;
 }
 function PayWallIteractionName() {

src/mySiteMap.js 55(+45 -10)

diff --git a/src/mySiteMap.js b/src/mySiteMap.js
index 8c22546..fb4a5a0 100644
--- a/src/mySiteMap.js
+++ b/src/mySiteMap.js
@@ -88,7 +88,25 @@ let articleListeners = [
 
 //SELECTORES LANDING DÓLAR
 let landingDolarListeners = [
-    { class: ".dolar .markets table tr", labelName: 'dolares', ItPropagation: false }
+    { class: ".dolar .markets table tr", labelName: 'dolares', ItPropagation: false },
+    { class: `nav.breadcrumb ol li a span`, labelName: 'Breadcrumb', ItPropagation: false },
+]
+
+//SELECTORES MERCADOS ONLINE
+let mercadosOnlineListeners = [
+    { class: `nav.breadcrumb ol li a span`, labelName: 'Breadcrumb', ItPropagation: false },
+]
+
+//SELECTORES Cotizaciones
+let cotizacionesListeners = [
+    { class: `nav.breadcrumb ol li a span`, labelName: 'Breadcrumb', ItPropagation: false },
+    { class: `.markets.button #button-follow`, labelName: 'Seguir (cotización)', ItPropagation: false },
+]
+
+let confirmacionOnAirListeners = []
+
+let streamingExclusivoListeners = [
+    { class: "#paywallButton-btn", labelName: 'Quiero participar', ItPropagation: false }
 ]
 
 //Interacciones
@@ -108,24 +126,39 @@ let landingDolarInteractions = {
     name: "Landing Dólar"
 }
 
+let mercadosOnlineInteractions = {
+    name: "Mercados online"
+}
+
+let confirmacionOnAirInteractions = {
+    name: "Confirmacion On Air"
+}
+
+let streamingExclusivoInteractions = {
+    name: "Streaming Exclusivo"
+}
 
 const home = new PageType("Home", "cronista.com", homeInteractions, homeListeners, false);
 const payWall = new PageType("PayWall", "cronista.com/suscripciones", payWallInteractions, payWallListeners, false);
 const logInWall = new PageType("LogInWall", "cronista.com/ingresa", logInWallInteractions, logInWallListeners, false);
 const landingDolar = new PageType("Landing Dólar", "cronista.com/MercadosOnline/dolar.html", landingDolarInteractions, landingDolarListeners, document.querySelector(".page.dolar"));
+const mercadosOnline = new PageType("Mercados Online", "cronista.com/informacion-de-mercados", mercadosOnlineInteractions, mercadosOnlineListeners, false);
+const confirmacionOnAir = new PageType("ConfirmacionOnAir", "cronista.com/on-air/confirmacion-on-air", confirmacionOnAirInteractions, confirmacionOnAirListeners, false);
+const streamingExclusivo = new PageType("Streaming Exclusivo", "cronista.com/on-air/streaming-exclusivo", streamingExclusivoInteractions, streamingExclusivoListeners, false);
+
 
 if (validarParteDeURL(window.location.href, "MercadosOnline") && !validarParteDeURL(window.location.href, "cronista.com/MercadosOnline/dolar.html")) {
-    let mercadosOnlineInteractions = {
+    let cotizacionesInteractions = {
         name: SalesforceInteractions.CatalogObjectInteractionName.ViewCatalogObject,
         catalogObject: {
-            type: "MercadosOnline",
+            type: "Cotizaciones",
             id: window.cronistaDataLayer[0].articleProperty.id,
             attributes: {
                 url: window.location.href,
                 name: SalesforceInteractions.cashDom(".section-header-title a").text(),
             },
             relatedCatalogObjects: {
-                TipoDeCotizacion: SalesforceInteractions.DisplayUtils.pageElementLoaded(
+                TipoDeCotizaciones: SalesforceInteractions.DisplayUtils.pageElementLoaded(
                     "html",
                 ).then((ele) => {
                     return [window.cronistaDataLayer[0].articleProperty.category.toUpperCase()]
@@ -133,8 +166,8 @@ if (validarParteDeURL(window.location.href, "MercadosOnline") && !validarParteDe
             },
         },
     }
-    let mercadosOnline = new PageType("Mercados Online", "cronista.com/MercadosOnline", mercadosOnlineInteractions, mercadosOnlineInteractions, false);
-    pages.push(mercadosOnline)
+    let cotizaciones = new PageType("Cotizaciones", "cronista.com/MercadosOnline", cotizacionesInteractions, cotizacionesListeners, false);
+    pages.push(cotizaciones)
 }
 
 if (document.querySelector("#pagecontent .news") || document.querySelector("#pagecontent .news-minisite") || document.querySelector("#pagecontent .news-es") || document.querySelector("#pagecontent .news-mx")) {
@@ -182,9 +215,10 @@ if (document.querySelector("#pagecontent .news") || document.querySelector("#pag
 }
 
 //Función que devuelve el array con las info de las pageType
-//[home, payWall, article, logInWall, landingDolar, mercadosOnline]
+/*[home, payWall, article, logInWall, landingDolar, mercadosOnline, confirmacionOnAir,
+streamingExclusivo]*/
 function Pages() {
-    pages.push(home, payWall, logInWall, landingDolar)
+    pages.push(home, payWall, logInWall, landingDolar, mercadosOnline, confirmacionOnAir, streamingExclusivo)
     return pages
 }
 
@@ -204,10 +238,11 @@ function PageType(name, myUrl, interaction, myEvents, IsTemplate) {
             isMatch = true
         } else {
             isMatch = (url === `${enviroment}${myUrl}` ? true : false);
-            if (name == "Mercados Online" && validarParteDeURL(url, "MercadosOnline")) {
+            if (name == "Cotizaciones" && validarParteDeURL(url, "MercadosOnline")) {
                 isMatch = true
             }
         }
+        console.log(isMatch)
         return isMatch;
     };
     this.interaction = interaction;
@@ -236,7 +271,7 @@ function GlobalActions(actionEvent) {
         actionEvent.user.attributes.isAnonimus = isAnonimus
         actionEvent.user.identities.userIdCms = idUser;
     }
-
+    console.log(actionEvent)
     return actionEvent;
 }