canonical tag and schema and meta pixel added
This commit is contained in:
parent
89f28d9f19
commit
845d366bf0
118
app/layout.js
118
app/layout.js
@ -14,8 +14,17 @@ export const metadata = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default function RootLayout({ children }) {
|
export default function RootLayout({ children }) {
|
||||||
|
|
||||||
|
const siteUrl = "https://rapharehab.ca";
|
||||||
|
const logoUrl = `${siteUrl}/assets/images/logo.png`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<html lang="en" className={`${poppins.variable}`}>
|
<html lang="en" className={`${poppins.variable}`}>
|
||||||
|
|
||||||
|
{/* ✅ Canonical Tag */}
|
||||||
|
<link rel="canonical" href="https://rapharehab.ca/" />
|
||||||
|
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
{/* Microsoft Clarity */}
|
{/* Microsoft Clarity */}
|
||||||
<Script id="clarity-script" strategy="afterInteractive">
|
<Script id="clarity-script" strategy="afterInteractive">
|
||||||
@ -43,6 +52,104 @@ export default function RootLayout({ children }) {
|
|||||||
})(window,document,'script','dataLayer','G-KM1KJW539N');
|
})(window,document,'script','dataLayer','G-KM1KJW539N');
|
||||||
`}
|
`}
|
||||||
</Script>
|
</Script>
|
||||||
|
|
||||||
|
{/* ✅ Facebook Meta Pixel */}
|
||||||
|
<Script id="facebook-pixel" strategy="afterInteractive">
|
||||||
|
{`
|
||||||
|
!function(f,b,e,v,n,t,s)
|
||||||
|
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
|
||||||
|
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
|
||||||
|
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
|
||||||
|
n.queue=[];t=b.createElement(e);t.async=!0;
|
||||||
|
t.src=v;s=b.getElementsByTagName(e)[0];
|
||||||
|
s.parentNode.insertBefore(t,s)}(window, document,'script',
|
||||||
|
'https://connect.facebook.net/en_US/fbevents.js');
|
||||||
|
fbq('init', '1133141855537200');
|
||||||
|
fbq('track', 'PageView');
|
||||||
|
`}
|
||||||
|
</Script>
|
||||||
|
|
||||||
|
{/* PhysiotherapyClinic Schema Markup */}
|
||||||
|
<Script
|
||||||
|
id="schema-physiotherapy"
|
||||||
|
type="application/ld+json"
|
||||||
|
strategy="afterInteractive"
|
||||||
|
>
|
||||||
|
{JSON.stringify({
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "PhysiotherapyClinic",
|
||||||
|
name: "Repharehab Clinic",
|
||||||
|
image: logoUrl,
|
||||||
|
"@id": siteUrl,
|
||||||
|
url: siteUrl,
|
||||||
|
telephone: "+16477223434",
|
||||||
|
priceRange: "$$",
|
||||||
|
medicalSpecialty: "PhysicalTherapy",
|
||||||
|
address: {
|
||||||
|
"@type": "PostalAddress",
|
||||||
|
streetAddress: "5 – 4335 Bloor Street West",
|
||||||
|
addressLocality: "Etobicoke",
|
||||||
|
addressRegion: "ON",
|
||||||
|
postalCode: "M9C 2A5",
|
||||||
|
addressCountry: "CA",
|
||||||
|
},
|
||||||
|
geo: {
|
||||||
|
"@type": "GeoCoordinates",
|
||||||
|
latitude: 43.6389,
|
||||||
|
longitude: -79.5716,
|
||||||
|
},
|
||||||
|
openingHoursSpecification: [
|
||||||
|
{
|
||||||
|
"@type": "OpeningHoursSpecification",
|
||||||
|
dayOfWeek: "Monday",
|
||||||
|
opens: "10:00",
|
||||||
|
closes: "20:00",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "OpeningHoursSpecification",
|
||||||
|
dayOfWeek: "Tuesday",
|
||||||
|
opens: "14:00",
|
||||||
|
closes: "19:00",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "OpeningHoursSpecification",
|
||||||
|
dayOfWeek: "Wednesday",
|
||||||
|
opens: "10:00",
|
||||||
|
closes: "20:00",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "OpeningHoursSpecification",
|
||||||
|
dayOfWeek: "Thursday",
|
||||||
|
opens: "10:00",
|
||||||
|
closes: "20:00",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "OpeningHoursSpecification",
|
||||||
|
dayOfWeek: "Friday",
|
||||||
|
opens: "10:00",
|
||||||
|
closes: "20:00",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "OpeningHoursSpecification",
|
||||||
|
dayOfWeek: "Saturday",
|
||||||
|
opens: "10:00",
|
||||||
|
closes: "19:00",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "OpeningHoursSpecification",
|
||||||
|
dayOfWeek: "Sunday",
|
||||||
|
opens: "00:00",
|
||||||
|
closes: "00:00",
|
||||||
|
closed: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
sameAs: [
|
||||||
|
"https://www.facebook.com/ELRaphaRehabCenter/",
|
||||||
|
"https://www.instagram.com/elrapharehab/",
|
||||||
|
],
|
||||||
|
})}
|
||||||
|
</Script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@ -56,6 +163,17 @@ export default function RootLayout({ children }) {
|
|||||||
></iframe>
|
></iframe>
|
||||||
</noscript>
|
</noscript>
|
||||||
|
|
||||||
|
{/* ✅ Facebook Pixel noscript fallback */}
|
||||||
|
<noscript>
|
||||||
|
<img
|
||||||
|
height="1"
|
||||||
|
width="1"
|
||||||
|
style={{ display: "none" }}
|
||||||
|
src="https://www.facebook.com/tr?id=1133141855537200&ev=PageView&noscript=1"
|
||||||
|
alt="facebook pixel"
|
||||||
|
/>
|
||||||
|
</noscript>
|
||||||
|
|
||||||
{children}
|
{children}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user