google analytics implementation for mobile apps

45
Google Analytics for Mobile Apps

Upload: payal-daryani

Post on 23-Jan-2017

299 views

Category:

Data & Analytics


0 download

TRANSCRIPT

Page 1: Google analytics implementation for mobile apps

Google Analytics for Mobile Apps

Page 2: Google analytics implementation for mobile apps

Analytics in Mobile Apps

Analytics is one of the major parts in applications that drive revenue.

Mobile App Analytics help you set and track the goal conversions you want most: purchases, clicks, or simply time spent on your app, downloads For example, if you developing an application for Mobile Shopper app, it is

important to track the below things.

Number of users/active users from across the world

Most viewed products, categories, brands, etc.

Number of users placing request, etc.

Page 3: Google analytics implementation for mobile apps

What does it Measure ?

The number of measure

Devices and networks used to access app

The geographic location

Languages spoken by visitors

In-app purchases

Customized tracking of special content, like video

The number of screens seen per visit

Progression of visitors move through screens

Page 4: Google analytics implementation for mobile apps

Setting Up Google Analytics for Mobile

Apps

Page 5: Google analytics implementation for mobile apps

Setting Up Google Analytics for Your App

Go to google.com/analytics the homepage should appear like so .

Note: If you do not have a Google account, you will need to create one now by selecting Create an Account on the top-right side of the page. For the remainder of this tutorial we are going to assume you have create your own Google Analytics account.

Page 6: Google analytics implementation for mobile apps

How to access Google analytics

• Once you have logged in, you simply need to click the Access Google Analytics button on the top right.

Page 7: Google analytics implementation for mobile apps

Account set up

• The first screen you see lists all of your accounts. If you have clients, typically you will have one account set up for each. If you are new to Google Analytics you will only have the first account you set up.

Page 8: Google analytics implementation for mobile apps

Admin View

• Select the Admin view on the top right. To see the main dashboard area for managing your Accounts, Properties, and Views.

Page 9: Google analytics implementation for mobile apps

Property Settings

•Select the Property drop-down and click on the Create new property item .

Note: Ensure that you have chosen the correct Account selected for this project. You don’t want to add a new property to one of your clients’ accounts.

Page 10: Google analytics implementation for mobile apps

New Property

• 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. In the Setting up your property section, enter Mobile Playground for the App Name.

Page 11: Google analytics implementation for mobile apps

Tracking Code

• After accepting the terms of service, the website takes you to a page with your tracking ID and the download link for the SDK.

• Before you do anything else, write down your app’s Tracking ID, which will be of the form ID UA-XXXXXXXX-Y. Keep the ID handy, because you will need it soon.

• Now download the Google Analytics Android SDK.

Page 12: Google analytics implementation for mobile apps

Setting Up SDK Android Studio for

Mobile Apps

Page 13: Google analytics implementation for mobile apps

 How to use Google Analytics in android

• Browse to the webpage using the link and click on “Download Android Studio”. https://developers.google.com/analytics/devguides/collection/android/v4/

Page 14: Google analytics implementation for mobile apps

Software Download

• Check the “Terms and Conditions” and click on “Download Android Studio for Windows”.

Page 15: Google analytics implementation for mobile apps

Google Analytics For Mobile Application Tracking

• Launch the “android-studio-bundle…” application file you just downloaded.

Page 16: Google analytics implementation for mobile apps

Set up for Mobile Application Tracking

• Click on the “Run” button shown in the dialogue box.

Page 17: Google analytics implementation for mobile apps

Android Studio for Mobile Application Tracking

• Click on “Next” button shown in the window.

Page 18: Google analytics implementation for mobile apps

Google Analytics For Mobile Application Tracking

• Click on “jdk-7u67-windows-x64.exe” which leads to JDK download site.

Page 19: Google analytics implementation for mobile apps

Download JDK File

• Click on the link below marked with Oval to download the JDK.

Page 20: Google analytics implementation for mobile apps

JDK File

• Now JDK has been downloaded then click on “Next” button.

Page 21: Google analytics implementation for mobile apps

Finalize Setup

• Select the check boxes and click on “Next” button.

Page 22: Google analytics implementation for mobile apps

Finalize Setup

• Now click on “I Agree” button.

Page 23: Google analytics implementation for mobile apps

Finalize Setup

Select the where to install the software and click on “Next” button.

Page 24: Google analytics implementation for mobile apps

Finalize Setup

• Select the radio button of “Recommended” and click on “Next” button.

Page 25: Google analytics implementation for mobile apps

Installation

• Now click on “Install” button to install.

Page 26: Google analytics implementation for mobile apps

Data Extract

• Now the data is extracting for installation.

Page 27: Google analytics implementation for mobile apps

Extracting

• The Android SDK is extracting.

Page 28: Google analytics implementation for mobile apps

Installation Process

• Then click on “Next” once installation is completed.

Page 29: Google analytics implementation for mobile apps

Installation Process

• Now click on “Finish” button to setup.

Page 30: Google analytics implementation for mobile apps

Installation Process

• Select the radio button and click on “OK”.

Page 31: Google analytics implementation for mobile apps

Installation Process

• Click on “Finish” after downloading components.

Page 32: Google analytics implementation for mobile apps

Installation Process

• Start a new Android Studio project by selecting it.

Page 33: Google analytics implementation for mobile apps

Configure New Project

• Give the required names and click on “Next” button.

Page 34: Google analytics implementation for mobile apps

API Level

• Select the API level from drop down list and click on “Next” button.

Page 35: Google analytics implementation for mobile apps

Activity Select

• Select the activity you prefer and click on “Next” button.

Page 36: Google analytics implementation for mobile apps

Fields

• Give the names for the fields shown in the window and click on “Finish” button.

Page 37: Google analytics implementation for mobile apps

Android Environment

• This is the environment where we work on the android applications.

Page 38: Google analytics implementation for mobile apps

Add analytics.xml configuration file

<?xml version="1.0" encoding="utf-8"?><resources>

<!-- Replace placeholder ID with your tracking ID --> <string name="ga_trackingId">UA-xxxxxxxxxx</string>

<!-- Enable automatic activity tracking --> <bool name="ga_autoActivityTracking">true</bool>

<!-- Enable automatic exception tracking --> <bool name="ga_reportUncaughtExceptions">true</bool>

</resources>

Page 39: Google analytics implementation for mobile apps

Android Activity Layout (activity_main.xml)

Page 40: Google analytics implementation for mobile apps

Android Activity (MainActivity.java)

• In the “MainActivity.java” file we have to include the tracking ID.

Page 41: Google analytics implementation for mobile apps

Home screen of the application.

Page 42: Google analytics implementation for mobile apps

Google Analytics Outputs

Page 43: Google analytics implementation for mobile apps

Output

Page 44: Google analytics implementation for mobile apps

Output

Page 45: Google analytics implementation for mobile apps

Thank you