大网数据广告活动
网站运营与故障问答

Changing default date range in Google Analyics?

· 52CE 我爱测

Is there a way to change the default date range of 31 days in GA? After changing it and clicking apply, only the current report changes? Next time I use GA, 31 days again??? Here is documentation on GA date range.

问题原文

原帖链接 · Davor Zubak · CC BY-SA 3.0

Is there a way to change the default date range of 31 days in GA? After changing it and clicking apply, only the current report changes? Next time I use GA, 31 days again???

Here is documentation on GA date range.

社区高分解答

原帖链接 · Stephen Ostermiller · CC BY-SA 3.0

Google Analytics allows you to set the default date range to the the last 7, 14, 28, or 30 days. You can access this setting from the User Settings which is found in the "Overflow Menu" (vertical three dots):

In addition, some people have noticed that if you bookmark a specific set of dates, those dates end up in the URL. Unfortunately, if you create a bookmark with a specific set of dates, those dates will be static and not change. You will never see new data.

However you can create a javascript bookmark (bookmarklet) that dynamically calculates the dates that should be in the URL and sends you to the URL. I have found three examples of this done for Google Analytics for this purpose.

http://whiletruecode.com/post/change-the-default-google-analytics-date-range-with-a-bookmarklet

https://stackoverflow.com/questions/7509010/bookmark-with-date-in-the-url

http://ratafia.info/post/70509179/bookmarklet-to-show-todays-stats-in-google-analytics

EDIT: Some of the above links are out of date (Google changed the URL format of dates in Analytics URLs at some point). I created a page that can on my site that can be bookmarked with your Google Analytics report id to get a wide variety of links for various time periods: http://ostermiller.org/calc/ga.html

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2013-01-24)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。