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

Replace REVEUNE with UNIQUE VISITORS in the All Websites dashboard #8800

Closed
triffic-tang opened this issue Sep 16, 2015 · 2 comments
Closed
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@triffic-tang
Copy link

Hi, piwik developers, thanks for this great App.
Ok, Here's the problem. We want to replace REVEUNE with UNIQUE VISITORS in the All Websites dashboard, so I want to change somthing.

Step One:

Change General_ColumnRevenue to General_ColumnNbUniqVisitors

<th id="nbactions" class="multisites-column" ng-click="model.sortBy('nb_uniq_visitors')" ng-class="{columnSorted: 'nb_uniq_visitors' == model.sortColumn}"> 
                <span ng-class="{multisites_asc: !model.reverse && 'nb_uniq_visitors' == model.sortColumn, multisites_desc: model.reverse && 'nb_uniq_visitors' == model.sortColumn}" class="arrow"></span> 
                <span class="heading">{{ 'General_ColumnNbUniqVisitors'|translate }}</span> 
            </th> 

From /plugins/MultiSites/angularjs/dashboard/dashboard.directive.html

Step Two

Add nb_uniq_visitors in the showColumns.

var params = {
                module: 'MultiSites',
                action: 'getAllWithGroups',
                hideMetricsDoc: '1',
                filter_sort_order: 'asc',
                filter_limit: model.pageSize,
                filter_offset: getCurrentPagingOffsetStart(),
                showColumns: 'nb_uniq_visitors,label,nb_visits,nb_pageviews,visits_evolution,pageviews_evolution,revenue_evolution,nb_actions,revenue'
            };

From /plugins/MultiSites/angularjs/dashboard/dashboard-model.service.js

Last Step

Change website.revenue to website.nb_uniq_visitors

<td class="multisites-column">
        {{ website.nb_uniq_visitors }}
    </td>

From /plugins/MultiSites/angularjs/site/site.directive.html

As you can see from the picture below, I get nothing!
piwik

Any idea to solve this problem?

@mattab
Copy link
Member

mattab commented Sep 20, 2015

Hi @jerrycave

We don't here support code changes in Piwik directly. Maybe ask your question in the Plugins & Platform forum: http://forum.piwik.org/list.php?9

@mattab mattab closed this as completed Sep 20, 2015
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Sep 20, 2015
@phips28
Copy link

phips28 commented Nov 26, 2019

@triffic-tang have you ever fixed this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants