我有一个gtag.js,其中包含我的跟踪代码
谷歌说要把这个添加到我的顶部,我怎么能为我的dash应用程序点上他的
我尝试将其添加为/assets下的gtag.js,但没有成功
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-*****-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-******-1');
</script>
您应至少通过两种方式完成此任务:
Dash.interpolate_index
方法:请参见Plotly论坛中的the docs和sislvacl's answer了解更多信息
相关问题 更多 >
编程相关推荐