This commit is contained in:
Linus Flood
2024-10-08 11:08:21 +02:00
parent 4de247ab50
commit a0ad4dffac
13 changed files with 31 additions and 43 deletions

View File

@@ -144,9 +144,9 @@ export const contentPageSchema = z.object({
updated_at: z.string(),
})
),
page_settings: z.object({
tracking_page_name: z.string().nullable(),
}),
}),
trackingProps: z.object({
url: z.string(),
}),
})

View File

@@ -68,9 +68,7 @@ export const contentPageQueryRouter = router({
createdDate: contentPage.data.content_page.system.created_at,
channel: TrackingChannelEnum["static-content-page"],
pageType: "staticcontentpage",
pageName: contentPage.data.content_page.page_settings.tracking_page_name,
siteSections:
contentPage.data.content_page.page_settings.tracking_page_name, // Always the same as pageName for this page
pageName: contentPage.data.trackingProps.url,
}
return {