siteMapPerso
Changes
mySiteMap.js 7(+4 -3)
Details
mySiteMap.js 7(+4 -3)
diff --git a/mySiteMap.js b/mySiteMap.js
index 44a1cdc..b6c0afe 100644
--- a/mySiteMap.js
+++ b/mySiteMap.js
@@ -80,7 +80,7 @@ const home = new PageType("Home", "cronista.com", homeInteractions, homeListener
const payWall = new PageType("PayWall", `cronista.com/suscripciones`, payWallInteractions, payWallListeners, false);
if (document.querySelector("#pagecontent .news") || document.querySelector("#pagecontent .news-minisite") || document.querySelector("#pagecontent .news-es") || document.querySelector("#pagecontent .news-mx")) {
- let interactions = {
+ let interaction = {
name: SalesforceInteractions.CatalogObjectInteractionName.ViewCatalogObject,
catalogObject: {
type: "Article",
@@ -88,17 +88,18 @@ if (document.querySelector("#pagecontent .news") || document.querySelector("#pag
attributes: {
url: window.location.href,
name: SalesforceInteractions.resolvers.fromSelector("#content-title"),
+ description: SalesforceInteractions.resolvers.fromSelector(".description"),
articleId: window.cronistaDataLayer[0].articleProperty.id.toString(),
seccion: window.cronistaDataLayer[0].articleProperty.category,
articleTitle: SalesforceInteractions.resolvers.fromSelector("#content-title"),
- publishDate: window.cronistaDataLayer[0].articleProperty.datePublishe,
+ publishDate: SalesforceInteractions.resolvers.fromSelector(".author-date time"),
authorName: window.cronistaDataLayer[0].articleProperty.authorName,
canonicalUrl: window.cronistaDataLayer[0].articleProperty.canonica,
accessCondition: window.cronistaDataLayer[0].articleProperty.conditionsOfAccess
},
},
}
- let article = new PageType("Article", window.location.href, interactions, articleListeners, document.querySelector("#pagecontent .news"));
+ let article = new PageType("Article", window.location.href, interaction, articleListeners, document.querySelector("#pagecontent .news"));
console.log(article.interaction)
pages.push(article)
}