matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.7k stars 2.62k forks source link

simplify url structure #7558

Open hpvd opened 9 years ago

hpvd commented 9 years ago

When trying to generate urls to specific "points" within piwik automatically, we noticed urls contain same info several times.

Example: url to visitor log of today for a special site looks like this: http://piwik. ... /index.php?module=CoreHome&action=index&idSite=4&period=day&date=today#/module=Live&action=indexVisitorLog&idSite=4&period=day&date=today

when you structure it a little

http://piwik. ... / index.php? module=CoreHome &action=index &idSite=4 &period=day &date=today

/

module=Live &action=indexVisitorLog &idSite=4 &period=day &date=today

you see it contains the following values twice:

If you do things like segmentation even more values are doubled..

Can't/shouldn't this be simplified?

mattab commented 9 years ago

Hi @hpvd It would be nice to have simpler URLs... Currently this works like this by design of how the javascript works. It's useful to have both for example when a Popover is loaded it loads both the report in the background and then the popover (2 different reports). It may be simplified when we will use more AngularJS features eg. their request router in Piwik.