feat: add tracking to account pages

This commit is contained in:
Christel Westerberg
2024-07-11 11:12:08 +02:00
parent a8a67d5e35
commit 546679387f
9 changed files with 106 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
import { serverClient } from "@/lib/trpc/server"
import TrackingSDK from "@/components/Current/TrackingSDK"
import Content from "@/components/MyPages/AccountPage/Content"
import Title from "@/components/TempDesignSystem/Text/Title"
import { getIntl } from "@/i18n"
@@ -18,6 +19,9 @@ export default async function MyPages({
return null
}
const accountPageTracking =
await serverClient().contentstack.accountPage.tracking()
return (
<main className={styles.blocks}>
<Title>{accountPage.heading}</Title>
@@ -26,6 +30,7 @@ export default async function MyPages({
) : (
<p>{formatMessage({ id: "No content published" })}</p>
)}
<TrackingSDK pageData={accountPageTracking} />
</main>
)
}