Comments (4)
I have same problem, did you find a solution?
from google-adsense.
@kovaletsyurii @thor-n have you tired by using no-prefetch in nuxt-link ??
from google-adsense.
The reason this happens is exactly because the page is loaded using nuxt-link/router page load
This type of loading doesn't cause browser to reload, and hence the global variable window
which is used to store Google ads initialization is never cleared out.
Hence when you change page you might see in console errors saying something like slot already assigned or similar
from google-adsense.
The latest version for nuxt 3 seems to already have fixed this
https://github.com/nuxt-modules/google-adsense/blob/master/src/runtime/components-v3/Adsbygoogle.vue
By calling updateAd
the complete initialization is re-run causing ads to render
This issue can probably be closed
from google-adsense.
Related Issues (20)
- Error head tag and error enable_page_level_ads HOT 14
- K {message: adsbygoogle.push() error: Only one enable_page_level_ads allowed per page HOT 2
- Does this library handle adsense pageviews correctly?
- "adsbygoogle.push() error: All ins elements in the DOM with class=adsbygoogle already have ads in them." HOT 12
- Doesn analyticsUacct supports new GA4?
- useRuntimeConfig is not defined error HOT 3
- Any way to solve page speed (Core Web Vital ) ? HOT 5
- 2.1.0 doesn't seem to work in Nuxt 2.15.8 HOT 3
- Pushing Ads fail when Page Transition is enabled HOT 3
- Runtime config is broken HOT 2
- Type is not assignable to type, and invalid prop... HOT 3
- [README]: `Note: AdSense limits you to a maximum of three (3) ads per page.` is wrong HOT 1
- strange height behavior after ad load HOT 1
- How can we use Partytown to load adsense CDN
- TagError: adsbygoogle.push() error: All ins elements in the DOM with class=adsbygoogle already have ads in them. HOT 18
- Some ads are showing, some are not. HOT 1
- Where to find Adsense docs for "pauseOnLoad" HOT 3
- Dynamic Adsense ID HOT 1
- [Feature request] Integration with partytown
- error for running test mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-adsense.