开发者

Does Response.Redirect affect google analytics?

We'd like to create a simple 'friendly url' on a site that Response.Redirects to the actual ugly url. Will this impact Google analytics at all?

example: /somepage redirects to /index.aspx?someuglyquerystring

Thanks.

Edit

And further to that, I'm assuming that Server.Transfer would be ok here? I did run into a gotcha in trying this - because I'm redirecting to a page that uses a master page, I had to change all of the ~开发者_高级运维 based links to absolute links, otherwise I got the nice and cryptic:

Cannot use a leading .. to exit above the top directory.


A Response.Redirect issues a 302 response code to the browser, specifically this header:

HTTP 1.0 302 Object Moved 
Location  
http://<new url>

Google Analytics will recognize this and report the original URL as the "referring URL" to the new page. This Google Analytics forum post may help clear it up.

As far as my understanding goes, there are no penalties for your search ranking when using proper redirection techniques.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜