Skip to content

Commit

Permalink
Ensure Chartbeat contentType is set to the atiAnalytics, rather than …
Browse files Browse the repository at this point in the history
…the pageData contentType (which is undefined since the refactor)
  • Loading branch information
karinathomasbbc committed Nov 28, 2024
1 parent 114ee50 commit ec09bf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/pages/OnDemandAudioPage/OnDemandAudioPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ const OnDemandAudioPage = ({
<ChartbeatAnalytics
mediaPageType={isPodcast ? 'Podcasts' : 'Radio'}
title={headline}
contentType={pageData?.contentType}
contentType={
pageData?.metadata.atiAnalytics?.contentType as ContentType
}
/>
<ComscoreAnalytics />
<MetadataContainer
Expand Down

0 comments on commit ec09bf8

Please sign in to comment.