Merged in feat/SW-394-tracking-start-page (pull request #1499)

fix(SW-394): Tweak start page tracking config

* fix(SW-375): Update start page tracking config

* Rename tracking channel from 'start-page' to 'homepage'
* Simplify tracking properties for start page
* Standardize tracking data structure


Approved-by: Erik Tiekstra
Approved-by: Christian Andolf
This commit is contained in:
Chuma Mcphoy (We Ahead)
2025-03-10 07:34:27 +00:00
parent d45487a3c7
commit b6ee3664f0
2 changed files with 6 additions and 6 deletions

View File

@@ -172,14 +172,14 @@ export const startPageQueryRouter = router({
const system = startPage.data.start_page.system const system = startPage.data.start_page.system
const tracking: TrackingSDKPageData = { const tracking: TrackingSDKPageData = {
pageName: "startpage",
pageType: "startpage",
pageId: system.uid, pageId: system.uid,
channel: TrackingChannelEnum["homepage"],
domainLanguage: lang, domainLanguage: lang,
publishDate: system.updated_at,
createDate: system.created_at, createDate: system.created_at,
channel: TrackingChannelEnum["start-page"], publishDate: system.updated_at,
pageType: "start-page", siteSections: "startpage",
pageName: startPage.data.trackingProps.url,
siteSections: startPage.data.trackingProps.url,
siteVersion: "new-web", siteVersion: "new-web",
} }

View File

@@ -7,7 +7,7 @@ export enum TrackingChannelEnum {
"hotelreservation" = "hotelreservation", "hotelreservation" = "hotelreservation",
"collection-page" = "collection-page", "collection-page" = "collection-page",
"hotels" = "hotels", "hotels" = "hotels",
"start-page" = "start-page", "homepage" = "homepage",
} }
export type TrackingChannel = keyof typeof TrackingChannelEnum export type TrackingChannel = keyof typeof TrackingChannelEnum