feat: add tracking to account pages
This commit is contained in:
@@ -50,7 +50,7 @@ export default async function Profile({ params }: PageArgs<LangParams>) {
|
||||
<div className={styles.item}>
|
||||
<CalendarIcon color="burgundy" />
|
||||
<Body color="burgundy" textTransform="bold">
|
||||
{formatMessage({ id: "Date of birth" })}
|
||||
{formatMessage({ id: "Date of Birth" })}
|
||||
</Body>
|
||||
<Body color="burgundy">{user.dateOfBirth}</Body>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
import "../profileLayout.css"
|
||||
|
||||
export default function EditProfilePage() {
|
||||
return null
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import TrackingSDK from "@/components/Current/TrackingSDK"
|
||||
|
||||
export default async function EditProfilePage() {
|
||||
const accountPageTracking =
|
||||
await serverClient().contentstack.accountPage.tracking()
|
||||
|
||||
return <TrackingSDK pageData={accountPageTracking} />
|
||||
}
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
import "./profileLayout.css"
|
||||
|
||||
export default function ProfilePage() {
|
||||
return null
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import TrackingSDK from "@/components/Current/TrackingSDK"
|
||||
|
||||
export default async function ProfilePage() {
|
||||
const accountPageTracking =
|
||||
await serverClient().contentstack.accountPage.tracking()
|
||||
|
||||
return <TrackingSDK pageData={accountPageTracking} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user