/// <summary> /// Logs the statistics. /// </summary> private void LogStatistics() { if (Master.SiteSettings.CollectBrowsingCategory) { BrowsingLogController.LogBrowsingInfo(categoryId, BrowsingBehaviour.Browsing_Category, Request.Url.ToString().PadRight(255).Substring(0, 254).Trim(), WebUtility.SessionId(), WebUtility.GetUserName()); } }
/// <summary> /// Logs the product browse. /// </summary> private void LogProductBrowse() { if (Master.SiteSettings.CollectBrowsingProduct) { BrowsingLogController.LogBrowsingInfo(productId, BrowsingBehaviour.Browsing_Product, Request.Url.ToString().PadRight(255).Substring(0, 254).Trim(), WebUtility.SessionId(), WebUtility.GetUserName()); } }
protected void Page_Load(object sender, EventArgs e) { searchTerms = HttpUtility.UrlDecode(Utility.GetParameter("searchTerms")); string p = Utility.GetParameter("p"); if (!string.IsNullOrEmpty(searchTerms)) { if (string.IsNullOrEmpty(p)) { if (Master.SiteSettings.CollectSearchTerms) { BrowsingLogController.LogBrowsingInfo(searchTerms, BrowsingBehaviour.Search, Request.Url.ToString().PadRight(255).Substring(0, 254).Trim(), WebUtility.SessionId(), WebUtility.GetUserName()); } } LoadProducts(); } Page.Title = string.Format(WebUtility.MainTitleTemplate, Master.SiteSettings.SiteName, searchTerms); }