Querying user segment data through Google Analytics spreadsheet add-on - google-analytics

When accessing GA data through the browser, Google analytics will throw an error if you try to create a user segment on a data range that exceeds 90 days. However, when I do this using Google's own spreadsheet add-on on Google sheets, the data does get generated.
I am trying to query 1 year's of users' data through the spreadsheet add-on. Now I am not sure if this data that was produced is actually measuring what I intended. Does the add-on step over the limitations that were placed on Google Analytics accessed through a browser?

You could use the Query builder : https://ga-dev-tools.appspot.com/query-explorer/

Related

Google Analytics 4 Data upload

Is there a way to upload all of the data from GA3 to GA4? I've tried uploading CSV files downloaded from GA3 although I keep running into record errors.
The underlying data structure of Universal analytics and analytics ga4 is completely different.
UA analytics was based upon pageviews and screen views. While ga4 everything its based on events.
There is no way to covert UA data to GA4 because they are so different.
Beyond that Google analytics is hit based as in a point of time. While you can insert offline data that data would be no more then a few hours old. Inserting data from a website that had been recording data for years would not be possible.
Universal Analytics will be going away
After July 1, 2023, you'll be able to access your previously processed data in your Universal Analytics property for at least six months. We know your data is important to you, and we strongly encourage you to export your historical reports during this time.
The only real option google is giving us is to export it to a csv.

Export Google Analytics UTM measures to spreadsheet

My team is creating several UTM links and we would like to achieve better understanding of our campaigns through a google spreadsheet.
Our spreadsheet lets us prepare easily new UTM links, but we would also like to gather data related to the activity of those UTM links, that we would otherwise have to get through google analytics and selecting the right parameters
Is it possible to add an extra column(s) that would automatically retrieve such information from Google Analytics ? Maybe a script that we can run once in a while, and that would pull the number of clicks GA has registered for every UTM link ?
Online I have found some scripts to assist UTM link generation, but nothing about actually retrieving/exporting the results automatically to a spreadsheet.
The most straightforward way would be to use the Google Analytics Spreadsheets Add-On and filter (or segment) by your campaign (utm) information. You can configure multiple independent reports for different campaigns and set a trigger to have it updated automatically in regular intervals.

Real time data from google analytics

Am I able to push real time data from google analytics to google spreadsheet via google analytics add-on? (I know that it is possible via Google Analytics API)
It is pretty hard to prove a negative but no, you cannot do this from within the interface, you'd need the Google Analytics Realtime API.
I am not convinced that this is really useful. Realtime data is not aggregated, so you'd get a lot of rows really fast (and since a Google spreadsheet holds 2 mio cells at most you'd have to empty or swap the spreadsheet regularly).
Since this is basically raw data you could just as well set up a small apps script like in this gist that writes request data to a spreadsheet, publish this as web app and create a small image pixel within your page that sends data directly to the sheet (but you will not have channel attribution). I expanded a bit on that idea here.

Google Analytics: dashboard with custom calculations between metrics

Is it possible in the dashboard to report a value which is a custom calculation between fields?
I have an event called "banner_impression" and another one called "banner_click"
I would like to calculate which is the percentage of "banner_click" events over "banner_impression" events.
Any way to report such calculated value in a dashboard?
Nope. Sadly calculated metrics are not a feature in any version of Google Analytics. I hear Adobe Analytics has it, but that's an enterprise-level paid solution.
You'll have to export the data out of Google Analytics, open it in Excel, and then divide your clicks by your impressions to include it in any sort of dashboard. Excel plugins are available that can help with this, and they include Analytics Edge, Next Analytics, and the Napkyn Reporting Manger.
There are also dashboarding applications like Klipfolio and Mixpanel that can allow you to suck in data from various sources (incl. Google Analytics) and present your data in a much more appealing way.

Getting MCF Conversions path data from Google Bigquery

I am using Google Bigquery to extract data on conversion paths from Google Analytics (GA).
When I analyze these conversion paths from the exported dataset, the last-click conversions match the Acquisition report in GA, but not to the Multi Channel Funnel (MCF) data. Apparently Bigquery doesn't really export raw data, but transforms it by deleting all last direct clicks. like described here: https://support.google.com/analytics/answer/1319312?hl=en.
Is it possible to get the Bigquery data to correspond to Multi Channel Funnel (MCF) conversion path data? To undo the deletion of last non-direct click and get proper 'raw' user level data?
All of the trafficSource fields in BigQuery Export for Google Analytics use campaign attribution as described in this processing flow, which will overwrite direct traffic with the most recent campaign (if there is one and it is within the specified timeout), as you mentioned.
If you are using Universal Analytics, you can adjust the campaign timeout to be shorter than the 6 month default. For example, if you set the campaign timeout to be one day, any direct visits that come in at least one day after a visit with a campaign will be attributed to direct instead of the previous campaign. This can be done with Classic Analytics as well using _setCampaignCookieTimeout. This technique will affect data collection from the time it is implemented going forward.
This thread is rather dated, so I thought I'd update just in case anyone else comes across this same question.
There is a field that was introduced (both in the Google Analytics interface and the BigQuery export) that allows you to match the numbers in the MCF reports. In BigQuery, look for the field trafficSource.isTrueDirect
BigQuery Export Schema
trafficSource.isTrueDirect
True if the source of the session was Direct (meaning the user typed
the name of your website URL into the browser or came to your site via
a bookmark), This field will also be true if 2 successive but distinct
sessions have exactly the same campaign details. Otherwise NULL.

Resources