File tree Expand file tree Collapse file tree 4 files changed +22
-1
lines changed
ws-nextjs-app/pages/[service]/topics Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 11import { Summary } from '#app/models/types/curationData' ;
22import { Services } from '#app/models/types/global' ;
3+ import { ATIData } from '#app/components/ATIAnalytics/types' ;
34
45export type Topic = {
56 topicName : string ;
@@ -18,6 +19,7 @@ export type PageData = {
1819 totalItems : number ;
1920 metadata : {
2021 type : string ;
22+ atiAnalytics : ATIData ;
2123 } ;
2224} ;
2325
Original file line number Diff line number Diff line change @@ -469,6 +469,10 @@ export const service: DefaultServiceConfig = {
469469 title : 'Shirye-shiryen rediyo' ,
470470 url : '/hausa/topics/c4nx34q5724t' ,
471471 } ,
472+ {
473+ title : 'Batutuwa' ,
474+ url : '/hausa/topics' ,
475+ } ,
472476 ] ,
473477 } ,
474478} ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Pagination from '#app/components/Pagination';
33import { ServiceContext } from '#app/contexts/ServiceContext' ;
44import { useContext } from 'react' ;
55import MetadataContainer from '#app/components/Metadata' ;
6+ import ATIAnalytics from '#app/components/ATIAnalytics' ;
67import { TopicsPageProps } from '#app/lib/config/fixtures/types' ;
78import styles from './index.styles' ;
89
@@ -14,7 +15,8 @@ const TopicsPage = ({
1415 safeActivePage,
1516} : TopicsPageProps ) => {
1617 const { translations, lang } = useContext ( ServiceContext ) ;
17- const { summaries, headline } = pageData || { } ;
18+ const { summaries, headline, metadata } = pageData || { } ;
19+ const { atiAnalytics } = metadata ;
1820
1921 const {
2022 pageXOfY,
@@ -38,6 +40,7 @@ const TopicsPage = ({
3840
3941 return (
4042 < main css = { styles . container } >
43+ < ATIAnalytics atiData = { atiAnalytics } />
4144 < MetadataContainer
4245 title = { metadataTitle }
4346 openGraphType = "website"
Original file line number Diff line number Diff line change @@ -73,6 +73,18 @@ export const getServerSideProps: GetServerSideProps = async context => {
7373 totalItems,
7474 metadata : {
7575 type : TOPIC_PAGE ,
76+ analytics : {
77+ name : 'hausa.topics.page' ,
78+ producer : 'HAUSA' ,
79+ } ,
80+ atiAnalytics : {
81+ name : 'hausa-topics-index' ,
82+ type : 'index-category' ,
83+ contentId : 'urn:bbc:tipo:topic:hausa-topics-index' ,
84+ contentType : 'index-category' ,
85+ pageIdentifier : 'hausa.topics.index.page' ,
86+ pageTitle : 'Batutuwa' ,
87+ } ,
7688 } ,
7789 } ,
7890 } ,
You can’t perform that action at this time.
0 commit comments