Jump to content

lrnzctld

Approved members
  • Posts

    1
  • Joined

  • Last visited

About lrnzctld

lrnzctld's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, We are trying to use Revive ad server into a Nuxt application, but it doesn’t works properly. I see the banner only when the page is loaded the first time but I don’t see it anymore when navigate trough the app. Eventually this is due to the asynchronous nature of the app, that do not reload the page during the user navigation. No matter how I call the external script, into the `head`, into the `body` or in a plugin not served server side, it still do not work during navigation. Do you have any suggestion in order to make Revive ad server in Nuxt work properly? Here an example of the component ``` <template> <aside ref="ins-box" class="ads"> <ins :data-revive-zoneid="zoneId" :data-revive-id="adServerId" /> </aside> </template> <script> export default { name: 'Advertising', props: { zoneId: { type: Number, default: null } }, data () { return { adServerId: 'the-ad-server-id' } }, head () { return { script: [ { hid: 'ad-server', src: 'https://servedby.revive-adserver.net/asyncjs.php', async: false, defer: true, callback: () => { console.log('revive-adserver script loaded ' + this.zoneId) } } ] } } } </script> ```
×
×
  • Create New...