\r\n"},{"id":34309,"bundle":"topic_content","heading":"Listen to More Tech Transformation Episodes","terms":[{"id":618,"name":"Tech Transformation Podcasts"}],"items":[{"id":24167,"bundle":"article","title":"Mars’ Guillaume Doriry On Increasing Supply Chain Visibility With Decision Intelligence ","url":"/mars-guillaume-doriry-increasing-supply-chain-visibility-decision-intelligence","summary":"As more companies bring AI into their operations, keeping their employees at the center is critical to success. For Mars, this has meant creating strategies that empower their associates in order to drive adoption and ensure they feel connected to all of the changes. ","teaserImage":{"url":"https://assets1.risnews.com/styles/secondary_articles_short/s3/2023-10/marsaeratech_guillaumedoriryfredlaluyaux_960x540.png?h=dcd3bcc2&itok=Xcyt1B_p","width":1320,"height":743,"alt":"Mars"}},{"id":24069,"bundle":"article","title":"Tech Transformation Podcast: Kimberly-Clark’s Jeannette Chantalat On New KPIs for Sustainable Innovation ","url":"/tech-transformation-podcast-kimberly-clarks-jeannette-chantalat-new-kpis-sustainable-innovation","summary":"Learn how Kimberly-Clark is using their vast reach to understand consumers at very local levels — and then marrying it with technology to meet consumer needs in new and more sustainable ways. ","teaserImage":{"url":"https://assets1.risnews.com/styles/secondary_articles_short/s3/2023-09/kimberlyclark_jeannettechantalat_960x540.png?h=e3253adc&itok=OKos2MYT","width":1680,"height":945,"alt":"Kimberly-Clark’s Jeannette Chantalat "}},{"id":24047,"bundle":"article","title":"PepsiCo’s Mark Kirkham On New Data Partnerships ","url":"/pepsicos-mark-kirkham-new-data-partnerships","summary":"PepsiCo is not only entering first-of-its-kind relationships with companies like Spotify and EA Sports, but it’s also looking ahead to how it might use the data to drive further value at retail and for its retail partners. ","teaserImage":{"url":"https://assets1.risnews.com/styles/secondary_articles_short/s3/2023-08/pepsico_markkirkham_960x540_1.jpg?h=c71d0c67&itok=7lIVOpas","width":960,"height":540,"alt":"PepsiCo Mark Kirkham"}}]}]}}; const country = "HK"; const language = "en, *"; const SITE_LANGUAGE = "en"; const siteName = "RIS News"; const userRoles = ["anonymous"]; const userUid = 0; const indexName = "risnews"; window.dataLayer = window.dataLayer || []; const data = {}; data.entityTaxonomy = {}; const contentTypes = [ "article", "blog", "bulletin", "embed_page", "landing_page", "event", "image", "page", "product", "whitepaper", "video", "tags", ]; if ( routeInfo && "bundle" in routeInfo && contentTypes.includes(routeInfo["bundle"]) ) { data.entityBundle = routeInfo.bundle; data.entityTitle = `${routeInfo.title} | ${siteName}`; data.entityId = routeInfo.id; data.entityName = routeInfo.author?.uname; data.entityCreated = routeInfo.created; data.sponsored = routeInfo.sponsored; data.sponsor = routeInfo.sponsoringCompany; data.entityType = "node"; data.entityLangcode = SITE_LANGUAGE; data.siteName = siteName; data.drupalLanguage = language; data.drupalCountry = country; data.userRoles = userRoles; data.userUid = userUid; data.entityTaxonomyKeys = {}; data.entityTaxonomyHierarchies = {}; data.parentNaicsCode = {}; data.isPro = false; data.algoliaIndexName = indexName; // Add toxonomy data const taxonomies = { businessTopic: "business_topic", contentType: "content_type", company: "company", marketSegment: "market_segment", }; const getHierarchy = (term, terms = []) => { terms.push({ id: term.id, name: term.name }); if (term.parentTerm != null) { getHierarchy(term.parentTerm, terms); } return terms; }; const getTerms = (term, useApiId = false) => { return { id: useApiId ? term.apiId : term.id, name: term.name }; }; const getKeys = (term) => { return { id: term.id, name: term.apiId }; }; Object.entries(taxonomies).forEach(([key, item]) => { terms = routeInfo[key]; if (terms && terms.length > 0) { data["entityTaxonomy"][item] = terms.map((term) => getTerms(term, key === "company") ); if (key !== "company") { data["entityTaxonomyKeys"][item] = terms.map(getKeys); termGroups = []; terms.forEach((term, termInd) => { termGroups[termInd] = getHierarchy(term); }); data["entityTaxonomyHierarchies"][item] = termGroups; } } }); data["entityTaxonomy"]["tags"] = routeInfo["topics"] || []; // Primary Topic is either the business topic or the top tag. if (routeInfo["businessTopic"]?.length > 0) { data["entityPrimaryTopic"] = routeInfo["businessTopic"][0]["name"]; } else { if (routeInfo["topics"]?.length > 0) { data["entityPrimaryTopic"] = routeInfo["topics"][0]["name"]; } } // Primary and secondary entityNaicsCodes come from the MarketSegment if (routeInfo.marketSegment?.length > 0) { data.entityNaicsCode = {}; data["entityNaicsCode"]["id"] = routeInfo["marketSegment"][0]["id"]; data["entityNaicsCode"]["name"] = routeInfo["marketSegment"][0]["naicsCode"]; if (routeInfo["marketSegment"][0]["parentTerm"] != null) { data["parentNaicsCode"]["id"] = routeInfo["marketSegment"][0]["parentTerm"]["id"]; data["parentNaicsCode"]["name"] = routeInfo["marketSegment"][0]["parentTerm"]["naicsCode"]; } } else { data.entityNaicsCode = []; } if (routeInfo.taggedPro) { data.isPro = routeInfo.taggedPro; } window.dataLayer.push(data); } else if (routeInfo && "vid" in routeInfo) { data.entityBundle = "tags"; data.entityTitle = routeInfo.name; data.entityId = routeInfo.id; data.entityName = routeInfo.author?.uname; data.entityCreated = routeInfo.created; data.entityType = "taxonomy_term"; data.entityLangcode = SITE_LANGUAGE; data.siteName = siteName; data.sponsored = routeInfo.sponsored; data.sponsor = routeInfo.sponsoringCompany; data.drupalLanguage = language; data.drupalCountry = country; data.userRoles = userRoles; data.userUid = userUid; data.algoliaIndexName = indexName; data["entityTaxonomy"]["tags"] = { id: routeInfo["id"], name: routeInfo["name"], }; window.dataLayer.push(data); } })();