Tjoosten / gapi-google-analytics-php-interface

Automatically exported from code.google.com/p/gapi-google-analytics-php-interface
0 stars 0 forks source link

GAPI results do not match results in Google Analytics #100

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Go to Google Analytics. Click 'site content'. Then go to the advanced tab 
and include only results that have the hostname with the value of a 
'myhostname' or whatever your domain is. Limit the dates from 1/1/13 to 8/31/13.

2. In my script I have the following code:

define('ga_email','xxxxxxxxx@gmail.com');
define('ga_password','xxxxxxxxx');
define('ga_profile_id','xxxxxxxxx');
require 'gapi.class.php';

$ga->requestReportData('xxxxxxx',array('hostname'),array('pageviews'),null,'host
name=@myhostname','2013-01-01','2013-08-31',null,null,null);

<?php echo $ga->getPageviews() ?>

3.

What is the expected output? What do you see instead?

The program outputted 8,069,048
The value that Google Analytics showed was 9,080,708

Why are they not the same?

What version of the product are you using? On what operating system?

gapi 1.3
mac  OS X 10.8.4 

Please provide any additional information below.

Original issue reported on code.google.com by yish...@gmail.com on 12 Sep 2013 at 5:20

GoogleCodeExporter commented 9 years ago
same problem...

Original comment by luky...@gmail.com on 9 Oct 2013 at 8:25