[Piwik-hackers] Question: How to get the actions>pages widget to also display the domain name?

Matthieu Aubry matthieu.aubry at gmail.com
Thu Jul 17 01:40:04 CEST 2008


Hi there.

Stephen Stroup wrote:
> All domain names will go to the proxy server, and it will dynamically 
> send the requests to the correct server and site on our back end. One 
> of the uses is for a content management system where professors and 
> others can have a simple interface to create their own sites within 
> ours. These sites however will be seen by the client as a specific 
> domain name. With piwik analytics so far, when I view the pages 
> widget, I only see the part of the URL after the domain name. So, the 
> problem exists that all these visits are not separated by the domains. 
> This is even worse when domains have the same pages (for example, 
> index.html) as we can't distinguish them from one another. We hope to 
> be able to have an aggregate piwik site for all data coming through 
> and still be able to break it apart by the domains that were requested.
If I understand correctly: you want to have data for each of your 
websites. The normal way of doing this is to add a website in piwik for 
each of your customer's websites.
The fact that the domains are not shown in the Actions>Pages report is 
expected, usually you don't want to pollute your reports with your 
website url.
If you really want to show URLs, you can hack the 
modules/LogStats/Action line 157 and comment out
$actionName = trim(Piwik_Common::getPathAndQueryFromUrl($url));
replace by
$actionName = "";

This should keep the urls for all the future visits.


More information about the Piwik-hackers mailing list