标签: gtag.js
我正在一个类似电子的环境中工作,其中主html页面的协议读取为file:,而不是预期的http:或https:。通过http://localhost运行时,我可以看到网络活动,但是从file:运行的相同代码不会导致任何网络活动。
file:
http:
https:
http://localhost
是否可以告诉gtag.js禁用对协议as there is with analytics.js的检查?
gtag.js
analytics.js