diff --git a/app/layout.tsx b/app/layout.tsx index 68b6d6c0..78287aed 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,5 +1,6 @@ import { Metadata } from 'next'; import GoogleTagManagerScript from '../components/head/GoogleTagManagerScript'; +import RollbarScript from '../components/head/RollbarScript'; // Nextjs automatically includes for each route two default meta tags, charset and viewport // https://nextjs.org/docs/app/building-your-application/optimizing/metadata#default-fields @@ -22,6 +23,7 @@ export default function RootLayout({ but sending an event using sendGTMEvent requires an object rather than a list of arguments so the current gtag api function would need to be adapted */} + {children} diff --git a/components/head/RollbarScript.tsx b/components/head/RollbarScript.tsx index 57b74f2e..fcf18e23 100644 --- a/components/head/RollbarScript.tsx +++ b/components/head/RollbarScript.tsx @@ -1,6 +1,11 @@ +import Script from 'next/script'; + const RollbarScript = () => { return ( -