diff --git a/components/MetaData.tsx b/components/MetaData.tsx
index a368af3c8..da8047448 100644
--- a/components/MetaData.tsx
+++ b/components/MetaData.tsx
@@ -1,5 +1,4 @@
import Head from 'next/head'
-import Script from 'next/script'
interface Content {
title: string
@@ -60,21 +59,6 @@ const MetaData = ({ language, data }: MetaDataProps) => {
-
- {
- // AA script must be loaded before the pageLoad event fires
- process.env.ENVIRONMENT === 'production' ? (
-
- ) : (
-
- )
- }
>
)
}
diff --git a/pages/_document.js b/pages/_document.js
index ea0b80461..751cad489 100644
--- a/pages/_document.js
+++ b/pages/_document.js
@@ -1,4 +1,5 @@
import { Html, Head, Main, NextScript } from 'next/document'
+import Script from 'next/script'
export default function Document() {
return (
@@ -9,6 +10,20 @@ export default function Document() {
+ {
+ // AA script must be loaded before the pageLoad event fires
+ process.env.ENVIRONMENT === 'production' ? (
+
+ ) : (
+
+ )
+ }