nuxt.js添加统计代码
根目录新建app.html, 模板复制官方的:
https://zh.nuxtjs.org/guide/views/
<!DOCTYPE html> <html {{ HTML_ATTRS }}> <head {{ HEAD_ATTRS }}> {{ HEAD }} </head> <body {{ BODY_ATTRS }}> {{ APP }} <div style="display:none"> <script type="text/javascript" src="https://s95.cnzz.com/z_stat.php?id=123456&web_id=123456"></script> </div> </body> </html>
好文推荐