Skip to content

Commit 551577d

Browse files
committed
Use section instead of keywords
1 parent e4f1956 commit 551577d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

dotcom-rendering/src/server/htmlPageTemplate.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type BaseProps = {
3131
interface WebProps extends BaseProps {
3232
renderingTarget: 'Web';
3333
keywords: string;
34+
section: string;
3435
config: Config & { renderingTarget: 'Web' };
3536
}
3637

@@ -363,19 +364,15 @@ https://workforus.theguardian.com/careers/product-engineering/
363364
renderingTarget === 'Web'
364365
? `
365366
<noscript>
366-
<!-- Comscore Identifier: comscorekw=${props.keywords
367-
.replaceAll(' ', '_')
368-
.replaceAll('&', 'and')} -->
367+
<!-- Comscore Identifier: comscorekw=${props.section} -->
369368
<img src="https://sb.scorecardresearch.com/p?${new URLSearchParams(
370369
{
371370
c1: '2',
372371
c2: '6035250',
373372
cv: '2.0',
374373
cj: '1',
375374
cs_ucfr: '0',
376-
comscorekw: props.keywords
377-
.replaceAll(' ', '_')
378-
.replaceAll('&', 'and'),
375+
comscorekw: props.section,
379376
},
380377
).toString()}" />
381378
</noscript>

0 commit comments

Comments
 (0)