From f23679ba04f3325229e31bc44aa05420080f7620 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 29 May 2023 09:44:47 +0700
Subject: Add google tag ads

---
 src/pages/_document.jsx | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

(limited to 'src/pages/_document.jsx')

diff --git a/src/pages/_document.jsx b/src/pages/_document.jsx
index 2130c097..5f3d2367 100644
--- a/src/pages/_document.jsx
+++ b/src/pages/_document.jsx
@@ -72,6 +72,25 @@ export default function MyDocument() {
           }}
         />
 
+        <Script
+          async
+          strategy='beforeInteractive'
+          src='https://www.googletagmanager.com/gtag/js?id=AW-954540379'
+        />
+        
+        <Script
+          id='google-ads'
+          strategy='afterInteractive'
+          dangerouslySetInnerHTML={{
+            __html: `
+              window.dataLayer = window.dataLayer || [];
+              function gtag(){dataLayer.push(arguments);}
+              gtag('js', new Date());
+
+              gtag('config', 'AW-954540379');`
+          }}
+        />
+
         {/* <Script
           id='tawk-script-tag'
           strategy='afterInteractive'
-- 
cgit v1.2.3

