From 22b9cff163454d8845919c8c14edbe6fd54ff762 Mon Sep 17 00:00:00 2001 From: wonderlandpark Date: Mon, 17 May 2021 22:10:49 +0900 Subject: [PATCH] feat: added google optimize --- pages/_document.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/_document.tsx b/pages/_document.tsx index e91ac12..37afbf4 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -99,7 +99,7 @@ class MyDocument extends Document { function gtag(){window.dataLayer.push(arguments);} gtag('js', new Date()); - gtag('config', 'UA-165454387-1'); + gtag('config', 'UA-165454387-1', { 'optimize_id': 'OPT-NXSXXB5' }); if(/MSIE \\d|Trident.*rv:/.test(navigator.userAgent)) { window.location = 'microsoft-edge:' + window.location;