I should get the Tracking Id from Google Analytics to use it in my project, but none of the support pages can really cover my problem.
First of all i cannot see the Tracking information menu on my dashboard under the Property column - as some setup guide mention it - , I only see the property settings, which from i can navigate to the Firebase console, and the user settings
After this I find another support page to get the Tracking Id from the Firebase console (https://support.google.com/analytics/answer/2587086?hl=en) , but this also confuses me. It says "Under the Data Sharing Settings section, select the settings you want, and click the Get Tracking ID "
In the firebase console settings board I find a Data privacy menu with az Analytics settings submenu, but still no Tracking ID option.
As I know I need this ID to integrate the Analytics, or is there any workaround for this?
I found a workaround
Open the https://analytics.google.com page, on the top of the page there is a drop-down.
If you click on that dropdown you can see your Analytics accounts in the first column.
The number under your account name is actually your Tracking base-ID.
If you have one project for that account, then your Tracking ID could be UA-123456789-1
One more example
Delete your project (place it to the bin)
Restore it
Check the e-mails you got, there you will find the property which you deleted, and beside the project name there is the Tracking ID
Related
I have to integrate Google Analytics in my Android app.
Completed all the code for it But, Having one issue.
The Issue is taking Tracking ID from my google analytics account.
According to the Document :
==> To find the Google Analytics ID (Tracking Id):
Sign in to your Analytics account.
Click Admin.
Select an account from the menu in the ACCOUNT column.
Select a property from the menu in the PROPERTY column.
Under PROPERTY, click Tracking Info > Tracking Code. Your Google Analytics ID is displayed at the top of the page.
But, I can't find Tracking Info Option or any Tracking Code there according to the step number : 5.
From where can I get Tracking Id which look like this one : (UA-41888835-6) ?
NOTE : I can find Property Id there.
While creating property click on advanced option and enable "Create a Universal Analytics property". This will
Then enable "Create a Universal Analytics property"
then lick next and complete the property creation, now you will have two different properties created. Now choose the universal property where you will find the tracking info. GA4 will not have tracking info.
There are 2 ways to get the Tracking ID in Google Analytics:
If you are using web properties, then Tracking ID is in Admin / Property / Tracking Info / Tracking Code, just as you noted in your question.
If you are using App + Web properties, things get a little bit more complicated. For Android and iOS apps Data Streams, there is no tracking ID as to have GA tracking, you need to add Firebase in your app and link your GA account with Firebase.
However if you are using a web Data Stream, you can get the Tracking ID (although it is called Measurement ID) from Admin / Property / Data Stream / Web.
You may read more details on this article https://analyticshelp.io/blog/google-analytics-property-tracking-id/
Click on setting on lower left -> Click on admin -> select "data streams" under property -> Expand the web tab -> scroll down and click on google site tag
This will definitely solve your problem :)
Since creating the video, Google has changed the default version of Google Analytics from Universal analytics to Google Analytics 4. However, you can still create a universal analytics property. To create an Universal analytics property, click on the "Show advanced options" link on the first page of the create property setup wizard, and then select the toggle to "Create a Universal analytics property". This will give you the tracking ID I mention in the video.
Credits goes to Guiding Digital youtube channel https://youtu.be/__PctBcNZ-c
For the Solution,
I have integrated Firebase from my Android Studio and then you can integrate your firebase project in Google Analytics. So the solution is implementing Google Analytics with Firebase.
From my Google Play console I linked a project. Then I created a service account. Still, when refreshing the console, it still says "There are no service accounts associated with your project."
Waited over 24 hours already. The purpose of all that is receipts validation.
Picture 1: a linked project:
Picture 2: service-account created:
I had the same problem, I fixed it this way:
When you create a service account in step 2, you need to select a role to grant this service account some permissions, although it shows the step is optional, but for some cases, it's not. If you skip this step, the newly created service account will not show up at the Google Play Console API access page, and you will get this error message, The current user has insufficient permissions to perform the requested operation when you run your code.
You much enable "Google Play Android Developer API" (one of Google Api & services) for your application via a credential!
Google supplies many API for developers can call them from their app. A credential same as a permit (3 types of credentials : API key (such as youtube), OAuth, Service Account)
If you never enable one API, it never shown on API Access page!
In my case:
Even if you have created a service account,
When you have already deleted the service account with the same name,
It appears to have been deleted from the IAM tab of Google Cloud Platform.
So it is assumed that it is not visible in the play console.
TODO:
Create a service account with a different name (I gave the owner permission in step2 when creating, Like Q Locker's answer.).
After creation, it was immediately exposed in the play console.
I faced the same issue because I selected a wrong project instead of the project for which the service account to be created. Please double check the project name in the drop-down at top of the page (after going to the link of Google Cloud Platform). By default the right project to be selected automatically. But if no project is selected beforehand and you are asked to select a project, then select the right project carefully. Otherwise the service account won't show up after completing the whole process.
Another thing to mention, although the project is supposed to be selected automatically, initially it didn't happen and I was given the available projects to select from. The project may appear in the recent projects, otherwise click the SELECT PROJECT link and find yourself.
Moreover when I additionally logged out and removed all the other Google accounts from the browser except the account which is used in Google Play Console. That time I was redirected to service account creation page with the correct project selected beforehand.
Make sure the project name on screen 1 and screen 2 are the same. In my case project name were different.
Screen 1: Main API Access page on Google Console
Screen 2: Google Cloud Platform page
I have a few apps under my personal firebase account for testing, but now need to transfer an app to a client's account for billing purposes. Is this possible?
Thanks!
I recently shifted ownership of one of my projects to another account. All you have to do is:
Go to your Firebase console, and select the project you want to shift.
Select the cog icon besides the project name on top right.
Select Permissions from the flyout.
Select Advanced permission settings hyperlink.
You've reached the IAM & Admin page of Firebase.
Click on +Add button on top.
Enter the email ID of the account that you want to transfer the project to.
In the dropdown, Select a role > Project > Owner. Click add
You will receive a confirmation email. Click the link in the email to accept the invitation.
Accept the invitation, and go to IAM & Admin page of the transferred project.
Use remove button to delete the previous user
#SergeyKopanev
Transfer the billing
After deleting the first user in the Firebase Console, login to your Google Cloud Platform console with your new user.
Go to Billing > Account Management
Click on the three dots next to the project ID you just transferred, and select Change billing.
Confirm by clicking on Set account and you are done !
Note that this is an old answer and there might be more up to date solutions below.
This is a reply received after emailing to firebase-support#google.com, which is the official firebase support email after gogle acquired firebase in late 2014.
From: firebase-support#google.com
In order to transfer ownership of a Firebase instance, we need you to
do two things: add the new owner as a collaborator; then, fill in the
form below and email it to us as written verification. This must be
sent from the email address which owns the Firebase instance.
-----------------
REQUEST TO TRANSFER OWNERSHIP
I authorize the Firebase team to make **<new owner’s email>** the owner of https://**<firebase instance>**.firebaseio.com effective immediately. I have added **<new owner’s email>** as a collaborator to verify the email address is correct and to certify that I am the current owner. I understand that I am effectively granting **<new owner’s email>** full read and write access to all stored data for this instance.
-----------------
It is more simple now.
Click gear icon beside Project Overview
Click on Users and Permissions
Click on Add Member
Type the email address and choose the role as Owner
Click on Add Member
and that's it you are done. An invitation will be sent to the email id. They just need to accept.
follow this steps :
- select you project
- from left side menu select
(Users and Permissions) from settings icon
Click on +Add button on top.
Enter the email ID of the acc to transfer the project to.
In the dropdown, Select a role > Project > Owner. Click add
Check mail in the email added above.
Accept the invite, and go to IAM & Admin page of the transferred project.
Use remove button to delete the previous user
For projects on the new Firebase Console (at https://console.firebase.google.com), this is now a self-service process. See the answer to this question: How to add collaborators to a Firebase app? for a step-by-step guide.
Here from my account just add a different email as owner role
I sent an email to the support email address and a bot replied:
---------- Forwarded message ---------
From: <support#firebase.com>
To: <REDACTED>
Transfer Ownership of Firebase Account
Hey there,
In order to more efficiently process your issue, we now only accept
new support requests through our support portal at
https://firebase.google.com/support/.
Please submit your inquiry there. Thanks in advance!
Cheers, Firebase Support
To make my transfer request I created a ticket under Account Services https://firebase.google.com/support/contact/account-services/
If FirebaseDatabase.instance.reference() is giving you the reference from the old database already deleted try this:
Change the name of your "package_name": "com.old.appname" on all occurrences to be different from the old one.
Right-click on your project folder
click on Find in folder option
search com.old.appname and change all occurrences to com.new.appname
Looking to setup GA tracking for my app (both, Android & iOS), the documentation led me to:
https://developers.google.com/mobile/add
Now after adding GA account added
I need to change the GA account to another existing one.
I don't see any provision either here, or in the dev console.
Do help point me to the right place where this can be changed.
Work around for now:
Remove yourself, from the GA acccount (Of course make sure someone can add you back)
Reload the page, the account selection dropdown is now available
As an aside, within the Google Dev Console,
GDC > My App > Credentials
an iOS and Android key is auto added, on account selection.
I have two Google Analytics accounts A and B, each with their own properties which I am attempting to generate configuration files for (more specifically, google-services.json files) in order to use Google Analytics with my Android app. I'm using the Enable Google Services for your app wizard.
When you reach the Choose and configure services step, it should allow you to choose both a Google Analytics account and an Analytics Property from their associated selection boxes every time you run this wizard. The problem is that the selection box for choosing a Google Analytics Account only appears on the first run of this wizard, and afterwards becomes a pre-filled field that cannot be modified.
This means that if I generate a configuration file for a Property using Account A, I cannot generate another configuration file for a Property using Account B since the wizard pre-fills a non-modifiable text box with Account A, and only Account A's Properties appear in the next selection box.
How can I generate a google-services.json configuration file for a Property under a Google Analytics Account I cannot switch to?
I have admin access to both of these accounts, so this is not an issue.
The configuration file is necessary for Google Analytics to work once the app is released to the public (as described here).
Similar unsolved questions have been asked here for Android and here for iOS (both platforms use the same wizard to enable the Google Analytics service).
Managed to figure out a very simple workaround to solve my own question: remove yourself from the account you're stuck on, so the wizard is then forced to let you choose another account.
To achieve this:
Log into Google Analytics and choose the Admin tab.
In the ACCOUNT column, from the drop-down box, choose the account you were bound to (in the Enable Google Services wizard).
In the same column, choose User management.
Click the Remove myself from this account button.
Then go back to the Enable Google Services wizard again and you should now be able to select another account.
I hope this helps others at least until Google fixes the site, as this was a rather annoying problem to solve!
I figure out the solution for this issue is that we can move the account to trash. After we create an config file, restore the account.
Hope this may help
On this page Google staff gave an answer to this bug:
This is currently working as intended even though it may not seem so. There may be an update to fix this but in the meantime you can just copy an existing Configuration file and edit it. The only thing you need to change is the Analytics tracking ID value.
For example, in the configuration JOSN file you'll see an entry like:
"services": {
"analytics_service": {
"status": 2,
"analytics_property": {
"tracking_id": "UA-XXXXX-YY"
}
},
Replace the UA-XXXXX-YY value with the property ID (for the GA
Account) you want to use. You can use the Account Explorer to find the
correct property ID:
https://ga-dev-tools.appspot.com/account-explorer/
Note that Tracking ID and Property ID mean the same thing.