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:
@@ -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",
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user