AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
5.2K members online now
5.2K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Google analytics CoreReporting Api giving wrong data

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

 Hi Guys,

 

I'm trying to fetch transaction , sessions , newUsers and cost for all the campaigns from analytics api. But except 'cost' all the value i'm getting are wrong.

 

These are the dimensions and metrics used by me:

'dimensions' => 'ga:adwordsCustomerID,ga:campaign,ga:date',
'metrics' => 'ga:transactions,ga:adCost,ga:costPerTransaction,ga:transactionRevenue,ga:newUsers,ga:sessions,ga:itemQuantity',

 

Kindly help me out.

 

 

Regards,

Ajay T

Re: Google analytics CoreReporting Api giving wrong data

A T
Participant ✭ ✭ ✭
# 2
A T
Participant ✭ ✭ ✭

Re: Google analytics CoreReporting Api giving wrong data

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Thanks for the help. I have the premium account for analytics. The data at ga-dev-tools is also different compared to the analytics dashboard and the data which i have received through the API.

I'm using the same dimensions and metrics name as given above, but unable to fetch the correct value except cost.
Please help me out.


Regards,
Ajay T

Re: Google analytics CoreReporting Api giving wrong data

A T
Participant ✭ ✭ ✭
# 4
A T
Participant ✭ ✭ ✭
Can you explain what you mean by wrong?
Also screenshots would help.

Re: Google analytics CoreReporting Api giving wrong data

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Hi,

 

Please find below data received from api:

date : 01-01-2016
campaign name : abc
transaction : 1184
Cost : 234.6
costperTransaction : 0.19814189189189188
transactionRevenue : 162870.229803
newUser : 5384
session : 22645
adwordsCustomerId : 3951447103

 

Data on the dashboard :

date : 01-01-2016
campaign name : abc
transaction : 1464
Cost : 234.6
costperTransaction : 0.19814189189189188
transactionRevenue : 215863.85
session : 21508

 

Only cost value is matching, rest all the data doesn't match.

This is the url passed while using API: 

https://www.googleapis.com/analytics/v3/data/ga?ids=ga:12345678&start-date=2015-12-31&end-date=2016-...

 

Thanks in advance.

 

Regards,

Ajay T.

Re: Google analytics CoreReporting Api giving wrong data

[ Edited ]
Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭

Hi Guys,

I have understand the issue:

1. If i'm fetching campaign name, transaction, transactionRevenue, cost, newUser, session and adwordsCustomerId. Data is wrong
2. If I remove adwordsCustomerId and fetch all the other parameters then the data is proper.

For now i have excluded the adwordsCustomerId from my query. But i need to the understand the reason behind the same.


Thanks in advance.

Regards,
Ajay T