diff --git a/examples/nextjs/src/components/content-types/activity.js b/examples/nextjs/src/components/content-types/activity.js index a00258e2695..6fb78d353ab 100644 --- a/examples/nextjs/src/components/content-types/activity.js +++ b/examples/nextjs/src/components/content-types/activity.js @@ -1,7 +1,8 @@ import Image from "next/image"; import Link from "next/link"; - function Activity({ title, description, image, urlTitle }) { + // const { track } = useContentAnalytics(); // TODO: Uncomment this line to use Content Analytics + return (
{image && ( @@ -19,6 +20,7 @@ function Activity({ title, description, image, urlTitle }) {
track("btn-click", { title, urlTitle })} // TODO: Uncomment this line to use Content Analytics href={`/activities/${urlTitle || "#"}`} className="inline-block px-4 py-2 font-bold text-white bg-purple-500 rounded-full hover:bg-purple-700" > diff --git a/examples/nextjs/src/components/my-page.js b/examples/nextjs/src/components/my-page.js index 779e562aef5..ded7140ec40 100644 --- a/examples/nextjs/src/components/my-page.js +++ b/examples/nextjs/src/components/my-page.js @@ -19,7 +19,7 @@ import Navigation from "./layout/navigation"; import NotFound from "@/app/not-found"; import { usePageAsset } from "../hooks/usePageAsset"; -import { DotContentAnalyticsProvider } from "@dotcms/analytics"; +// import { DotContentAnalyticsProvider } from "@dotcms/analytics/react"; /** * Configure experiment settings below. If you are not using experiments, @@ -76,31 +76,31 @@ export function MyPage({ pageAsset, nav }) { } return ( - -
- {pageAsset?.layout.header && ( -
{!!nav && }
- )} + // +
+ {pageAsset?.layout.header && ( +
{!!nav && }
+ )} -
- + -
+ }, + }} + /> + - {pageAsset?.layout.footer &&
} -
-
+ {pageAsset?.layout.footer &&
+ //
); }