Firefox private browsing requires 2 page loads to set cookies

三世轮回 提交于 2019-12-08 04:25:30

@Jamie_D was correct in identifying the problem:

According to this page: "Cookies set in private windows are held temporarily in memory, separate from regular window cookies, and discarded at the end of your private session"

Due to the cookies not showing up in the dev tools, the solution was to enter the following JavaScript into the console:

unescape(document.cookie.split('; '));

Source: https://support.mozilla.org/en-US/questions/1031619#answer-672435

The expected cookies were returned including _ga, _gat, and _gid.

I double checked that Google Analytics was pulling the correct real-time data and everything looks good.

So to be clear, Firefox private browsing didn't require 2 page loads to set the cookies... Firefox was just not showing they were set in the dev tools.

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