Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
mattab opened this Issue · 79 comments

5 participants

@mattab
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
@mattab
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 ?

@mattab
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)

@robocoder
Collaborator

see proposed patch: shesek@16bede8

@mattab
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.

@mattab
Owner

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

@mattab
Owner

Updated specification.

@tsteur
Owner
@mattab
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

In e4757ab: refs #2174 some bugfixes

@tsteur
Owner

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

@tsteur
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)

@tsteur
Owner

In 759007c: refs #2174 display total revenue

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
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

@tsteur
Owner

In 318450e: refs #2174 get date via broadcast

@tsteur
Owner

In f0c4483: refs #2174 fixed some tests

@tsteur
Owner

In 7e86e32: refs #2174 fix more tests

@tsteur
Owner

In 9290985: refs #2174 fix more tests

@tsteur
Owner

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

@tsteur
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

@tsteur
Owner

In e3eff0d: refs #2174

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

In bd34823: refs #2174 some code tweaks

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

In a45bc6f: refs #2174 some bugfixes

@tsteur
Owner

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

@tsteur
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)

@tsteur
Owner

In 6e8086f: refs #2174 display total revenue

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
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

@tsteur
Owner

In d6e4790: refs #2174 get date via broadcast

@tsteur
Owner

In 832d1c5: refs #2174 fixed some tests

@tsteur
Owner

In 7c4921f: refs #2174 fix more tests

@tsteur
Owner

In 02da780: refs #2174 fix more tests

@tsteur
Owner

In f1ce978: refs #2174 loads of bugfixes and improvements

@tsteur
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

@tsteur
Owner

In b77622c: refs #2174

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

In db1cbef: refs #2174 some code tweaks

@tsteur
Owner

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

@tsteur
Owner

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

refs #4692 #2174 SiteSelector and AllWebsitesDashboard using AngularJS

@tsteur
Owner

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

@tsteur
Owner

In 88ae4ef: refs #2174 make sure link works

@tsteur
Owner

In 46f2dd8: refs #2174 added cachebuster to template

@mattab
Owner

a job well done!

@mattab mattab added this to the Future releases milestone
@tsteur tsteur was assigned by mattab
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 all websites selector based on angularjs, also added the p…
…ossibility to use %s and %1$s in JS translations
8f66957
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 removed all the no longer needed code, added refresh funct…
…ionality
e2b7b65
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 fix sorting, next: adding groups d76810a
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 added name of group as metadata 974e860
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 do not link name of group 31e20c5
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 some bugfixes a45bc6f
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 removed some not needed files 9b3a9ad
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur 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
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 display total revenue 6e8086f
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 update name of group only on success 4b1862c
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur 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
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 get date via broadcast d6e4790
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 fixed some tests 832d1c5
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 fix more tests 7c4921f
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 fix more tests 02da780
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 loads of bugfixes and improvements f1ce978
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur 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
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 b77622c
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 remove some logic from multisites API which is no longer n…
…eeded as it is done in JavaScript
de9a6ec
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 added some documentation and some features fa2f6be
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur 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
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 clear the sites cache after we have added all the needed i…
…nformation to reduce memory usage
c500a05
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 this fixes a segmentation fault issue when requesting > 16…
…k sites, still one Seg fault to fix
1a1a4fa
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 fix some tests, looks like we still need to get past data …
…to calculate the volution
e2cb918
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 some code tweaks db1cbef
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 some more bugfixes and prevent some XSS 3f96604
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #2174 make sure link works 88ae4ef
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur 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 ?

@mattab
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.