Skip to content

Commit

Permalink
Merge pull request #207 from adobecom/increase-404-tracking
Browse files Browse the repository at this point in the history
Increase 404 tracking
  • Loading branch information
JasonHowellSlavin authored Jun 19, 2024
2 parents 22c32af + c8def9e commit 512d0a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ const miloLibs = setLibs(LIBS);
}());

(async function loadPage() {
const { loadArea, loadLana, setConfig, createTag } = await import(`${miloLibs}/utils/utils.js`);
const { loadArea, loadLana, setConfig, createTag, getMetadata } = await import(`${miloLibs}/utils/utils.js`);
if (getMetadata('template') === '404') window.SAMPLE_PAGEVIEWS_AT_RATE = 'high';
const metaCta = document.querySelector('meta[name="chat-cta"]');
if (metaCta && !document.querySelector('.chat-cta')) {
const isMetaCtaDisabled = metaCta?.content === 'off';
Expand Down

0 comments on commit 512d0a6

Please sign in to comment.