import Head from "next/head"; import { useRouter } from "next/router"; const ConsenHead = ({ title, description }) => { const router = useRouter(); const siteUrl = "https://metatroncubesolutions.com"; const cleanPath = router.asPath.split("?")[0]; // Ensure the URL always ends with a / because trailingSlash: true is set in next.config.js const canonicalUrl = `${siteUrl}${cleanPath === "/" ? "/" : (cleanPath.endsWith("/") ? cleanPath : `${cleanPath}/`)}`; const defaultTitle = "Metatroncube: Leaders in Web & Mobile Dev, SEO, Digital Marketing"; const defaultDescription = "Metatroncube Software Solutions: Your go-to agency for cutting-edge web & app development, SEO, digital marketing, and graphic design services"; // console.log("title", title) // console.log("description", description) return (
{/* Google Tag Manager */} {/* */} {/* End Google Tag Manager */}