[GA] %new session in Acquisition > All traffic > Source/Medium report

Andre L
Andre L
Jul 23, 2017 · 1 min read

Every time a hit is sent to Google Analytics, the cookie expiration time is updated to be the current time plus the value of the cookieExpires field. This means that if you use the default cookieExpires time of two years, and a user visits your site every month, their cookie will never expire.

If you set the cookieExpires time to 0 (zero) seconds, the cookie turns into a session based cookie and expires once the current browser session ends:

source

Example #1
• First visit — 10am, June 5; Second visit — 10pm, June 5
• Report date range = June 5 — June 5
• 如同這篇文章所述,the default cookieExpires time is two years。如果這個 user 從 June 5 往前推兩年 (cookie duration) 都沒有訪問這個 website,那”% New Sessions” = 50%
Example #2
• First visit- 10am, June 4; Second visit — 10am, June 5
• Report date range = June 5 — June 5
• 因為 user “之前” (也就是 June 4)曾經訪問過網頁,所以這個 user 不是 new user 而是 returning user,所以 “% New Sessions” = 0%。
• 以上的算法的假設是 users 沒有把 cookie 刪掉

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade