gapi-google-analytics-php-interface total number of records varying from time to time - google-api-js-client

I have made call to Google analtics API using https://github.com/erebusnz/gapi-google-analytics-php-interface and number of records i get on each call vary from time to time . Say in first call i get 800 records after some time i get 500 total records. I have not made any changes to parameters.Value each page is showing correct but count of some items are missing.
Am using example.report.php with my key and email .
Thanks
Jithin

Oho , I found the answer after a long time. i was calculating from 2005 Jan 1st.Everything works fine on calculating with reference to date of google analytics implementation on my site

Related

multiple condition inside SUMIF() in google sheets

I created my daily task log sheet which i log my tasks daily and I also provide the time which I start and the time of its completion. it looks like this
You'll notice the tab "total hours per day". on that tab I calculate the total time for the specific date. It looks like this
using this formula: =SUMIF('TASKS (Itemized)'!A3:A501,A8,'TASKS (Itemized)'!I3:I501)
My question is can I still add a condition to the formula that says not to include the time or the row if the column H has a value of "Multitasking"?
I believe you are looking for something like this?
=SUMIFS('TASKS (Itemized)'!I3:I,'TASKS (Itemized)'!A3:A,A8,'TASKS (Itemized)'!H3:H,"<>Multitasking")
Without seeing a sample sheet of everything going on including columns and rows this is the best I can offer.

Power BI visualisation of active calls per time

I'd like to create a Power BI visualisation of telephone log data. Which comes in a .csv as follows:
caller nr, calle nr, call start time, talk start time, call end time, duration
2002, 2001, 09:00:01, 09:00:15, 09:02:23, 00:02:22
2003, 2004, 09:00:20, 09:00:25, 09:01:50, 00:01:30
The visualisation should display the amount of active calls per time. In the given example the chart should display one call from 09:00:01 to 09:02:23 but two calls from 09:00:20 till 09:01:50. However, I couldn't find any option to do so.
However I could create a chart, which shows the amount of started calls per time (minute).
Can anyone give me a hint? Many thanks in advance!
Simon
You need a calendar table with minutes as grain, make the relationship, and then create measures to build visuals with that information.

Different values while extracting from Google analytics core reporting API

When extracting for a single day results are accurate but extracting for a range inclusive of that date gives a different data set:
data for 2017-05-08 gives 300
while
data for 2017-05-08 to 2017-05-12 gives [294,376,500,250]
Please explain why is there a difference in the numbers extracted through these two methods
This was because as the date range increases the google analytics removes the duplicate visits within the range and returns only the unique visits on that day.
This means that multiple visits by the same user within that date range would only be counted as one.

Sorting time stamp values that get constantly updated via google forms

I have a google sheet that gets filled via a google form.
Time stamps are created every time a bar code (work order number) is scanned.
The work order number is in the first column.
The 4 unique time stamp fields below are populated in the 2nd column from the google form.
Setup start
Setup finish
Production start
Production finish
The time stamp is created in the 3rd column.
I am trying to do conditional formatting
where the total setup time and production time are calculated but they are tied to their respective work order number.
time stamp functionality
The difficulty is that the timestamp values all fall into one vertical column.
I don't want a mix up of timestamp values with different work order numbers.
The work order numbers along with the 4 unique time stamp values may be input at various times so the formula can't be order specific.
Is there a way to do this? Thanks!
Below is an example link of the spreadsheet I have:
https://drive.google.com/open?id=1YA86jGq_jMsx-wKe19TnZZyf9F4aW6_kUIbrz8hkLJI
Make a pivot table of the data from the form, then use simple formulas adjacent to the new pivot to get the results you are trying to get. Example Image

How to break down insights by day via Facebook api

I want to get the daily insights data so I try to use the below edge to request record by record (day by day). If there is data for 30 days, I have to request 30 times.
/insights?fields=impressions,social_clicks,website_clicks,ctr&time_range={'since':'2015-01-01','until':'2015-01-01'}
But if I can break down by using the edge such as the below one, I would not have to request many times.
/insights?fields=impressions,social_clicks,website_clicks,ctr&breakdowns=DAY
Do you know how to break down the insights by day?
You can select how to break in days using a parameter, for getting daily info just use the parameter time_increment parameter with value 1.
/insights?fields=impressions,social_clicks,website_clicks,ctr&time_range={'since':'2015-01-01','until':'2015-01-30'}&time_increment=1
Reference:
https://developers.facebook.com/docs/marketing-api/reference/ad-account/insights/

Resources