diff --git a/lib/module.js b/lib/module.js index 03722b9..dba2ea5 100644 --- a/lib/module.js +++ b/lib/module.js @@ -66,7 +66,7 @@ module.exports = function nuxtAdSense (moduleOptions = {}) { // Initialize Adsense with ad client id this.options.head.script.push({innerHTML: ` - (adsbygoogle = window.adsbygoogle || []).push({ + (window.adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: "${options.id}", enable_page_level_ads: ${options.pageLevelAds ? 'true' : 'false'} });