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

Make tracked url to lowercase #92

Open
ChristophKind opened this issue Jul 10, 2024 · 1 comment
Open

Make tracked url to lowercase #92

ChristophKind opened this issue Jul 10, 2024 · 1 comment

Comments

@ChristophKind
Copy link

How can i configure that the tracked urls should all be converted to lowercase?

In native js I can. do this via
_paq.push(['setCustomUrl', location.href.toLowerCase()]);

Regards
Chris

@EmmanuelRoux
Copy link
Owner

Hi @ChristophKind

You can do so using a custom interceptor.

See Using custom interceptor in README.

Take a look at MySimpleInterceptor example: you can use the same pattern to call tracker.setCustomUrl(…) with your own logic.

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