Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using EPiServer.ServiceLocation;
using EPiServer.Tracking.Core;
namespace InsightScopes.Business.ChangeScope
[ServiceConfiguration(ServiceType = typeof(ITrackingDataInterceptor), Lifecycle = ServiceInstanceScope.Singleton)]
public class CustomScopeInterceptor : ITrackingDataInterceptor
public int SortOrder => int.MaxValue; // Ensure the interceptor fires last
public void Intercept<TPayload>(TrackingData<TPayload> trackingData)
trackingData.Scope = "MyCustomScope";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.