Hi Developers,
I wrote following in Adwords Scripts platform by accessing Analytics API to
extract GA Sessions based on Segment of 'Page matches regex'. It gives wrong
result when executed. If I use filter ga:landingPagePath, then it gives correct
results. It means that Analytics API is unable to apply filter ga:pagePath
correctly. Kindly get it corrected.
function main() {
//runGaReport();
var tests = Analytics.Data.Ga.get('ga:50435929', '2015-06-28', '2015-06-28',
'ga:sessions', { 'filters': 'ga:pagePath=~^/bus-booking|/bus/',
'samplingLevel':'HIGHER_PRECISION'});
Logger.log(tests.rows);
}
It returns result:
Time Log
18:26:26.146 [[917, 2375, 10452]]
But the actual result (by using GA website) is [[2572,2375,26821]].
So,There is a huge difference in sessions & pageviews but no. of users is
correct.
Kindly help me to correct this.
Original issue reported on code.google.com by saurabh....@gmail.com on 7 Jul 2015 at 4:56
Original issue reported on code.google.com by
saurabh....@gmail.com
on 7 Jul 2015 at 4:56Attachments: