当我通过 Google Tag Manager 使用 Google Analytics 4 脚本时,它会同时设置原始分析脚本和gtag 脚本。像这样:
<script type="text/javascript" async="" src="https://www.google-analytics.com/analytics.js"></script
<script type="text/javascript" async="" src="https://www.googletagmanager.com/gtag/js?id=MY_ID"></script>
如果我通过 GA 获取代码片段,为什么包含 analytics.js 而不仅仅是 Google 建议的 gtag/js?