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

Exclude URL query parameters - MVC ID based #14956

Closed
siva538 opened this issue Oct 4, 2019 · 3 comments
Closed

Exclude URL query parameters - MVC ID based #14956

siva538 opened this issue Oct 4, 2019 · 3 comments
Labels
answered For when a question was asked and we referred to forum or answered it.
Milestone

Comments

@siva538
Copy link
Contributor

siva538 commented Oct 4, 2019

Hello Matomo team,

We are currently using the feature of "Exclude querystring parameters" and that is helping to a certain extent.

However it doesn't handle the MVC based URLs like mentioned in this link -

https://stackoverflow.com/questions/5832598/google-analytics-and-asp-net-mvc-filtering-the-id-out-of-the-url

We were able to handle them using the "setCustomURL" for the module where it is a single page based, but for the native pages, it cannot be used as we just call "trackpageview" and nothing else.

Reaching out to you to seek any thoughts on how to handle such instances.

Few additional examples:

/core/viewlistdetails/120
/administrator/import/ImportRunProgress/12

Thanks in advance.

@tsteur tsteur added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Oct 6, 2019
@tsteur
Copy link
Member

tsteur commented Oct 6, 2019

Thanks for the feature request 👍 If you are familiar with PHP you could write a plugin that is listening to the Tracker.isExcludedVisit event. You could then get $request->getParam('url') and based on that info set $excluded = true in a custom plugin depending on the tracked URL.

The alternative be to add custom url parameters for those pages too using setCustomUrl

@siva538
Copy link
Contributor Author

siva538 commented Oct 9, 2019

@tsteur , thanks a lot for the guidance. However our requirement is not to exclude the visit altogether, but we wanted to remove the "120" and "12" (id's) from the tracking URL, for the example mentioned above. Is that possible to do so?

Thank you!

@tsteur
Copy link
Member

tsteur commented Oct 9, 2019

@siva538 for questions please ask them in the forum: https://forum.matomo.org
You might want to ask this in the developer forum or so.

@tsteur tsteur closed this as completed Oct 9, 2019
@tsteur tsteur added answered For when a question was asked and we referred to forum or answered it. and removed Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. labels Oct 9, 2019
@mattab mattab added this to the 3.12.0 milestone Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants