CNZZ异步统计代码

https站点用这个:

<script>
  var siteId = '站点ID'
  var cnzzJs = document.createElement('script')
  cnzzJs.type = 'text/javascript'
  cnzzJs.async = true
  cnzzJs.charset = 'utf-8'
  cnzzJs.src = 'https://w.cnzz.com/c.php?async=1&id=' + siteId
  var rootJs = document.getElementsByTagName('script')[0]
  rootJs.parentNode.insertBefore(cnzzJs, rootJs)
</script>

http站点用这个:

<script>
  var siteId = '站点ID'
  var cnzzJs = document.createElement('script')
  cnzzJs.type = 'text/javascript'
  cnzzJs.async = true
  cnzzJs.charset = 'utf-8'
  cnzzJs.src = 'http://w.cnzz.com/c.php?async=1&id=' + siteId
  var rootJs = document.getElementsByTagName('script')[0]
  rootJs.parentNode.insertBefore(cnzzJs, rootJs)
</script>

标签

发表评论