Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Show Websites by Group in 'All websites' dashboard #2174

Closed
mattab opened this Issue · 79 comments

5 participants

Matthieu Aubry Thomas Steur Anonymous Piwik user Anthon Pang airandony
Matthieu Aubry
Owner

For users tracking 10, 20 or more websites, often websites belong to groups (for example "Intranet", "Blogs" or "Ecommerce sites"), groups can be the type of the website, a given project which contains several websites, or an agency would want to organize websites by customer.

Requires #4692

Goals:

  • Allow users to assign websites to groups in the UI
    • In the API, it is already possible to assign a 'group' to a website. However this functionnality is not available in the User Interface yet.
  • All Websites dashboard to show websites grouped by Group, and for each group show the sum of visits/actions/revenue for websites within this group

Specification:

  • In the 'All Websites' dashboard, the Super User could see an aggregate number of visits/pages for the group. Websites would appear below their group row.
  • The user can set the groups within the All Websites dashboard
    • Create a group
    • Move a website into a group
    • Move a website out of a group
    • Move a website into a group not visible on the current page
  • Allow to rename a group
  • Allow to search within websites and groups with the All websites search field
  • Website selector:
    • would also show the website groups eg. prefix with the group name: [$groupName] $siteName
    • website selector search would also search for groups
Matthieu Aubry
Owner

Not very useful as is, need better vision ;)

Anonymous Piwik user

I have the same problem, now I handle the stats of 100 websites and more, I'd like to be able to have an overview of the stats by website group.

I think the ability of aggregating number of visits/pages for the group on the all website page is a very good idea, and I need it :)

Or maybe we could not modify the All website page but create an new page "Website Group" with stats / group ?

Matthieu Aubry
Owner

You're right it is useful.. I shouldn't have closed it.

It would be helpful if you could propose a mockup if you are by any chance a designer or have an idea on how it could look like on the UI side?

Otherwise we will do this at some point for sure.

Anonymous Piwik user

No sorry I m not a designer but I would have expected something very similar to the MultiSite module with a <table>, but instead of displaying the stats for the website in each row it displays the stats for the group in each row.

When a user click on a row, it could expand/collapse another <table> which display the stats of each website belonging to the group, exactly the same way of MultiSite.

Anonymous Piwik user

I vote for this too.

Anonymous Piwik user

Implemented something that handles the SitesManager admin UI, w/o touching the "All Websites" frontend. This doesn't require much of a design, it just behaves like the rest of the fields (in the "new website" form and when editing websites).

See here: github. cxm/piwik/piwik/pull/4
If you prefer not to pull into your Git, here's a patch: github. cxm/shesek/piwik/commit/16bede8b412a970c4d6f63483479c6b8d50296e8.patch

(your spam filters are quite aggressive... had to remove http:// and replace .com with . cxm)

Anthon Pang
Collaborator

see proposed patch: shesek@16bede8

Matthieu Aubry
Owner

How did you find this nice patch, if I go to: https://github.com/piwik/piwik/pulls I don't see the pull requests?

Anonymous Piwik user

i would also like to have statistics of grouped websites. And maybe it is not so advisible to implement the group just as a column in the piwik_site. take maybe into account that a site can be member of multiple groups

Anonymous Piwik user

"In the API, it is already possible to assign a 'group' to a website. However this functionality is not available in the User Interface yet. "
Is the UI Implemented so far? I need this functionality with UI, being able to use.

Matthieu Aubry
Owner

please contact us via http://piwik.pro/ to learn more about this feature!

Matthieu Aubry
Owner

Updated specification.

Thomas Steur
Owner
Matthieu Aubry
Owner

Note: this ticket requires the All Websites dashboard to use AngularJS, will be done in: #4692

Thomas Steur
Owner

In e04f4cd: refs #2174 all websites selector based on angularjs, also added the possibility to use %s and %1$s in JS translations

Thomas Steur
Owner

In d001c55: refs #2174 removed all the no longer needed code, added refresh functionality

Thomas Steur
Owner

In 11864d8: refs #2174 fix sorting, next: adding groups

Thomas Steur
Owner

In fcc1e5a: refs #2174 added name of group as metadata

Thomas Steur
Owner

In 60211e0: refs #2174 display site groups and show aggregated values for them

Thomas Steur
Owner

In cfbb50a: refs #2174 do not link name of group

Thomas Steur
Owner

In 610edc3: refs #2174 adding the actual angular lib, maybe later we use bower?

Thomas Steur
Owner

In e4757ab: refs #2174 some bugfixes

Thomas Steur
Owner

In 3fa4603: refs #2174 removed some not needed files

Thomas Steur
Owner

In d689528: refs #2174 removed source map mapping as it will not work on production (when merged assets is enabled it cannot find the path to this file)

Thomas Steur
Owner

In 759007c: refs #2174 display total revenue

Thomas Steur
Owner

In 0480854: refs #2174 update name of group only on success

Thomas Steur
Owner

In 74deb5f: refs #2174, bugfixes, compatibility with IE8, display groups in site selector

Thomas Steur
Owner

In da7d92e: refs #2174 remove access service in favor of writing superUserAccess info directly into a var as it is just faster and allows us to execute less code

Thomas Steur
Owner

In 318450e: refs #2174 get date via broadcast

Thomas Steur
Owner

In f0c4483: refs #2174 fixed some tests

Thomas Steur
Owner

In 7e86e32: refs #2174 fix more tests

Thomas Steur
Owner

In 9290985: refs #2174 fix more tests

Thomas Steur
Owner

In 4d5e89b: refs #2174 loads of bugfixes and improvements

Thomas Steur
Owner

In a616616: refs #2174 workaround for a bug in Webkit which does not apply the styles / render in this case. only if one manually adds a class afterwards and removes it again

Thomas Steur
Owner

In e3eff0d: refs #2174

Thomas Steur
Owner

In c8a0b91: refs #2174 remove some logic from multisites API which is no longer needed as it is done in JavaScript

Thomas Steur
Owner

In d7a5a59: refs #2174 added some documentation and some features

Thomas Steur
Owner

In 6c9750f: refs #2174 add an import directory only if the asset contains an @import. Fixes a file named admin.less file in any plugin overwrites the admin.less file in Morpheus plugin

Thomas Steur
Owner

In d802ae0: refs #2174 clear the sites cache after we have added all the needed information to reduce memory usage

Thomas Steur
Owner

In 321f55b: refs #2174 this fixes a segmentation fault issue when requesting > 16k sites, still one Seg fault to fix

Thomas Steur
Owner

In 5936bca: refs #2174 fix some tests, looks like we still need to get past data to calculate the volution

Thomas Steur
Owner

In bd34823: refs #2174 some code tweaks

Thomas Steur
Owner

In 1657f05: refs #2174 some more bugfixes and prevent some XSS

Thomas Steur
Owner

In 8f66957: refs #2174 all websites selector based on angularjs, also added the possibility to use %s and %1$s in JS translations

Thomas Steur
Owner

In e2b7b65: refs #2174 removed all the no longer needed code, added refresh functionality

Thomas Steur
Owner

In d76810a: refs #2174 fix sorting, next: adding groups

Thomas Steur
Owner

In 974e860: refs #2174 added name of group as metadata

Thomas Steur
Owner

In db2896b: refs #2174 display site groups and show aggregated values for them

Thomas Steur
Owner

In 31e20c5: refs #2174 do not link name of group

Thomas Steur
Owner

In be1e5d2: refs #2174 adding the actual angular lib, maybe later we use bower?

Thomas Steur
Owner

In a45bc6f: refs #2174 some bugfixes

Thomas Steur
Owner

In 9b3a9ad: refs #2174 removed some not needed files

Thomas Steur
Owner

In b72b505: refs #2174 removed source map mapping as it will not work on production (when merged assets is enabled it cannot find the path to this file)

Thomas Steur
Owner

In 6e8086f: refs #2174 display total revenue

Thomas Steur
Owner

In 4b1862c: refs #2174 update name of group only on success

Thomas Steur
Owner

In 2710748: refs #2174, bugfixes, compatibility with IE8, display groups in site selector

Thomas Steur
Owner

In 6eac37a: refs #2174 remove access service in favor of writing superUserAccess info directly into a var as it is just faster and allows us to execute less code

Thomas Steur
Owner

In d6e4790: refs #2174 get date via broadcast

Thomas Steur
Owner

In 832d1c5: refs #2174 fixed some tests

Thomas Steur
Owner

In 7c4921f: refs #2174 fix more tests

Thomas Steur
Owner

In 02da780: refs #2174 fix more tests

Thomas Steur
Owner

In f1ce978: refs #2174 loads of bugfixes and improvements

Thomas Steur
Owner

In 6af210e: refs #2174 workaround for a bug in Webkit which does not apply the styles / render in this case. only if one manually adds a class afterwards and removes it again

Thomas Steur
Owner

In b77622c: refs #2174

Thomas Steur
Owner

In de9a6ec: refs #2174 remove some logic from multisites API which is no longer needed as it is done in JavaScript

Thomas Steur
Owner

In fa2f6be: refs #2174 added some documentation and some features

Thomas Steur
Owner

In 2fc593e: refs #2174 add an import directory only if the asset contains an @import. Fixes a file named admin.less file in any plugin overwrites the admin.less file in Morpheus plugin

Thomas Steur
Owner

In c500a05: refs #2174 clear the sites cache after we have added all the needed information to reduce memory usage

Thomas Steur
Owner

In 1a1a4fa: refs #2174 this fixes a segmentation fault issue when requesting > 16k sites, still one Seg fault to fix

Thomas Steur
Owner

In e2cb918: refs #2174 fix some tests, looks like we still need to get past data to calculate the volution

Thomas Steur
Owner

In db1cbef: refs #2174 some code tweaks

Thomas Steur
Owner

In 3f96604: refs #2174 some more bugfixes and prevent some XSS

Thomas Steur
Owner

In 4224360: Merge pull request #230 from piwik/angularjs_websites_selector

refs #4692 #2174 SiteSelector and AllWebsitesDashboard using AngularJS

Thomas Steur
Owner

In 5f656f6: refs #2174 make sure we update the private var and not the local var

Thomas Steur
Owner

In 88ae4ef: refs #2174 make sure link works

Thomas Steur
Owner

In 46f2dd8: refs #2174 added cachebuster to template

Matthieu Aubry
Owner

a job well done!

Matthieu Aubry mattab added this to the Future releases milestone
Thomas Steur tsteur was assigned by mattab
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 all websites selector based on angularjs, also added the p…
…ossibility to use %s and %1$s in JS translations
8f66957
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 removed all the no longer needed code, added refresh funct…
…ionality
e2b7b65
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 fix sorting, next: adding groups d76810a
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 added name of group as metadata 974e860
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 do not link name of group 31e20c5
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 some bugfixes a45bc6f
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 removed some not needed files 9b3a9ad
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 removed source map mapping as it will not work on producti…
…on (when merged assets is enabled it cannot find the path to this file)
b72b505
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 display total revenue 6e8086f
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 update name of group only on success 4b1862c
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 remove access service in favor of writing superUserAccess …
…info directly into a var as it is just faster and allows us to execute less code
6eac37a
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 get date via broadcast d6e4790
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 fixed some tests 832d1c5
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 fix more tests 7c4921f
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 fix more tests 02da780
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 loads of bugfixes and improvements f1ce978
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 workaround for a bug in Webkit which does not apply the st…
…yles / render in this case. only if one manually adds a class afterwards and removes it again
6af210e
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 b77622c
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 remove some logic from multisites API which is no longer n…
…eeded as it is done in JavaScript
de9a6ec
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 added some documentation and some features fa2f6be
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 add an import directory only if the asset contains an @import
. Fixes a file named admin.less file in any plugin overwrites the admin.less file in Morpheus plugin
2fc593e
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 clear the sites cache after we have added all the needed i…
…nformation to reduce memory usage
c500a05
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 this fixes a segmentation fault issue when requesting > 16…
…k sites, still one Seg fault to fix
1a1a4fa
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 fix some tests, looks like we still need to get past data …
…to calculate the volution
e2cb918
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 some code tweaks db1cbef
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 some more bugfixes and prevent some XSS 3f96604
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 make sure link works 88ae4ef
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #2174 added cachebuster to template 46f2dd8
airandony

Hi,

I'm not sure to understand how github works. But there is a plugin for showing websites in group on the dashboard?
Or what should I edit with the version 2.8.1 ?

Matthieu Aubry
Owner

@airandony We have the plugin but it was not yet open source. We will shortly publish it on the marketplace for everyone to enjoy! stay tuned on #6502

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.