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 ded7140ec40..cd3667a8084 100644
--- a/examples/nextjs/src/components/my-page.js
+++ b/examples/nextjs/src/components/my-page.js
@@ -19,8 +19,6 @@ import Navigation from "./layout/navigation";
import NotFound from "@/app/not-found";
import { usePageAsset } from "../hooks/usePageAsset";
-// import { DotContentAnalyticsProvider } from "@dotcms/analytics/react";
-
/**
* Configure experiment settings below. If you are not using experiments,
* you can ignore or remove the experiment-related code and imports.
@@ -31,13 +29,6 @@ const experimentConfig = {
debug: process.env.NEXT_PUBLIC_EXPERIMENTS_DEBUG, // Debug mode for additional logging
};
-// Example configuration for Content Analytics
-const analyticsConfig = {
- apiKey: process.env.NEXT_PUBLIC_ANALYTICS_API_KEY, // API key for Content Analytics, is the same of Experiments, should be securely stored
- server: process.env.NEXT_PUBLIC_DOTCMS_HOST, // DotCMS server endpoint
- debug: process.env.NEXT_PUBLIC_ANALYTICS_DEBUG, // Debug mode for additional logging
-};
-
// Mapping of components to DotCMS content types
const componentsMap = {
Blog: Blog,
@@ -76,7 +67,6 @@ export function MyPage({ pageAsset, nav }) {
}
return (
- //
{pageAsset?.layout.header && (
{!!nav && }
@@ -101,6 +91,5 @@ export function MyPage({ pageAsset, nav }) {
{pageAsset?.layout.footer && }