Piwik, how to get data to a subdomain?
I have many subdomains and I want event data for each subdomain. what i did was do an HTTP request like this for each subdomain:
/? idSite=6& token_auth=out-outh-token& format=json& date=2014-10-13%2C2014-10-14& expanded=1& segment=eventCategory%3D%3Dgoals%3BpageUrl%3D%40some-sub-domain& method=Events.getCategory& module=API& period=range
which is great for development, but since I am making a lot of HTTP requests, they (requests) start to time out. so I added that every time it encounters a timeout, it is delayed, which prevented it ... is there a way to get all this data on a single request? is there any better way to deal with this problem?
source to share
How many subdomains do you have? Please consider adding these segments in the segment editor and set them to "pre-archived" (I assume you have cron archiving installed).
It is normal that such a request timeout. Piwik handles such queries by default (it is necessary to iterate over all reports with the segment used in the "where" clause).
source to share