SlideShare a Scribd company logo
Google Analytics for
iOS
Created by:
Pawan Ramteke
(iOS Developer)
(4-3-2016)
It is a service offered by Google that generates
detailed statistics about your website or mobile app’s
usage.
Google Analytics is a great tool for measuring your
app’s usage to test if new features are working both
functionally and experientially.
What is Google
Analytics ?
Google Analytics for your
App
Go to www.google.com/analytics. The homepage should
appear like so:
Click here for sign
in
Sign in to Google Analytics
To start Analytics for your account you need to sign in with your Google
account. After click on sign in button , Select Google Analytics Option and
then continue sign in.
Once you sign in with Google account , the first screen you will see, the
Steps to Analyze your app or website.
After Click on Sign up button , you will see the page to create new account
for your app.
Google then asks you to submit the details for the app you want to track.
Make sure to choose Mobile app at the top and enter the information as
required.
Google then generate a unique Tracking Id for submitted App.
Admin Name
Your App
Name
Downloading the Google Analytics iOS
SDK
After generating a Tracking Id , Google provide you a link for downloading
the SDK for appropriate app and also show the steps for integrating the
SDK to your app.
Click here to download SDK for iOS
After click on the SDK download link , Google provide a steps to add
analytics to your app and also provide the link to download the
configuration file for your project.
Click here to download the Configuration
File
After clicking GET CONFIGURATION FILE button , a new POPUP window will
open in which you have to add your registered App name and you’re your
app Tracking Id in iOS Bundle Id box.
1.Click here to
analyze app
2.Click here to
get configuration
file
Download plist
file and add to
your app file
Select the Admin view on the top right.
You will see the main dashboard area for managing your
Accounts, Properties, and Views.
Account Property View
(profile)
Dashboard for User
Setting up Analysis for
AppOpen your app where you want to add Analysis.
Add GoogleService-Info.plist file in your project
Create Cocoa pods for app
Analytics uses CocoaPods to install and manage
dependencies.
Open project file in finder.
If you have not already created a Podfile for your application,
create one now: Open terminal and type pod init
Open the Podfile created for your application and add the
following:
platform :iOS, ’7.0’
use_frameworks!
pod 'Google/Analytics'
Save the file and run: pod install
This creates an .xcworkspace file for your application. Use this
After installation of pod in your project it will create a pod files.
Open Podfile
Initialize Analytics for your
app
Now that you have the configuration file for your project, you're ready to
begin implementing. First, configure the shared Analytics object inside
AppDelegate.
To do these changes, first add Analytics inside AppDelegate:
#import <Google/Analytics.h>
Then, overload the didFinishLaunchingWithOptions method to configure
GGLContext:
// Configure tracker from GoogleService-Info.plist.
NSError *configureError;
[[GGLContext sharedInstance] configureWithError:&configureError];
NSAssert(!configureError, @"Error configuring Google services: %@",
configureError);
// Optional: configure GAI options.
GAI *gai = [GAI sharedInstance];
gai.trackUncaughtExceptions = YES; // report uncaught exceptions
gai.logger.logLevel = kGAILogLevelVerbose; // remove before app release
Add screen tracking
To keep track of screen:
Open a View Controller that you'd like to track.
Your code should do the following:
Add the required <Google/Analytics.h> header.
Use a viewWillAppear method to insert screen tracking.
Provide a name for the screen and execute tracking.
id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
[tracker set:kGAIScreenName value:@”name of Tracking View”];
[tracker send:[[GAIDictionaryBuilder createScreenView] build]];
Enjoy Coding

More Related Content

What's hot

Apidd Member Management
Apidd Member ManagementApidd Member Management
Apidd Member Management
apidd
 
Beta testing guidelines for developer
Beta testing guidelines for developerBeta testing guidelines for developer
Beta testing guidelines for developer
Ketan Raval
 
ApiDD Consumer
ApiDD ConsumerApiDD Consumer
ApiDD Consumer
apidd
 
Android Intent.pptx
Android Intent.pptxAndroid Intent.pptx
Android Intent.pptx
vishal choudhary
 
Adding you API to ApiDD
Adding you API to ApiDDAdding you API to ApiDD
Adding you API to ApiDD
apidd
 
ApiDD Overview
ApiDD OverviewApiDD Overview
ApiDD Overview
apidd
 
Point and Click App Building Workshop
Point and Click App Building WorkshopPoint and Click App Building Workshop
Point and Click App Building Workshop
Salesforce Developers
 
Data Logger App
Data Logger App Data Logger App
Data Logger App
Figur8 Inc.
 
Eclipse e git
Eclipse e gitEclipse e git
Eclipse e git
Abbas Zahir
 
How to sync tally data
How to sync tally dataHow to sync tally data
How to sync tally data
Parikshit Ghospurkar
 
Sharepoint 2013
Sharepoint 2013Sharepoint 2013
Sharepoint 2013
Iqbal Bocus
 
Android Programming.pptx
Android Programming.pptxAndroid Programming.pptx
Android Programming.pptx
vishal choudhary
 
Salesforce.com Lightning
Salesforce.com LightningSalesforce.com Lightning
Salesforce.com Lightning
Malinda Lamahewa
 
RSS Tutorial
RSS TutorialRSS Tutorial
RSS Tutorial
PuttiApps
 
RSS Tutorial
RSS TutorialRSS Tutorial
RSS Tutorial
My App Editor
 
Create an android app for database creation using.pptx
Create an android app for database creation using.pptxCreate an android app for database creation using.pptx
Create an android app for database creation using.pptx
vishal choudhary
 
Shopify
ShopifyShopify
Shopify
My App Editor
 
Process Of The Data access for the users
Process Of The Data access for the users Process Of The Data access for the users
Process Of The Data access for the users
nsai6290
 

What's hot (20)

Apidd Member Management
Apidd Member ManagementApidd Member Management
Apidd Member Management
 
Beta testing guidelines for developer
Beta testing guidelines for developerBeta testing guidelines for developer
Beta testing guidelines for developer
 
ApiDD Consumer
ApiDD ConsumerApiDD Consumer
ApiDD Consumer
 
Android Intent.pptx
Android Intent.pptxAndroid Intent.pptx
Android Intent.pptx
 
Adding you API to ApiDD
Adding you API to ApiDDAdding you API to ApiDD
Adding you API to ApiDD
 
ApiDD Overview
ApiDD OverviewApiDD Overview
ApiDD Overview
 
Point and Click App Building Workshop
Point and Click App Building WorkshopPoint and Click App Building Workshop
Point and Click App Building Workshop
 
Data Logger App
Data Logger App Data Logger App
Data Logger App
 
Eclipse e git
Eclipse e gitEclipse e git
Eclipse e git
 
How to sync tally data
How to sync tally dataHow to sync tally data
How to sync tally data
 
Sharepoint 2013
Sharepoint 2013Sharepoint 2013
Sharepoint 2013
 
Android Programming.pptx
Android Programming.pptxAndroid Programming.pptx
Android Programming.pptx
 
Salesforce.com Lightning
Salesforce.com LightningSalesforce.com Lightning
Salesforce.com Lightning
 
RSS Tutorial
RSS TutorialRSS Tutorial
RSS Tutorial
 
RSS Tutorial
RSS TutorialRSS Tutorial
RSS Tutorial
 
Create an android app for database creation using.pptx
Create an android app for database creation using.pptxCreate an android app for database creation using.pptx
Create an android app for database creation using.pptx
 
Android course (lecture2)
Android course (lecture2)Android course (lecture2)
Android course (lecture2)
 
Article writer pro
Article writer proArticle writer pro
Article writer pro
 
Shopify
ShopifyShopify
Shopify
 
Process Of The Data access for the users
Process Of The Data access for the users Process Of The Data access for the users
Process Of The Data access for the users
 

Similar to Google analytics for iOS

iPhone first App Store submission
iPhone  first App Store submissioniPhone  first App Store submission
iPhone first App Store submission
Pragati Singh
 
Add Google Analytics to Track Your Digital Documents
Add Google Analytics to Track Your Digital DocumentsAdd Google Analytics to Track Your Digital Documents
Add Google Analytics to Track Your Digital Documents
Justin Putney
 
Google analytics
Google analyticsGoogle analytics
Google analytics
safnaameerudeen
 
4 Ways to Build an App Without Code | AppSheet
4 Ways to Build an App Without Code | AppSheet4 Ways to Build an App Without Code | AppSheet
4 Ways to Build an App Without Code | AppSheet
AppSheet
 
12 simple steps to prepare your i os app for development and distribution (1)...
12 simple steps to prepare your i os app for development and distribution (1)...12 simple steps to prepare your i os app for development and distribution (1)...
12 simple steps to prepare your i os app for development and distribution (1)...
Katy Slemon
 
How to submit ios app in Appstore
How to submit ios app in AppstoreHow to submit ios app in Appstore
How to submit ios app in Appstore
Nandini Gautam
 
Flutter Android / iOS Build Preparation
Flutter Android / iOS Build PreparationFlutter Android / iOS Build Preparation
Flutter Android / iOS Build Preparation
9 series
 
Angular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-loginAngular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-login
Katy Slemon
 
Fraudpointer - Google Apps integration
Fraudpointer  - Google Apps integrationFraudpointer  - Google Apps integration
Fraudpointer - Google Apps integration
Fraudpointer.com
 
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
InnovationM
 
10 Web 2.0 Ideas to Keep Your Intranet Fresh
10 Web 2.0 Ideas to Keep Your Intranet Fresh10 Web 2.0 Ideas to Keep Your Intranet Fresh
10 Web 2.0 Ideas to Keep Your Intranet Fresh
Daniel X. O'Neil
 
Hospital app project (how to upload app)
Hospital app project (how to upload app)Hospital app project (how to upload app)
Hospital app project (how to upload app)
MAHFUZ RAIHAN
 
Whitepaper - how to launch a mobile app successfully!
Whitepaper - how to launch a mobile app successfully!Whitepaper - how to launch a mobile app successfully!
Whitepaper - how to launch a mobile app successfully!
RG Infotech
 
Google analytics reporting using api
Google analytics reporting using apiGoogle analytics reporting using api
Google analytics reporting using apiSankar Ponnusamy
 
How to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step GuideHow to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step Guide
Ace Web Academy -Career Development Center
 
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdfPERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
arfa442827
 
AWS Mobile Hub Overview
AWS Mobile Hub OverviewAWS Mobile Hub Overview
AWS Mobile Hub Overview
Amazon Web Services
 

Similar to Google analytics for iOS (20)

iPhone first App Store submission
iPhone  first App Store submissioniPhone  first App Store submission
iPhone first App Store submission
 
Add Google Analytics to Track Your Digital Documents
Add Google Analytics to Track Your Digital DocumentsAdd Google Analytics to Track Your Digital Documents
Add Google Analytics to Track Your Digital Documents
 
Google analytics
Google analyticsGoogle analytics
Google analytics
 
4 Ways to Build an App Without Code | AppSheet
4 Ways to Build an App Without Code | AppSheet4 Ways to Build an App Without Code | AppSheet
4 Ways to Build an App Without Code | AppSheet
 
12 simple steps to prepare your i os app for development and distribution (1)...
12 simple steps to prepare your i os app for development and distribution (1)...12 simple steps to prepare your i os app for development and distribution (1)...
12 simple steps to prepare your i os app for development and distribution (1)...
 
How to submit ios app in Appstore
How to submit ios app in AppstoreHow to submit ios app in Appstore
How to submit ios app in Appstore
 
Flutter Android / iOS Build Preparation
Flutter Android / iOS Build PreparationFlutter Android / iOS Build Preparation
Flutter Android / iOS Build Preparation
 
Angular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-loginAngular 11 google social login or sign in tutorial using angularx social-login
Angular 11 google social login or sign in tutorial using angularx social-login
 
Fraudpointer - Google Apps integration
Fraudpointer  - Google Apps integrationFraudpointer  - Google Apps integration
Fraudpointer - Google Apps integration
 
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
 
10 Web 2.0 Ideas to Keep Your Intranet Fresh
10 Web 2.0 Ideas to Keep Your Intranet Fresh10 Web 2.0 Ideas to Keep Your Intranet Fresh
10 Web 2.0 Ideas to Keep Your Intranet Fresh
 
Hospital app project (how to upload app)
Hospital app project (how to upload app)Hospital app project (how to upload app)
Hospital app project (how to upload app)
 
App engine install-windows
App engine install-windowsApp engine install-windows
App engine install-windows
 
Whitepaper - how to launch a mobile app successfully!
Whitepaper - how to launch a mobile app successfully!Whitepaper - how to launch a mobile app successfully!
Whitepaper - how to launch a mobile app successfully!
 
Google analytics reporting using api
Google analytics reporting using apiGoogle analytics reporting using api
Google analytics reporting using api
 
How to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step GuideHow to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step Guide
 
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdfPERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
 
CI & CD- mobile application
CI & CD- mobile applicationCI & CD- mobile application
CI & CD- mobile application
 
CI & CD- mobile application
CI & CD- mobile applicationCI & CD- mobile application
CI & CD- mobile application
 
AWS Mobile Hub Overview
AWS Mobile Hub OverviewAWS Mobile Hub Overview
AWS Mobile Hub Overview
 

Google analytics for iOS

  • 1. Google Analytics for iOS Created by: Pawan Ramteke (iOS Developer) (4-3-2016)
  • 2. It is a service offered by Google that generates detailed statistics about your website or mobile app’s usage. Google Analytics is a great tool for measuring your app’s usage to test if new features are working both functionally and experientially. What is Google Analytics ?
  • 3. Google Analytics for your App Go to www.google.com/analytics. The homepage should appear like so: Click here for sign in
  • 4. Sign in to Google Analytics To start Analytics for your account you need to sign in with your Google account. After click on sign in button , Select Google Analytics Option and then continue sign in. Once you sign in with Google account , the first screen you will see, the Steps to Analyze your app or website.
  • 5. After Click on Sign up button , you will see the page to create new account for your app. Google then asks you to submit the details for the app you want to track. Make sure to choose Mobile app at the top and enter the information as required. Google then generate a unique Tracking Id for submitted App. Admin Name Your App Name
  • 6. Downloading the Google Analytics iOS SDK After generating a Tracking Id , Google provide you a link for downloading the SDK for appropriate app and also show the steps for integrating the SDK to your app. Click here to download SDK for iOS
  • 7. After click on the SDK download link , Google provide a steps to add analytics to your app and also provide the link to download the configuration file for your project. Click here to download the Configuration File
  • 8. After clicking GET CONFIGURATION FILE button , a new POPUP window will open in which you have to add your registered App name and you’re your app Tracking Id in iOS Bundle Id box.
  • 9. 1.Click here to analyze app 2.Click here to get configuration file Download plist file and add to your app file
  • 10. Select the Admin view on the top right. You will see the main dashboard area for managing your Accounts, Properties, and Views. Account Property View (profile) Dashboard for User
  • 11. Setting up Analysis for AppOpen your app where you want to add Analysis. Add GoogleService-Info.plist file in your project
  • 12. Create Cocoa pods for app Analytics uses CocoaPods to install and manage dependencies. Open project file in finder. If you have not already created a Podfile for your application, create one now: Open terminal and type pod init Open the Podfile created for your application and add the following: platform :iOS, ’7.0’ use_frameworks! pod 'Google/Analytics' Save the file and run: pod install This creates an .xcworkspace file for your application. Use this
  • 13. After installation of pod in your project it will create a pod files. Open Podfile
  • 14. Initialize Analytics for your app Now that you have the configuration file for your project, you're ready to begin implementing. First, configure the shared Analytics object inside AppDelegate. To do these changes, first add Analytics inside AppDelegate: #import <Google/Analytics.h> Then, overload the didFinishLaunchingWithOptions method to configure GGLContext: // Configure tracker from GoogleService-Info.plist. NSError *configureError; [[GGLContext sharedInstance] configureWithError:&configureError]; NSAssert(!configureError, @"Error configuring Google services: %@", configureError); // Optional: configure GAI options. GAI *gai = [GAI sharedInstance]; gai.trackUncaughtExceptions = YES; // report uncaught exceptions gai.logger.logLevel = kGAILogLevelVerbose; // remove before app release
  • 15.
  • 16. Add screen tracking To keep track of screen: Open a View Controller that you'd like to track. Your code should do the following: Add the required <Google/Analytics.h> header. Use a viewWillAppear method to insert screen tracking. Provide a name for the screen and execute tracking. id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker]; [tracker set:kGAIScreenName value:@”name of Tracking View”]; [tracker send:[[GAIDictionaryBuilder createScreenView] build]];
  • 17.