refactor(LOY-48): add signup specific content page tracking
This commit is contained in:
committed by
Chuma Mcphoy (We Ahead)
parent
a6f14e09cf
commit
ea27bb01e2
@@ -8,15 +8,14 @@ import { contentstackExtendedProcedureUID, router } from "@/server/trpc"
|
||||
|
||||
import { contentPageSchema } from "./output"
|
||||
import {
|
||||
createChannel,
|
||||
createPageType,
|
||||
fetchContentPageRefs,
|
||||
generatePageTags,
|
||||
getContentPageCounter,
|
||||
} from "./utils"
|
||||
|
||||
import {
|
||||
TrackingChannelEnum,
|
||||
type TrackingSDKPageData,
|
||||
} from "@/types/components/tracking"
|
||||
import type { TrackingSDKPageData } from "@/types/components/tracking"
|
||||
import type { GetContentPageSchema } from "@/types/trpc/routers/contentstack/contentPage"
|
||||
import type { Lang } from "@/constants/languages"
|
||||
|
||||
@@ -89,8 +88,8 @@ export const contentPageQueryRouter = router({
|
||||
domainLanguage: contentPage.data.content_page.system.locale as Lang,
|
||||
publishedDate: contentPage.data.content_page.system.updated_at,
|
||||
createdDate: contentPage.data.content_page.system.created_at,
|
||||
channel: TrackingChannelEnum["static-content-page"],
|
||||
pageType: "staticcontentpage",
|
||||
channel: createChannel(contentPage.data.content_page.system.uid),
|
||||
pageType: createPageType(contentPage.data.content_page.system.uid),
|
||||
pageName: contentPage.data.trackingProps.url,
|
||||
siteSections: contentPage.data.trackingProps.url,
|
||||
siteVersion: "new-web",
|
||||
|
||||
Reference in New Issue
Block a user