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

Will updating the default URL in the Google Analytics property settings from HTTP to HTTPS hurt the previous data?

· 52CE 我爱测

My client formerly changed the SSL of his website (around 3 years ago). But since then he hasn't implemented the changes in GA account and the URL shown in the account is still HTTP version. If I update it, would I lose the previ…

问题原文

原帖链接 · Maryam Beheshti · CC BY-SA 4.0

My client formerly changed the SSL of his website (around 3 years ago). But since then he hasn't implemented the changes in GA account and the URL shown in the account is still HTTP version.

If I update it, would I lose the previous data?

已采纳解答

原帖链接 · Emirodgar · CC BY-SA 4.0

Quick answer

The Default URL in Google Analytics doesn't affect data collection in any way, so you can change it without any problem.

Full explanation

Google Analytics, by default, does not collect the host and only uses the internal path. For example, your home instead of being recorded in Analytics as https://example.com would be just / and https://example.com/landing would be /landing.

When you launch some reports that need to load the full URL, that's when Analytics uses the Default URL value to get to them. So, even if you put a wrong domain in there, data would be collected without problem. Check this link.

Website's URL: The domain name of website you're tracking, e.g. www.example.com. This information is used by the Content reports, including In-Page Analytics.

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

资料来源与适用范围

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

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

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