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 tracking: TrackingSDKPageData = {
pageName: "startpage",
pageType: "startpage",
pageId: system.uid,
channel: TrackingChannelEnum["homepage"],
domainLanguage: lang,
publishDate: system.updated_at,
createDate: system.created_at,
channel: TrackingChannelEnum["start-page"],
pageType: "start-page",
pageName: startPage.data.trackingProps.url,
siteSections: startPage.data.trackingProps.url,
publishDate: system.updated_at,
siteSections: "startpage",
siteVersion: "new-web",
}

View File

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