What is “initiator other” in network in chrome console?

浪子不回头ぞ 提交于 2019-12-03 14:29:30

问题


I fire an image tag when someone converts on our website for reporting and analytics:

<img src="https://example.evyy.net/conv/?somechannel=cats&cid=3790&oid=123&cat1=premium&sku1=123&qty1=1&amt1=456&custid=qbc" />

We noticed traffic decline yesterday. To debug I visited the site and signed up, with the console open network tab.

I typed "evyy" into the filter box and I see 3 line items for my tag.

What does this mean? Should there not be just 1 line item? One item has a 302 status and the other two a status of 200. That's good right?

Screen attached. Does this look "right"? Is there any drill down in the network tab I can look at to see if there is a problem on our end with tracking?


回答1:


"Initiator Other" usually means the network request was made from a user, not from Chrome, a redirect or a script.

The request was fired when someone clicked a button (this is what your analytics is probably tracking). You can read more about this in the Chrome DevTools docs.

Initiator: The object or process that initiated the request. It can have one of the following values:

  1. Parser - Chrome's HTML parser initiated the request.

  2. Redirect - A HTTP redirect initiated the request.

  3. Script - A script initiated the request.

  4. Other - Some other process or action initiated the request, such as the user navigating to a page via a link, or by entering a URL in the address bar.

The requests are made in the order you see, the first received the 302 response which said, "hey, go to this new url". That's (probably) why the second request was made, which got the 200. The third was probably from clicking on the button too. Looks fine to me.



来源:https://stackoverflow.com/questions/33262415/what-is-initiator-other-in-network-in-chrome-console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!