IvanJosipovic / BlazorApplicationInsights

Application Insights for Blazor web applications

Home Page:https://BlazorApplicationInsights.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to turn off Track Page View auto triggers

mentorfloat opened this issue · comments

NavigationManager.LocationChanged += NavigationManager_LocationChanged;

Any chance you'd consider allowing us to turn off the automatic Track Page View on route changes?

It's a minor improvement and should allow more flexibility for different use case.

Hey,

Yes I would. Let me know if you're willing to PRs this enhancement or if you need me to implement this change.

Thanks,
Ivan

Curious: why is the component doing this when the enableAutoRouteTracking option appears to do the same thing?

This feature has been implemented in version 1.3.0

There is a new parameter introduced which can disable the auto route tracking.

builder.Services.AddBlazorApplicationInsights(enableAutoRouteTracking: false);