How to see segment.io data in Google Analytics - android

I am new to analytics and stuck at one point i.e Segment.io (customer data hub). I created an Android app integrated with the Segment Android SDK and expected to see segment.io data in Google Analytics. What is the process I have to follow to see the data of Segment in Google Analytics?

The process is:
Install Segment Android SDK into your app (already done, as follows from your post)
Go to Google Analytics (Admin Panel) and create a new property with "Mobile App" type. GA will asign you a new counter id UA-XXXXXX-X
Go to Segment.IO "Integrations" and turn on Google Analytics. Paste Google analytics counter id UA-XXXXXX-X into "MOBILE TRACKING ID" field. Save changes.
Now, if your mobile app is calling screen and track methods of the Segment API SDK correctly (check Segment.IO's Debugger) - all events will be passed to Google Analytics and showed in Behavior-Events, and screens in Behavior-Screens sections.

Related

Issue in finding Tracking Id for Google Analytics

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.

Service account doesn't show up in Google Play Console after creation

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

How to enable google analytics in Firebase project

I need to use Google analytics services in my app (android and ios). I created a project in Google API Console and imported it into Firebase for FCM services. But after that, I cannot link the Google project into Google Analytics and get configuration file. When I try to get configuration file and select app name, it jumps to Firebase console.
If I add Android or iOS in the Firebase project, the configuration file I got doesn't have google analytics info.
Anyone know how to solve this. I need to use Google Analytics in my app but not the Firebase analytics.
I also need to support both standalone Google Analytics SDK and Firebase Analytics, and I was finally able to find a solution in this Google Analytics Support answer (Analytics for mobile apps).
Google Analytics without Firebase:
Go to Google Analytics > Admin > Create new Property
Select Website, using your app name as Website Name, and optionally your company website as Website URL.
Back up to the Admin page.
For the Property you just created, in the right-most column (View), there should be an "All Website Data" view. Create a new View.
Select Mobile App, naming the view something appropriate, like "All Mobile Data".
Note: Property Settings will now contain a valid GA Tracking ID you'll need for client set-up.
Google Analytics with Firebase:
Create a Firebase project for your app.
Go to Google Analytics > Admin > Create new Property
Select Mobile App, then use the "Link to Firebase" dropdown to connect to the Firebase project you created in Step 1.
Keep in mind that while there is still a standalone, non-Firebase Google Analytics API to support legacy applications, Google is definitely pushing all new application-development over to Firebase APIs. My opinion is that this solution is mainly good for libraries that need to support new & legacy apps, or during a transitional period.
Refill and Re-enter your application name in App name field manually, so that you will not have to select the routing to the Firebase option and it will not take you to the firebase console.
It's a silly thing by google
TO go to enable or disable the api like map , drive and other of google apis from Firebase project go to this link and will see all api , hope this help.
1. If you don't have GoogleAnalytcs library in your project, get it.
You can use cocoapods: pod 'Google/Analytics'.
2. Get Tracking ID from https://analytics.google.com. If you have not created an analytics account yet, you can do it there:
3. Add this Tracking ID to GoogleService-info.plistwith key TRACKING_ID:
4. Configure the app:
// Configure tracker from GoogleService-Info.plist.
var configureError:NSError?
GGLContext.sharedInstance().configureWithError(&configureError)
5. Example - sending screenView:
func sendScreenView(name: String) {
let tracker:GAITracker = GAI.sharedInstance().defaultTracker as GAITracker
let build = GAIDictionaryBuilder.createScreenView().set(name, forKey: kGAIScreenName).build() as NSDictionary
tracker.send(build as [NSObject : AnyObject])
}
Note: Above procedure is for iOS, Android configurations should be similar.

UTM tracking codes in Firebase

How to make that Firebase understand and track installation of apps (iOS and Android) with UTM tracking links (for example I want to track installs of apps from my site from footer link)? In GA it works perfect.
In Firebase I din't find any documentations on it (in app only Firebase SDK without Google Analytics).
Utm link
You can create dynamic link with UTMs in Firebase console
The info is in Conversion tab in the Firebase dashboard.
What you may want to do is to apply the filter with "first_open" which is the event name.

Change/Remove Google Analytics account in web console

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.

Categories

Resources