Router.push + Google Search ADS only appear on initial load or refresh page

"I have implemented Google Search Ads within my Nuxt 3 project. The advertisements function correctly when accessing the page for the first time, and they also refresh successfully. However, I have encountered an issue when performing a search using router.push. Although the query updates in the source code, the new ads do not display. While I understand that using window.location could be a potential solution, I am concerned about its impact on search performance. My preference is to utilize router.push for its dynamic capabilities and enhance the ad display accordingly. Are there any insights or recommendations on resolving this matter without compromising search performance?" <div v-if="$viewport.isGreaterThan('tablet') && !$route.query.noads" id="afscontainer1" ></div>
No description
2 Replies
elizeorocha
elizeorocha8mo ago
here is where I set the script
No description
elizeorocha
elizeorocha8mo ago
and finally include it to the page script
No description
Want results from more Discord servers?
Add your server