Sitecore XPのデフォルトでは、ウェブ トラッキングが有効になっています。Sitecore XP 10.0.0以降、*.aspxパスのみではなく、任意のパスのURLパスをトラッキングから除外する機能が追加されました。Sitecore XP 10.0.0 以前のバージョンで任意のURLパスをトラッキングしないようにするには、「解決方法」を参照してください。
パスをトラッキングから除外するには、対象製品のバージョンに合わせて下記のオプションをご検討ください:
public class ExcludePath
{
public override string Process(PipelineArgs args)
{
var path = HttpContext.Current.Request.Url.AbsolutePath;
//you code for checking if path should be excluded
var pathIsExcluded = ...
if (pathIsExcluded)
{
args.AbortPipeline();
}
}
}
Tracker.Current.CurrentPage.Cancel()