我已按照此处的步骤操作:https://segment.io/libraries/analytics.js不偏离他们的指示。
以下是其中一个请求的 header :
Request URL:http://api2.segment.io/v1/t
Request Headersview source
Content-Type:text/plain
Origin:http://staging.mywebsite.com
Referer:http://staging.mywebsite.com/
User-Agent:Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36
Request Payloadview source
{userId:null, sessionId:ccea006ec74cc613, event:Loaded a Page,…}
apiKey: "eijofijoi4r"
callbackId: 350
context: {}
event: "Loaded a Page"
properties: {url:http://staging.mywebsite.com/, referrer:,…}
sessionId: "ccea006ec74cc613"
userId: null
预览
和响应
都没有可用数据。其他值得一提的属性:
Method: POST
Status: (cancelled)
Type: Pending
可能导致(已取消)状态
的原因有哪些?
我可以采取任何步骤来收集更多信息吗?
最佳答案
我也看到了这一点 - 结果是 AdBlock 扩展阻止了请求。
关于javascript - Segment.IO 请求失败,状态为已取消,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17769379/