144 lines
4.7 KiB
JavaScript
144 lines
4.7 KiB
JavaScript
import { Html, Head, Main, NextScript } from 'next/document';
|
|
import Script from 'next/script';
|
|
|
|
export default function Document() {
|
|
return (
|
|
<Html lang="en">
|
|
<Head>
|
|
|
|
{/* ✅ Canonical Tag */}
|
|
<link rel="canonical" href="https://metatroncubesolutions.com/" />
|
|
|
|
{/* ✅ Google Tag Manager (script) */}
|
|
<script
|
|
dangerouslySetInnerHTML={{
|
|
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
|
})(window,document,'script','dataLayer','GTM-KWXS2ZM3');`,
|
|
}}
|
|
/>
|
|
|
|
{/* ✅ Google Analytics (gtag.js) */}
|
|
<script
|
|
async
|
|
src="https://www.googletagmanager.com/gtag/js?id=G-1NXE8QSBC8"
|
|
></script>
|
|
<script
|
|
dangerouslySetInnerHTML={{
|
|
__html: `
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
gtag('config', 'G-1NXE8QSBC8');
|
|
`,
|
|
}}
|
|
/>
|
|
|
|
{/* Metatron Cube Solutions Schema Markup */}
|
|
<Script
|
|
id="schema-metatron"
|
|
type="application/ld+json"
|
|
strategy="afterInteractive"
|
|
>
|
|
{JSON.stringify({
|
|
"@context": "https://schema.org",
|
|
"@type": "Organization",
|
|
name: "Metatroncube Solutions",
|
|
alternateName: "Metatron Digital Agency",
|
|
url: "https://metatroncubesolutions.com/",
|
|
logo: "https://metatroncubesolutions.com/assets/images/logo.webp",
|
|
image: "https://metatroncubesolutions.com/assets/images/logo.webp",
|
|
description:
|
|
"Metatroncube Software Solutions: Your go-to agency for cutting-edge web & app development, SEO, digital marketing, and graphic design services.",
|
|
telephone: "+1-647-679-7651",
|
|
address: {
|
|
"@type": "PostalAddress",
|
|
streetAddress: "Waterloo, Ontario",
|
|
addressLocality: "Waterloo",
|
|
addressRegion: "ON",
|
|
postalCode: "N2L",
|
|
addressCountry: "CA",
|
|
},
|
|
openingHoursSpecification: [
|
|
{
|
|
"@type": "OpeningHoursSpecification",
|
|
dayOfWeek: [
|
|
"Monday",
|
|
"Tuesday",
|
|
"Wednesday",
|
|
"Thursday",
|
|
"Friday",
|
|
"Saturday",
|
|
],
|
|
opens: "08:00",
|
|
closes: "18:00",
|
|
},
|
|
{
|
|
"@type": "OpeningHoursSpecification",
|
|
dayOfWeek: "Sunday",
|
|
opens: "00:00",
|
|
closes: "00:00",
|
|
closed: true,
|
|
},
|
|
],
|
|
sameAs: [
|
|
"https://www.facebook.com/metatroncubecanada",
|
|
"https://instagram.com/metatron_digitalagency",
|
|
"https://x.com/MetatroncubeDA",
|
|
"https://www.linkedin.com/company/metatroncube-software-solutions/",
|
|
"https://www.youtube.com/@metatron_digitalagency",
|
|
],
|
|
contactPoint: [
|
|
{
|
|
"@type": "ContactPoint",
|
|
telephone: "+1-647-679-7651",
|
|
contactType: "customer service",
|
|
areaServed: "CA",
|
|
availableLanguage: ["English"],
|
|
},
|
|
],
|
|
})}
|
|
</Script>
|
|
|
|
|
|
</Head>
|
|
<body>
|
|
{/* ✅ Google Tag Manager (noscript) */}
|
|
<noscript>
|
|
<iframe
|
|
src="https://www.googletagmanager.com/ns.html?id=GTM-KWXS2ZM3"
|
|
height="0"
|
|
width="0"
|
|
style={{ display: 'none', visibility: 'hidden' }}
|
|
></iframe>
|
|
</noscript>
|
|
|
|
<Main />
|
|
<NextScript />
|
|
|
|
{/* ✅ accessiBe script */}
|
|
<script
|
|
dangerouslySetInnerHTML={{
|
|
__html: `
|
|
(function(){
|
|
var s = document.createElement('script');
|
|
var h = document.querySelector('head') || document.body;
|
|
s.src = 'https://acsbapp.com/apps/app/dist/js/app.js';
|
|
s.async = true;
|
|
s.onload = function(){
|
|
if (typeof acsbJS !== 'undefined') {
|
|
acsbJS.init();
|
|
}
|
|
};
|
|
h.appendChild(s);
|
|
})();
|
|
`,
|
|
}}
|
|
/>
|
|
</body>
|
|
</Html>
|
|
);
|
|
}
|