Google Analytics didnt export old data to BigQuery - google-analytics

I have an app that has been published since 2021 and Google Analytics already generated a lot of reports. I wanted to export all the data from the reports to BigQuery and I setup the link using their tutorial: https://support.google.com/analytics/answer/9358801?hl=en.
But all the data present in BigQuery is the data from the day after I setup the link between them.
Is there some way to export the previous data to BigQuery?

No, it is not possible to get historical data from GA4 to BigQuery. It starts exporting since you have setup connection.
I recommend to setup GA4 - BigQuery link at the same time you create GA4 property.

This worked for me:
Go to Google analytics, download your historical data as CSV.
Open your CSV file with Google Sheets
In Google Sheets got to extensions --> Add-ons --> search for BigQuery Uploader for sheets
Once you have the add-on, click on the add-on under extensions, then "Run manual upload now"
Your historical data should now be in BigQuery.

Related

how to hide conversions and revenue sections in Google Analytics Reports

I am in a need of sharing a Google analytics access of my website to a developer and want to hide revenue and conversions sections in Google Analytics account/property/view.
any guidance how is it possible to do that?
if you want to share access to the report in Google analytics web application then the simple answer is you can't, access to a Google analytics account is all or nothing
you could grab the data for them through the API using a service account and design your own reports display of the data
It is not possible to give visibility to only some sections or metrics of a view. You can use API (like said to DalmTo) or more simple to provide data with an external dashboard, for example with Google Data Studio, which fetches data from your Google Analytics and shows only the ones you want to share.

Dynamic Google Analytics segments in Google Data Studio

We want to embed a Google Data Studio dashboard in the admin side of our application, which
is installed on our customers' websites.
Customers can login to the admin and see the data linked to their account, such as analytics.
The Google Data Studio dashboard includes connectors to our database and to Google Analytics.
Data from Google Analytics must be filtered per customer, with a segment that includes data
from their website only.
How to dynamically add a Google Analytics segment to our dashboard ?
I found that it is possible to pass parameters in the embed link, but how to use
these parameters to filter Google Analytics data dynamically ?
Thank you.
It doesn't seem possible to do that unfortunately. We ended up creating Data Studio sheets manually and adding the right parameters for major customers.
We are moving to a custom data dashboard linked to the Google Analytics API (not using Data Studio).

How to export all raw data from Google Analytics?

Google is sunsetting Google Analytics support from February, 2020.
After our service is fully turned down in February 2020, these legacy properties will no longer be accessible via the Google Analytics UI or API, and the associated data will be deleted from Google Analytics servers. In advance of this turndown, we recommend that you export the data so you can retrieve it later.
In their learn more about exporting section they said,
To export a report:
Open the report you'd like to export. Analytics exports the report as it is currently displayed on your screen, so make sure that you've applied your desired date range and report settings.
But I see, in the GA dashboard report section, when I create reports, I am to add categories/filters etc. which I assume does not eventually reflect full analytics data in the report.
How can I export full raw data from Google Analytics so that I can import in Firebase when feature is available in future? I see options to export reports from GA dashboard but did not find any way to export full data.
Is there any other recommended way to avoid data loss for GA?

How do we download the values from a Custom Funnel using API / Big Query

We have built a "closed" custom funnel using Google Analytics 360 which includes Users who have seen a product category page and then seen a Basket Page, and then concluded with an Order Confirmation Page.
Is it possible to download the values from this report via the API/ big query and generate a spreadsheet to use for internal reporting?
Once you have your table in BigQuery, you can run a query and save the result to Google Sheets [1]. There is also a connector exists for Excel [2]. This third-party offers an Add-on to connect BigQuery with Google Sheets but I haven't tried [3].

Embed google analytics benchmarking report on 3rd party website

I am currently busy with embeddig a Google Analytics dashboard on a third-party website. I've already made a server-side authorization work and I'm able to display some google analytics data.
Now I'm wondering if it's possible to query google analytics benchmark data and show it on third-party website.
It doesn't look like Google Analytics benchmark data is available through the API.
Check this query explorer for the possible query parameters through the GA API.
As a workaround, you could either manually pull a csv report from GA, or write an automated script that can do this, depending on what you need.

Resources