在关闭之前,我该如何嵌入片段。在纪录片中标记?
我想在我的Docusaurus网站上的</body>
标签之前立即安装此片段。
<script type="text/javascript">
window._mfq = window._mfq || [];
(function() {
var mf = document.createElement("script");
mf.type = "text/javascript"; mf.defer = true;
mf.src = "//cdn.mouseflow.com/projects/95f.js";
document.getElementsByTagName("head")[0].appendChild(mf);
})();
</script>
I see the concept of postBodyTags
at https://docusaurus. io/docs/api/docusaurus-config#ssrtemplate ,但没有证件。
我是否应该假装我没有注意到postbodytags
的概念,而只是编辑ssrtemplate
html字符串以包含我的片段?
I want to install this snippet immediately before the </body>
tag on my Docusaurus site.
<script type="text/javascript">
window._mfq = window._mfq || [];
(function() {
var mf = document.createElement("script");
mf.type = "text/javascript"; mf.defer = true;
mf.src = "//cdn.mouseflow.com/projects/95f.js";
document.getElementsByTagName("head")[0].appendChild(mf);
})();
</script>
I see the concept of postBodyTags
at https://docusaurus.io/docs/api/docusaurus-config#ssrTemplate, but it's undocumented.
Should I just pretend that I didn't notice the concept of postBodyTags
and just edit the ssrTemplate
HTML string to include my snippet?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论