How to get acquisitions - campaigns data from google analytics api v3? - google-analytics

I've seen similar questions in SO, but please note this is not a duplicate as this is specifically for :
1) API v3
2) Acquisitions -> Campaigns (not Acquisitions -> Adwords -> Campaigns)
I'm using the ruby gem google-api-client

Related

How to obtain UA metrics data from Google Analytics Data API (GA4)

I've faced a comparability problem while migrating from Reporting API V4 to Data API V1 (Beta). Some old (UA) metrics became not available.
Several of them are computable at client side.
For example:
avgSessionDuration(ga:avgSessionDuration) = userEngagementDuration(ga:sessionDuration) / sessions(ga:sessions)
pageViewsPerSession(ga:pageviewsPerSession) = screenPageViews(ga:pageviews) / sessions(ga:sessions)
The question is: How to obtain equivalent data for listed below UA metrics using Data API V1?
ga:uniquePageviews
ga:avgTimeOnPage
Universal analytics and GA4 are two totally different systems your not going to be able to convert a report. You need to make new reports designed for GA4.
GA4 does not have uniquePageviews or avgTimeOnPage
You should check API Dimensions & Metrics to find the current list of dimensions and metrics available with Ga4.
Remember Ga4 is Event based not page view based.
It seems to be available. check this page for GA4 equivalents:
https://developers.google.com/analytics/devguides/reporting/data/v1/migration-api-schema-mapping
Im getting the data succesfully by using:
Dimension: fullPageUrl
Metrics: eventCount, userEngagementDuration

What is the BigQuery schema for Google Shopping Search Query data?

Google Analytics Google Ads Queries :
Refer to the image provided. How do you get Google Ads/Shopping Search Query data into BQ from Google Analytics? I'm using trafficSource.keyword and filtering for "id==" to get SKU level data.
Thank you
Not all Google Ads data will be available in BigQuery after linking Google Analytics with Google Ads. Yes, on the webpage UI in Google Analytics there is a Google Ads section, but using the BigQuery Data Transfer Service to get Google Analytics data into BigQuery will have a limited selection of Google Ads data.
You can see in the docs here what metrics there are under trafficSource.
adwordsClickInfo nested fields:
https://support.google.com/analytics/answer/3437719?hl=en
Maybe, you can pull some of the data you are looking for with trafficSource.keyword for the keyword and trafficSource.medium, but I don't see in the docs anything aligned with Search Query.
If you want to have more data from Google Ads, you will need to set up a separate pipeline in BigQuery using Data Transfers within BigQuery for Google Ads which acts similarly to how you link Google Analytics with BigQuery. Please see the docs below for this.
https://cloud.google.com/bigquery-transfer/docs/adwords-transfer

Why is the number of conversions different between these two Goal Flows in Google Analytics

I'm utilizing Google Analytics for my mobile apps (iOS & Android) and set Goals to track how many users successfully touch down Home page (Intro - Sign up - Welcome - Rate Movies - Home)
So I set these two goals for test:
Both Goals are URL Destination types.
Goal #1. Intro(Required) -> Sign Up -> Welcome(Set as Goal URL)
Goal #2. Intro(Required) -> Sign Up -> Welcome -> Rate Movies -> Homm(Set as Goal URL)
Now it's been a few days and I can check the data but both of them returned same number of Intro views (9905) but different numbers in Sign Up (5772 vs 8328). In same period.
Please advise me why this happened.
The figures inside the various steps of the funnel are not accurate. In the situation you have described, the problem is most probably caused by the "back-filling" of Sign-Up step visits. You may rely on the goal conversion rate, not on the funnel visualization nor goal flow.
If you really want to visualize the funnel, you may have to build it by yourself, extracting data from Google Analytics API.
Articles giving more explanations about how the conversions funnels work:
Goals & Funnels in Google Analytics: Confusion and Workarounds
The Google Analytics Conversion Funnel Survival Guide
steps higher in the funnel are artificially “backfilled” when a lower step has a greater number of pageviews

Importing From Google Analytics into AdWords

When importing from Google Analytics into AdWords is it possible to have Goals in GA with different campaigns trigger a different conversion in AdWords.
i.e. I want:
conversions for Goal 1 in Analytics with Campaign A to trigger Conversion X in Adwords
conversions for Goal 1 in Analytics with Campaign B to trigger Conversion Y in Adwords
Any help would be greatly appreciated.
Thanks
I would imagine creating two properties that would filter on campaigns with seperate goals for each property. Simply naming the goals Campaign #1, #2 etc. should give you what you're looking for, no?

How can I use the google maps api v3 in arc2earth?

I've imported the google maps street layer with arc2earth and produced a new one, and I show it in a web site with the google api v3 and the streets layer generated by me doesn't match the google maps street layer, and that happens because arc2earth uses the maps from the google api v2. And nobody believes me. I've talked with arc2earth and google support, and both say that the maps are the same.
But I have proofs:
for example in this location it is very clear how different they are:
19.369818,-99.261531
(mexico city)
You can check the v2 here:
http://gmaps-samples.googlecode.com/svn/trunk/geocoder/v2-geocoder-tool.html#q%3D19.369818%2C-99.261531 (zoom in please)
and the v3 in the official google maps page:
http://maps.google.com/maps?q=19.368376,-99.263443&hl=en&ll=19.369684,-99.261244&spn=0.00143,0.002411&sll=19.369722,-99.261295&sspn=0.00144,0.002411&vpsrc=6&t=m&z=19
Answer:
The A2E community edition(Trial) uses the v2 maps. All the paid editions uses the v3 maps.

Resources