Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BigQuery and Google analytics compatibility issues

I’d like to create conversion funnels with events. Most of the events I created are listed under “Select_content”. However, Google Analytics does not allow me to choose any of the specific events under “Select_content”, only the whole category of “Select_content”. Is there any way that I can create a conversion funnel using the specific events under “Select_content”?

Is there any way to break out the CONTACT_DETAIL event into its specific events (e.g. CALL, MESSAGE, TAG, DATE, etc.)?

This is how I send Google Analytics event from iOS app

Analytics.logEvent(AnalyticsEventSelectContent, parameters: [
   AnalyticsParameterItemID: "id-\(id)" as NSObject,
   AnalyticsParameterItemName: itemName as NSObject,
   AnalyticsParameterContentType: contentType as NSObject
])

What's wrong with it? Why is BigQuery not able to go in to deeper level from already uploaded Google Analytics data?

like image 913
Akshit Zaveri Avatar asked May 10 '18 18:05

Akshit Zaveri


People also ask

Can I connect Google Analytics to BigQuery?

Click Admin, and navigate to the Analytics 360 property that contains the view you want to link. In the PROPERTY column, click All Products, then click Link BigQuery. Enter your BigQuery project number or ID. (Learn more about how to locate your project number and ID.)

Is BigQuery part of Google Analytics?

Use BigQuery to quickly query all of your Analytics data. This feature is only available in Analytics 360, part of Google Marketing Platform. Learn more about Google Marketing Platform. BigQuery is a cloud data warehouse that lets you run super-fast queries of large datasets.

What is the difference between Ga standard and GA 360 connection to BigQuery?

The standard version of Google Analytics (GA) is free, and the premium version Google Analytics 360 (GA360) is the paid version of Google Analytics with a tier-based pricing. Both versions can be used for tracking in all Visiolink applications.


1 Answers

Depending on how you have setup your events you access them via the EventCategory, EventAction or EventLabel and all of these get passed into BigQuery assuming you have connected your Google Analytics data import.

enter image description here

If, for example, the events you are looking for have the Event Category of Select_content then you can start by filtering just these events with a WHERE clause such as: WHERE hits.eventInfo.eventCategory = "Select_content"

Note that in order to get to the .hits level in the nested data you will need to UNNEST hits, for example like this:

SELECT COUNT(hits.eventinfo.eventlabel) AS my_events, 
FROM `PROJECT.DATASET.ga_sessions_20*` AS t
  CROSS JOIN UNNEST(hits) AS hits
WHERE parse_date('%y%m%d', _table_suffix) between 
DATE_sub(current_date(), interval 7 day) and
DATE_sub(current_date(), interval 1 day)
AND hits.eventInfo.eventCategory = "Ecommerce"

You could also add to the WHERE clause to filter into a specific Event Action, if you don't want to see everything that's under the Event Category, for example:

WHERE hits.eventInfo.eventCategory = "Ecommerce"
AND hits.eventInfo.eventAction = "Purchase"

Once you have managed to isolate the correct events for your funnel it should be pretty straightforward to assemble a funnel from the counts.

Hope that helps!

like image 62
Ben P Avatar answered Oct 01 '22 00:10

Ben P