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

Should a canonical URL include tracking URL parameters (e.g. "_utm" parameters)?

· 52CE 我爱测

I need to add canonical URL meta tags to our website. The general way to do this should include any URL parameters, but is this true for tracking parameters too, such as utm_ parameters? I ask partly because I know this is guessw…

问题原文

原帖链接 · Iucounu · CC BY-SA 3.0

I need to add canonical URL meta tags to our website. The general way to do this should include any URL parameters, but is this true for tracking parameters too, such as utm_ parameters?

I ask partly because I know this is guesswork, as evidenced by the vague answers given on forums and blogs about this question. And while we can guess that Google may disregard utm_ parameters, it might be trickier to assume the same about Bing et al. In addition, Urchin parameters are not the only tracking parameters out there.

已采纳解答

原帖链接 · GDVS · CC BY-SA 3.0

No, you wouldn't include tracking parameters in the canonical link element.

It's certainly not true to say that the "general way to do this [set canonical URLs] should include any URL parameters". Most often, the canonical link element is being used, at least in part, to exclude parameters.

What is the correct approach to canonicalisation will differ by site, of course: parameters may very well be part of a valid canonical URL, but not necessarily.

Also, no need to speculate on whether Google disregard utm parameters. They don't. See screenshot below, showing a duplication due to utm parameters.

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

资料来源与适用范围

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

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

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