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

Is www required in front of a domain name, in Google Analytics?

· 52CE 我爱测

I have a website (let's call it example.com ). It can be accessed as example.com and also as www.example.com . I just added example.com in Google Search Console as property (it appears as example.com , without www ). Question: Sh…

问题原文

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

I have a website (let's call it example.com). It can be accessed as example.com and also as www.example.com. I just added example.com in Google Search Console as property (it appears as example.com, without www).

Question: Should I include also the www.example.com as property?

已采纳解答

原帖链接 · Tony McCreath · CC BY-SA 4.0

With Google Search Console you want to either verify a property at the domain level, which means all url prefix variants like www and http/https are included, or verify all url prefix variants separately.

Serving content on different url prefixes is not advised, pick one and have all the others redirect to it.

With Google Analytics url prefix does not matter. It tracks based on where the tracking code is placed. If it's on all url prefix variants, it tracks all.

However, if you want to link your Google Analytics to the Google Search Console, you can't do it via the domain level (Last I checked). You have to pick one url prefix variant and link to that.

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

资料来源与适用范围

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

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

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