fix: add channel and pageType

This commit is contained in:
Christel Westerberg
2024-07-15 09:34:55 +02:00
parent c96008fb78
commit 73cea4ba51
8 changed files with 12 additions and 13 deletions

View File

@@ -13,13 +13,14 @@ export type TrackingSDKPageData = {
createdDate: string
publishedDate: string
lang: Lang
pageType: string
channel: TrackingChannel
}
export enum LoginTypeEnum {
Email = "email",
MembershipNumber = "membership number",
MagicLink = "magic link",
// MagicLink = "magic link",
}
export type LoginType = keyof typeof LoginTypeEnum
@@ -37,12 +38,8 @@ export type TrackingSDKProps = {
userData: TrackingSDKUserData
}
export type TrackingSDKData = {
lang: Lang
export type TrackingSDKData = TrackingSDKPageData & {
pathName: string
pageId: string
publishedDate: string
createdDate: string
}
// Old tracking setup types: