How to use only relative urls in logs?

If I use cordova-app then my URL link looks like a this double hamburger:

url: file://file:///android_asset/www/index.html#!/login/login

if I use browser

url: http://localhost/login

what I need is to have same paths for all environments…

currently we have chaos in our view…

- ...
- /login
- file:
  - file
     - android_assets
       - www
          - /index.html
          - index.html
             - /login
- /index
- /user
- /settings
- ...

I will have only this structures:

- /login
- /settings
- /user

because all other items in tree are duplicates…

Hi,

In the tracking code you can set the URL manually with

_paq.push(['setCustomUrl', theUrl]);

So you can write a bit of JS that normalizes your URL to the correct structure and then sends that one to Matomo.