diff --git a/libs/blocks/region-nav/region-nav.js b/libs/blocks/region-nav/region-nav.js index b0ddc8bc0dd..bd0184ba39a 100644 --- a/libs/blocks/region-nav/region-nav.js +++ b/libs/blocks/region-nav/region-nav.js @@ -91,4 +91,7 @@ export default async function init(block) { const hasPrefix = location.pathname.startsWith(`${prefix}/`); const path = location.href.replace(location.origin + (hasPrefix ? prefix : ''), '').replace('#langnav', ''); links.forEach((link) => decorateLink(link, path, localeToLanguageMap)); + if (config.lingoProjectSuccessLogging === 'on') { + window.lana.log('Load: Region_Nav_Modal', { sampleRate: 100, tags: 'lingo,lingo-region-nav-load' }); + } } diff --git a/libs/features/georoutingv2/georoutingv2.js b/libs/features/georoutingv2/georoutingv2.js index 5af5667ec79..765bbde425e 100644 --- a/libs/features/georoutingv2/georoutingv2.js +++ b/libs/features/georoutingv2/georoutingv2.js @@ -446,9 +446,11 @@ export default async function loadGeoRouting( const details = await getDetails(urlGeoData, localeMatches, json.geos.data); if (details) { handleOverflow(await showModal(details)); - sendAnalyticsFunc( - new Event(`Load:${storedLocaleGeo || 'us'}-${urlLocaleGeo || 'us'}|Geo_Routing_Modal`), - ); + const eventString = `Load:${storedLocaleGeo || 'us'}-${urlLocaleGeo || 'us'}|Geo_Routing_Modal`; + sendAnalyticsFunc(new Event(eventString)); + if (config.lingoProjectSuccessLogging === 'on') { + window.lana.log(eventString, { sampleRate: 100, tags: 'lingo,lingo-georouting-load' }); + } } } return; @@ -463,9 +465,11 @@ export default async function loadGeoRouting( if (details) { handleOverflow(await showModal(details)); if (akamaiCode === 'gb') akamaiCode = 'uk'; - sendAnalyticsFunc( - new Event(`Load:${urlLocale || 'us'}-${akamaiCode || 'us'}|Geo_Routing_Modal`), - ); + const eventString = `Load:${urlLocale || 'us'}-${akamaiCode || 'us'}|Geo_Routing_Modal`; + sendAnalyticsFunc(new Event(eventString)); + if (config.lingoProjectSuccessLogging === 'on') { + window.lana.log(eventString, { sampleRate: 100, tags: 'lingo,lingo-georouting-load' }); + } } } } catch (e) {