feat: GET OUT IE

This commit is contained in:
Junseo Park 2021-02-23 08:34:17 +09:00
parent 52945d03ed
commit 6c2d46968a

View File

@ -23,10 +23,18 @@ class MyDocument extends Document {
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
function gtag(){window.dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-165454387-1');`,
gtag('config', 'UA-165454387-1');
if(/MSIE \\d|Trident.*rv:/.test(navigator.userAgent)) {
window.location = 'microsoft-edge:' + window.location;
setTimeout(function() {
window.location = 'https://go.microsoft.com/fwlink/?linkid=2135547';
}, 1);
}
`,
}}
/>
</Head>