问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
