I am working on an application that in which I need to integrate google analytics API with PHP. Here's the link for the API documentation Google Analytics Core Reporting API, currently I'm facing an overload issue.
At our application we need to form a graph for selected daterange. For example session count. API has option for parameters like start & end data but in response it only provides average / total of session counts / page load time. But for generating graph we do need data of each day in the given date range. e.g. 1 jan to 30th jan of 2015, for this case we have to send 30 requests for individual day & get the data for the graph with this method. Is there any possible way in which we can reduce request count or get data in date format?
We are collecting many metrics like Average page load time, Organic Sessions etc. which is making it 180-210 request on page load to google API itself & sometimes it throws an error that too much utilization of resources from google.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/24Dr20n
via IFTTT
Aucun commentaire:
Enregistrer un commentaire