[英]Embed mixpanel script in an angular app
I'm trying to implement mixpanel in an angular app but I do not want to embed the mixpanel script in my html, I'd rather have it in my index.run.js file which contains most of my configurations. 我正在尝试在有角度的应用程序中实现mixpanel,但我不想将mixpanel脚本嵌入到html中,我希望将其包含在包含我的大多数配置的index.run.js文件中。 Is there a way to do this?
有没有办法做到这一点?
To answer my question, I just added the mixpanel script in my index.run.js
file in between 为了回答我的问题,我只是在之间的
index.run.js
文件中添加了mixpanel脚本
// jscs:disable
/* jshint ignore:start */
// mixpanel script
/* jshint ignore:end */
// jscs:enable
That's all :) 就这样 :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.