chore: load every ins element

This commit is contained in:
원더 2021-02-12 14:35:13 +09:00
parent 25c51a2180
commit 39d915c0ea

View File

@ -22,7 +22,7 @@ class MyDocument extends Document {
<script
dangerouslySetInnerHTML={{
__html: `
setTimeout(() => (adsbygoogle = window.adsbygoogle || []).push({}), 1000)
setTimeout(() => document.querySelectorAll('ins.adsbygoogle').forEach(() => (adsbygoogle = window.adsbygoogle || []).push({})), 1000)
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());