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

Do redirects affect google analytics?

· 52CE 我爱测

I have a website that redirects in the following manner: https://example.com/drugs/paracetamol.html http://example.com/drugs/new-paracetamol.html - 302 https://example.com/drugs/new-paracetamol.html - 302 I'm aware this is curren…

问题原文

原帖链接 · Imran Azad · CC BY-SA 4.0

I have a website that redirects in the following manner:

  1. https://example.com/drugs/paracetamol.html

  2. http://example.com/drugs/new-paracetamol.html - 302

  3. https://example.com/drugs/new-paracetamol.html - 302

I'm aware this is currently an issue and that the second redirect isn't necessary, it's a bug in the redirection config. However what I'm interested in is would this configuration currently affect google analytics results in any way? If so what would it affect?

已采纳解答

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

I don't see how it would have any effect on Google Analytics. The tracking script only fires when a page is delivered to a browser.

The only way I can see this registering in Google Analytics is if you are using a client side redirect like <meta http-equiv="refresh" content="0; url=http://example.com/" /> or redirecting with javascript.

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

资料来源与适用范围

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

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

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