diff --git a/src/components/AdSlot/adScripts/bootstrap.ts b/src/components/AdSlot/adScripts/bootstrap.ts index 465816b9..af8b6d74 100644 --- a/src/components/AdSlot/adScripts/bootstrap.ts +++ b/src/components/AdSlot/adScripts/bootstrap.ts @@ -69,7 +69,7 @@ export const loadBootstrap = () => { // Use the URL path to create a unique ID for the page. const graphicId = window.location.pathname.split('/') // Get the first lowercase slug in the pathname, which is the graphic UID. - .filter(d => d.match(/[a-z0-1]+/) && d !== 'graphics')[0] || 'unknown-graphic'; + .filter(d => d.match(/[a-z0-9]+/) && d !== 'graphics')[0] || 'unknown-graphic'; window.googletag.pubads().setTargeting('template', 'graphics'); window.googletag.pubads().setTargeting('graphicId', graphicId); });