Real time data from google analytics - 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.

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.

Combine data from Firebase and Google analytics into 1 view

I have a website, iOS and Android apps. For the website I use Google Analytics and for the apps I use Firebase. Currently I have to switch between Analytics and Firebase but I was wondering if there was a way to create a combined view.
To start with, I would like something simple like the total number of active users at the moment across all 3 platforms. Is this possible at all?
Longer term it would be great if sales data between the 3 could also be combined.
Is there a way to create something like a Google sheet that pulls this data in real time?
I too wish for a combined view. My research suggests we cobble together our own by exporting event data from GA and Firebase Analytics into Google BigQuery and construct our own views in there. But then you don’t get the nice dashboards and other data that they infer, just table data on the events tracked.

enabling hourly data in google analytics

I have two view/profiles linked to my google analytics account. I want to fetch the hourly data for the current day, ie
start date:today
end date: today
with a few filters and dimensions.
Now I am getting the response for one view that means it is possible in google analytics, however for the other view its showing all the values as 0- this applies both to the gui and the api.
Can anyone suggest me how to enable it for the other view as well?
You cannot. Google Analytics needs some processing time. It might be that some data appears immediately, especially on small accounts, but it's not guaranteed and not a thing you can "enable" or count on.
Updated: Okay, that was a dumb answer. Still, there is a processing latency event in GA Premium. It is possible to get realtime data, but that's a different API with limited data (the core reporting API might return data, but no guarantees for that).
But I admit, since your problem is that you do not get data for the whole day yor have a different problem. But with a premium account you should be able to contact your account manager/technical support.

Querying user segment data through Google Analytics spreadsheet add-on

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/

Can Google Analytics pull historical data?

Trying to dig in to GA here. I have a site built on a wiki platform (confluence) that has not had any GA setup prior. Trying to see if I could do something crafty with the GAPI to pull historical data as the site has been up for some ~3 years.
Is there any way to pull data if GA was not set up on any of the pages, or am I SOL? Took a gander at https://developers.google.com/analytics/devguides/reporting/core/v3/reference but didn't see a clear answer
I have only used Google Analytics to track data as it comes in. If you have the historical data stored somewhere, you could probably write a script to iterate over the standard ga script and send off trackpageviews with the data you want, but unless you or someone else actually have the usage data tracked somewhere, you won't be able to materialize it out of thin air.

Resources