kentico_helenag
-
1/27/2009 4:07:43 AM
RE:Web Analytics - Invalid Pages
Hello,
Meantime (before the next version), you could develop such functionality by yourself. The information about custom web analytics reports is here: http://devnet.kentico.com/docs/devguide/creating_custom_reports.htm
You could log the event in the Global.asax.cs file (in the App_code folder). There is a line about 540: 'HitLogProvider.LogHit(HitLogProvider.PAGE_NOT_FOUND, siteName, CMSContext.PreferredCultureCode, url, 0);'
You could add the referral URL like this: Uri referrer = HttpContext.Current.Request.UrlReferrer; string referral = UrlHelper.RemoveQuery(referrer.AbsoluteUri);
Then you could for example change the mentioned hit log like this:
HitLogProvider.LogHit(HitLogProvider.PAGE_NOT_FOUND, siteName, CMSContext.PreferredCultureCode, url + " (" + referral + ")", 0);
Best regards, Helena Grulichova
|