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

Why are URLs with my domain name at the end showing up in analytics?

· 52CE 我爱测

I have a multi-language WordPress site that has been live since the last 3 months and today when I checked Analytics, I saw a lot of weird URLs: /menswear-fashion-autumn-winter-2013-2014/www.domain.com /fashion-history/1960s-1970…

问题原文

原帖链接 · Amit Erandole · CC BY-SA 3.0

I have a multi-language WordPress site that has been live since the last 3 months and today when I checked Analytics, I saw a lot of weird URLs:

/menswear-fashion-autumn-winter-2013-2014/www.domain.com

/fashion-history/1960s-1970s/www.domain.com

/fashion-latest-news/www.domain.com

/it/fashion-history/1920s-1930s/www.domain.com

/fashion-history/1950s-1960s/www.domain.com

/fashion-history/1940s-1950s/www.domain.com

As you can see, my domain name is coming after the end of the URL. Of course, these URLs do not exist on the site and are leading to 404 errors.

Now there is an older site from which this one was migrated and that site is still live. Could that be the problem? Also for reference here is my .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# BEGIN WordPress
#<IfModule mod_rewrite.c>
#RewriteEngine On
#RewriteBase /
#RewriteRule ^index\.php$ - [L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . /index.php [L]
#</IfModule>

# END WordPress

AddType video/mp4 .mp4 .m4v
AddType video/webm .webm
AddType video/ogg .ogv 

What exactly is happening with these URLs and how do I fix it?

已采纳解答

原帖链接 · Richard Perry · CC BY-SA 3.0

You can do this by doing the following steps:

  • Login to Google Analytics
  • Click admin (upper right corner)
  • Click on the profile associated with the domain that you're having an issue with.
  • Click profile settings
  • Check the "Default Page" field, if it has your domain name in there, delete it and press apply.

Why?

The Default Page field is for the index.html, index.php or similar. This field allows GA to treat http://yourdomain.com/index.php as the same page as http://yourdomain.com/.

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

资料来源与适用范围

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

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

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