Alias Path in URL

Dave Nelson asked on August 23, 2016 18:37

In Google Analytics I am seeing a lot of visitors with a query string that includes "aliaspath=documentpath/documentname" which is treated by Google as a different webpage. This is causing our reports to be inaccurate as to how many people have visited that page.

How do I get the Kentico 8 CMS to not append the aliaspath to the URL?

Recent Answers


Dave Nelson answered on August 23, 2016 19:44

I found this question and veriefied that Settings > URLs and SEO > Redirect page aliases to main URL is checked but we are still seeing a lot of visitors with the "aliaspath" query string.

https://devnet.kentico.com/forums/f46/t21027/document-alias-path-and-custom-url-path-allows

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on August 23, 2016 20:21

You might do a scan on your site to see if those are links actually created from a WYSIWYG editor or if your site is setup that way.

0 votesVote for this answer Mark as a Correct answer

Dave Nelson answered on August 23, 2016 21:09

Brenden, I have scanned the site and there are no links with an alias path.

This is so strange because when I look at Google Analytics it just started happening yesterday and in one day we went from less than 200 pageviews a day with an "aliaspath" to 5,768 in one day.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on August 23, 2016 22:01

Ok then can you see in your event logs in Kentico or the IIS event logs to see if there could be some sort of attack or someone/thing like a bot indexing your site?

If you haven't already, maybe try restarting the site.

0 votesVote for this answer Mark as a Correct answer

Dave Nelson answered on August 26, 2016 21:01

I found a possible fix for Google. In Google's Webmaster Tools under Crawl > URL Parameters we have added "aliaspath" with "No: Doesn't affect page content (ex: tracks usage)" selected.

This should cause the "aliaspath" parameter to be ignored by Google Analytics... At least I hope it will.

0 votesVote for this answer Mark as a Correct answer

Dave Nelson answered on September 1, 2016 16:25

I think I found the source of the issue and the part that has changed recently. In the output HTML the form now have an action with an aliaspath appended. How do I get Kentico to not include that alispath?

<form method="post" action="./home.aspx?aliaspath=%2fhome" onsubmit="javascript:return WebForm_OnSubmit();" id="form">

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.