New Google Analytics property not capturing traffic - google-analytics

Hell,
We have a production prperty for google analytics and out IOS and Android Apps are recording the events and data.
I am trying to create a test property in order to use it in the test environment, how ever that does not seem to work. here is what I have done:
1. Created a new prperty under the production account
2. Created Streams for Ios, Android and Web
3. Cannot find the Tracking Id for the new property. Sme places I have read it is in the format
UA-AccountId-PrpertySlnumnber. I have tried that but not result.
4. Some places suggested to use the measurementid (G-xxxxxxxx) available in the web Stream and I used that but still it wont work.
However if I use PROD tracking Id in the code, it perfectly works. Am I missing anything? Any guidance will really help.

(Added as answer because low reputation doesn't allow comment)
Can you clarify if this is what is occurring?
Production property with production tracking ID shows data
Test property with test measurementID does not show data
Test property with test tracking ID (tracking ID not found)
Or did you mean Test property with Production tracking ID shows data?
Based on this, it sounds like your properties are not replicates. Are they both the same type of property? I would suggest going through the instructions on Google with both properties side-by-side.
See further info below:
https://www.blog.google/products/marketingplatform/analytics/new-way-unify-app-and-website-measurement-google-analytics/
https://support.google.com/analytics/answer/7372977
https://support.google.com/analytics/answer/9304153
https://support.google.com/analytics/answer/9303323

A couple things to consider.
Have you setup the firebase console correctly?
Are the data being sent out correctly? You can check this in your network calls.
Is there a lot of data being tracked already in your current environment (Staging or dev)? Google analytics perform sampling on the data when there's too much data coming in. I think it's 1 million data points per day. It does 1% sampling on our production app.

I think my mistake was I was trying to create a new google analytics for firebase property but was not connecting it to the firebase.
The reason behind is I was trying to accomodate it with the older Google Analytics SDK implementation and I was not finding any documentation which said no it is mot possible.
Now, I created properties connected them through google firebase projects and enabled analytics with them. In my xamarin app I used Xamarin.Firebase packaged to get it working.

Related

is there a way to merge properties in Google Analytics?

I wonder if someone has been in similar situation:
I currently have 2 Google Analytics properties.
Native AOS/iOS app that is integrated with Firebase
Website that is integrated with tag manager
As the website was developed later than the app, we ended up creating separate properties on GA, however, now the website will only be available to traffic from inside the app (the website will be shown in a WebView), so it makes sense to merge the all data should be attributed to the users from the App property.
On the website configuration on GTM, I created a base pixel that fires on all pages with the measurement ID of the website. I noticed that there is no measurement id on the app settings peoperty, but a firebase id, so I am not sure how to proceed.
Is the only solution to this case is to integrate the firebase events to the website?
No, you're mixing up data streams with properties. Also, I assume we're talking here about GA4 and not GAUA since you used the term measurement id rather than property id.
Go yo your GA4 property where the firebase traffic is. Go to Admin. Go to the Data Streams under the Property section of the admin panel. You should see there your Firebase streams. Make a new one, for web. Copy Web's measurement id, paste it in GTM's config tag. Good, publish. Now you have your webview tracking flowing into the same property your firebase is flowing to.
There's one caveat to watch out for. The app may not pass your client id and session id into the webview. You may need to ask the devs to pass those in query params or cookies and then remap them properly with GTM. Just to make sure your data is not only in one property, but also makes sense session-wise and user-wise.
As for the old web data, it shouldn't be important. If it's still important to merge old web data with the app data, well, you can't merge it in GA. You will have to merge it down the ETL pipe somewhere. BQ would be a fitting place to merge, but it's up to whoever does the ETL.

GA4 client id issue

We are trying to migrate from Universal Analytics to GA4. The issue we are having is that GA4 requires a client_id field which we cannot get in a desktop application (C++). Is it possible to get client_id without a browser? and without being an IOS or Android app?
Just generate a unique id for each user, that's it. That's exactly what GA does on web. Same applies for GUA. I wonder how you were tracking users without setting client id for UA. Were you tracking them?
Another thing is that despite all the fuss around GA4, it is an unfinished product. Even though Google recommends it, the professionals who actually work with GA's data recommend to either not use it and give it another year or two or implement it very shallowly in parallel with existing tracking just to have some semblance of historical data in it when it's time to switch.
Finally, if you're tracking a desktop app, you likely use the measurement protocol rather directly, so you mind find this useful: https://firebase.google.com/codelabs/firebase_mp#2

Can I switch my Google Analytics property from GA4 to UA?

For some reason PowerBI does not accept GA4 as a connection, so my data is stuck in GA4.
PowerBI does support Universal Analytics (UA), but I cannot find a way to convert my GA property.
Is there a way to do this or should I start over again and create a new property as UA?
PowerBI currently doesn't support GA4 as a destination because the underlying api is not product ready yet. See the response in the microsoft power BI community here: https://community.powerbi.com/t5/Desktop/Power-BI-Google-Analytics/td-p/1679530
For information about the api's and their current state:
This is a link to the api documentation the plugin is using (for universal analytics): https://developers.google.com/analytics/devguides/reporting/core/v4
This is a link to the api documentation of GA4 (which is still in beta): https://developers.google.com/analytics/devguides/reporting/data/v1
Regarding a solution for your issue:
In GA4 is it possible to export data to big query, which can be processed there and imported to PowerBI: https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-connect-bigquery
The export only works from the moment you enable it, so it is not possible to access the data this way before the enablement.
Second option is using data studio to connect to your GA4 data to be able to access the data you have measured before.
First off as everyone says you cant change the type of your Google analytics account if it was created as UA then its UA if it was created as GA4 then its GA4. There is also no way to exxport data.
Now lets look at the underlying cause of your problem Google analytics connector in Power BI Desktop rely on the Google Analytics Core Reporting API this API is used to extract data from Google Analytics UA accounts. There is a very big difference between the underlying data structure of a UA account and a GA4 account they are not completable in any way shape or form.
Thats why the Google analytics team is currently developing the Google analytics data api This api has the ability to connect to Google analytics GA4 accounts and extract data. At the time this post was created Power BI Google Analytics The Google analytics data api had just been released and was still in alpha test phase as you can see from the change log this API is still under development. I haven't checked but it looks like it may even be out of beta now. (TBH I am not really sure of the exact date it was released publicly as I have been in the alpha test group for a long time.)
However that being said a lot of the client libraries used by this api are still under development as well Google .Net Client library for Google Analytics Data API for example is still in beta. At the time that post was written i am almost 100% sure the client library had not been released.
This means that any power bi connector is probably not going to be released until both the API and the client library are considered stable. I know the team is working hard on the API and I Haven't seen any breaking changes in a very long time.
So to the user who added a bounty to this looking for an updated answer.
IMO I don't think you have long to wait before everything is stable enough for applications like the Power BI to start appearing that support GA4. That is assuming that someone creates one.
You can't covert GA4 to UA (or UA to GA4).
In your case you can create a new UA Property and start to track in it:

Firebase Bigquery integration and Google Analytics part on it

So I will try to explain myself the best I can, and I would really appreciate any help!
May main Goal here is to export FireBase data to a DataStudio. I know how easy this is, just link FireBase to BigQuery and create a DataStudio with this data source. There's even already an awesome template for this.
But is not that simple, I work at an agency, this is a huge corporate client and their internal people work is a mess.
The problem here is: I can get "property" access to Firebase, and I have linked my Bigquery account to this project, but what I can't see is the whole app information in Bigquery.
What I see is the data from "crashalytics", "messaging", "performance" and predictions.
But can't seem to find the "normal info" off the app, the events, conversions, audiences, etc...
This is where I can't understand some things that I would like you to help me with, I have some theories.
In the configuration of bigquery integration on firebase I have every switch marked as "On" but one, the analytics one.
enter image description here
Now here is where all my questions come:
- ¿Do I need this switch to be on so I can visualize, for example Events or users information on Bigquery?
If so, what is the realtion between Firebase and Google Analytics?:
- ¿Is it necesary to have a Google Analytics account integrated with the Firebase project in order for bigquery to extract the data and show it?
- ¿Can I extract directly through firebase the data without Google analytics?
And an extra one: If I remove the Google Analytics account from my Firebase project, and add a new one, ¿Would the new Google Analytics also have the data so I can extract it with Bigquery and build my panel?
The biggest problem here is that this Firebase account was created long ago, and the client haves no idea what Google Analytics account is Linked to the Firebase project, they know nobody with acces to it, and they say "I'ts an old analytics, we only need Firebase information to show on datastudio" but I'm starting to feel this is not possible without this Google Analytics acces.
Pleaaase some help with this.
Thank you very much in advance.
I solved it, if anybody comes to this problem, the problem was I needed permision to the analytics web + app created from firebase.

Create a demo account that's usable with the Analytics Reporting API? [Google Analytics]

I need to test some things with a Google Analytics View, but the default demo account that Google offers does not allow user to use the Analytics Reporting API :
You cannot use the demo account with the Analytics Reporting API. Attempts to do so result in a permissions error: (403) insufficientPermissions.
Source
I just need to replicate a view with different data already.
Thanks for helping.
You cannot replicate views with data. A view will always start empty.
However you can simply register a Google Analytics account and send lots of bogus data (either by setting up a web page with tracking code and call it repeatedly, or set a cron job to fire call via the measurement protocol) (this will happen in realtime, so you need to wait a few days before you have enough useable data. There is not way to bulk-create hits for a longer timeframe).
If you just want to test the API it probably matter that much what data you use, so a mock account should work just fine.

Resources