feat: add tracking to account pages
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user