siteMapPerso
Changes
mySiteMap.js 2(+2 -0)
Details
mySiteMap.js 2(+2 -0)
diff --git a/mySiteMap.js b/mySiteMap.js
index b6c0afe..40e3820 100644
--- a/mySiteMap.js
+++ b/mySiteMap.js
@@ -80,6 +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")) {
+ const metaTag = document.querySelector('meta[property="og:image"]');
let interaction = {
name: SalesforceInteractions.CatalogObjectInteractionName.ViewCatalogObject,
catalogObject: {
@@ -89,6 +90,7 @@ if (document.querySelector("#pagecontent .news") || document.querySelector("#pag
url: window.location.href,
name: SalesforceInteractions.resolvers.fromSelector("#content-title"),
description: SalesforceInteractions.resolvers.fromSelector(".description"),
+ imageUrl: metaTag ? metaTag.getAttribute('content') : null,
articleId: window.cronistaDataLayer[0].articleProperty.id.toString(),
seccion: window.cronistaDataLayer[0].articleProperty.category,
articleTitle: SalesforceInteractions.resolvers.fromSelector("#content-title"),