Can Google Analytics pull historical data? - google-analytics

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.

Related

Explore Free Form report in Google Analytics

I am trying to generate a report using Google Analytics Explore tab using Free Form technique. Few weeks ago I could use Message name, stream name and time to see all the notification name, platform and total no of click. I exported the same to excel file.
but today when I tried to generate the same I couldn't find "Message Name" dimension. Is this field removed from pre defined/custom dimensions from GA? or am I doing something wrong?
My main purpose is to get all list of notifications sent via Firebase.
Any help will be deeply appreciated.
Given that you excluded the obvious issues like using the too-fresh data, the proper way to debug it is to export the data into a sample BQ table, then conduct exactly the same analysis that you're trying to conduct in GA4's explorer. From there, if your issue is with explorer's filters, you will quickly see it.
If, however, you're able to see your event properties in BQ, but not able to get the explorer to display them... Well, Google likely saved quite a lot of money on GA4. UA was pretty expensive. GA4 now introduces all these amazing features like data retention limits, properties' values cardinality bugs, odd inconsistencies between explore's reports and default reports and so on.
For now, the best way to really access your data minus all the artificial limitations of GA4 is to ETL your data from there either through the reporting API or exporting it to BQ.

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.

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.

Is there a good alternative to Google Analytics that does not sample?

I want to pay my writers based on unique page views. Right now I am getting my data from Google Analytics. The frustrating thing is that the numbers given by Google Analytics are from sampling.
So is there a Analytics Service to get unique page views that does not sample its data?
Or as anyone try doing something similar to what I am trying to accomplish, what would you recommend I do?
I use Unsampler
Extract unsampled data from a Google Analytics Standard profile. Avoid sampling and get at your real data.
Try to use PIWIK - it is server side analytics system, but you will must save all data on your server - you need separate mysql data base.

Google Analytics - Custom Alerts for Real-Time data

I'm looking to create a custom alert to notify me whenever X number of people are on the site at once. This data is already available using the Real-Time reports page. However, this does not seem possible via the Intelligence Events section. From there, I'm only able to create custom alerts based off Day, Week, or Month data. Has anybody found another area of Google Analytics that would make this type of report possible?
Google Analytics have just launched a Beta of their Real Time API which might let you do this: http://techcrunch.com/2013/08/01/google-launches-real-time-api-for-analytics-in-invite-only-beta/
You can use the real-time API for that. It's been possible for quite a few years now. You can find all the documentation for that right here. It's typical OAuth + JSON API.
You can also use a paid service. I built one, Metrics Watch. It really depends of your goal and how critical this is to your business/job. If it's critical, I would highly encourage you to look for a paid service, no matter which one.
Hope that helps!

Resources