siteMapPerso
Changes
mySiteMap.js 7(+4 -3)
Details
mySiteMap.js 7(+4 -3)
diff --git a/mySiteMap.js b/mySiteMap.js
index 2e62e79..597a89e 100644
--- a/mySiteMap.js
+++ b/mySiteMap.js
@@ -77,9 +77,10 @@ if (document.querySelector("#pagecontent .news")) {
id: window.cronistaDataLayer[0].articleProperty.id,
attributes: {
url: window.location.href,
- name: document.getElementById("content-title").innerText,
+ name: SalesforceInteractions.resolvers.fromSelector("#content-title"),
articleId: window.cronistaDataLayer[0].articleProperty.id,
- articleTitle: document.getElementById("content-title").innerText,
+ seccion: SalesforceInteractions.resolvers.fromSelector("#content-title"),
+ articleTitle: SalesforceInteractions.resolvers.fromSelector("#content-title"),
publishDate: new Date(parseInt(window.cronistaDataLayer[0].articleProperty.datePublished)),
authorName: window.cronistaDataLayer[0].articleProperty.authorName,
canonicalUrl: window.cronistaDataLayer[0].articleProperty.canonica,
@@ -220,7 +221,7 @@ function ReadGlobalEvents(event, listeners) {
}
if (listeners.labelName == 'Breadcrumb') {
- dataName = listeners.labelName + ": " + SalesforceInteractions.cashDom(event.target.parentNode.querySelector(".title")).text()
+ dataName = listeners.labelName + ": " + SalesforceInteractions.cashDom(event.target).text()
}
SalesforceInteractions.sendEvent({