1

I am a beginner of programming. Recently I developed a web app with nuxt.js and I would like to insert the following ad code to my programme. However, the ad code structure is different to the one I knew ...

The ad code:

<script>(function(s,u,z,p){s.src=u,s.setAttribute('data-zone',z),p.appendChild(s);})(document.createElement('script'),'https://iclickcdn.com/tag.min.js',4760985,document.body||document.documentElement)
</script>

Anyone knows how to convert it to the format like :

nuxt.config.js

export default {
  head: {
    script: [
      {
        src: "https://code.jquery.com/jquery-3.5.1.min.js",
        body: true,
      },
    ],
  }
  // other config goes here
}

or you know how to insert it directly to the nuxt.js programme code?

Many thanks for you help in advance!

kissu
  • 40,416
  • 14
  • 65
  • 133
HK FreeGuy
  • 11
  • 1
  • This one should help: https://stackoverflow.com/a/67535277/8816585 – kissu Dec 30 '21 at 03:37
  • Also, this one may be more suited to what you're looking for here: https://stackoverflow.com/a/68414170/8816585 – kissu Dec 30 '21 at 03:38

0 Answers0