Multiple sites - same code?


(bizseo) #1

Hello everyone style_emoticons/<#EMO_DIR#>/biggrin.gif
I just installed Piwik on my server like… 5 mins ago.

My question is:

I have many websites and I wanna use same code for all. Uploaded the javascript code on 10 sites just for test. But the stats at “Pages” looks like this:

/index
/page-name-site-1
/page-name-site-5
/page-name-site-3

I thought it will display the domains too style_emoticons/<#EMO_DIR#>/smile.gif

Besides that, i even don’t have a page named /index


(Matthieu Aubry) #2

there is a ticket to deal with this issue: http://dev.piwik.org/trac/ticket/776

you could actually define a custom page name with your website subdomain, ie. call the function below before piwikTracker.trackPageView();

piwikTracker.setDocumentTitle(document.location.host + document.location.pathname+document.location.search);