siteMapPerso
Changes
src/mySiteMap.js 20(+20 -0)
Details
src/mySiteMap.js 20(+20 -0)
diff --git a/src/mySiteMap.js b/src/mySiteMap.js
index e31031b..4005be4 100644
--- a/src/mySiteMap.js
+++ b/src/mySiteMap.js
@@ -123,8 +123,28 @@ if (document.querySelector("#pagecontent .news") || document.querySelector("#pag
canonicalUrl: window.cronistaDataLayer[0].articleProperty.canonica,
accessCondition: window.cronistaDataLayer[0].articleProperty.conditionsOfAccess
},
+ relatedCatalogObjects: {
+ Category: SalesforceInteractions.DisplayUtils.pageElementLoaded(
+ "html",
+ ).then((ele) => {
+ console.log(ele)
+ return [window.cronistaDataLayer[0].articleProperty.category.toUpperCase()]
+ }),
+ Autor: SalesforceInteractions.DisplayUtils.pageElementLoaded(
+ "html",
+ ).then((ele) => {
+ return [window.cronistaDataLayer[0].articleProperty.authorName.toUpperCase()]
+ }),
+ CondicionDeAccesos: SalesforceInteractions.DisplayUtils.pageElementLoaded(
+ "html",
+ ).then((ele) => {
+ return [window.cronistaDataLayer[0].articleProperty.conditionsOfAccess.toUpperCase()]
+ }),
+ },
},
+
}
+ console.log(interaction)
let article = new PageType("Article", window.location.href, interaction, articleListeners, document.querySelector("#pagecontent .news"));
pages.push(article)
}