From ce781b13b476e2455b99c6c450833cc53f0f943b Mon Sep 17 00:00:00 2001 From: Jon McClure Date: Fri, 22 Mar 2024 13:42:49 +0000 Subject: [PATCH] graphicId in graphics should be just the UID from graphics server --- src/components/AdSlot/adScripts/bootstrap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });