feat: added google optimize

This commit is contained in:
wonderlandpark 2021-05-17 22:10:49 +09:00
parent 6d753774b2
commit 22b9cff163

View File

@ -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;