Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: More options how to filter click events #2351

Open
krystofmatejka opened this issue May 22, 2024 · 1 comment
Open

[Feature]: More options how to filter click events #2351

krystofmatejka opened this issue May 22, 2024 · 1 comment

Comments

@krystofmatejka
Copy link

Is your feature request related to a problem? Please describe.
ai-apps

If you have APP 2 as a part of APP 1, there isn't any possibility of collecting clickanalytics events only from the inner (APP 2) application.

dntDataTag works the other way around. You can apply it to APP 2 and prevent APP 2 from collecting metrics.

Describe the solution you'd like

  1. I would implement filter callback that would be called when the event is processed. If the callback returns false, the event will be dropped.

Proposed interface

export interface IValueCallback {
  dropEvent?: (event: ITelemetryItem): boolean;
}
  1. Or we can introduce something like dontDntDataTag attribute that would capture events only from elements that have this parent attribute. You would apply it on root element of APP 2 and everything from APP 1 will be ignored.

Describe alternatives you've considered
My current solution is to filter events by parentId in KQL.

Additional context
If it makes sense to you, I'm willing to implement it.

@Karlie-777
Copy link
Contributor

one workaround is set parentDataTag

of App2 to a different one, and mark app1 as do not track. please let us know if it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants