【发布时间】:2019-09-29 11:50:53
【问题描述】:
在 app.component.html 文件中,我只有两个标签。 <nav-bar> 和 <router-outlet> 标签。添加谷歌标签管理器标签 sn -p 我们都知道<script>标签应该插入到html文件的<head>标签内,<noscript>标签应该插入到<body>标签内。由于我在 app.component.html 文件中没有 <head> 和 <body> 标记并且它们是自动生成的,我应该在哪里插入这个 google 标记管理器标记 sn-p?
【问题讨论】:
-
你在 index.html 中有一个 head 标签...把它放在那里。还可以查看 angulartics2
标签: javascript node.js angular typescript ecmascript-6