google analytics implementation for mobile apps

Post on 23-Jan-2017

300 Views

Category:

Data & Analytics

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Google Analytics 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.

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

Setting Up Google Analytics 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.

How to access Google analytics

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

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.

Admin View

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

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.

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.

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.

Setting Up SDK Android Studio 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/

Software Download

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

Google Analytics For Mobile Application Tracking

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

Set up for Mobile Application Tracking

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

Android Studio for Mobile Application Tracking

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

Google Analytics For Mobile Application Tracking

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

Download JDK File

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

JDK File

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

Finalize Setup

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

Finalize Setup

• Now click on “I Agree” button.

Finalize Setup

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

Finalize Setup

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

Installation

• Now click on “Install” button to install.

Data Extract

• Now the data is extracting for installation.

Extracting

• The Android SDK is extracting.

Installation Process

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

Installation Process

• Now click on “Finish” button to setup.

Installation Process

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

Installation Process

• Click on “Finish” after downloading components.

Installation Process

• Start a new Android Studio project by selecting it.

Configure New Project

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

API Level

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

Activity Select

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

Fields

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

Android Environment

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

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>

Android Activity Layout (activity_main.xml)

Android Activity (MainActivity.java)

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

Home screen of the application.

Google Analytics Outputs

Output

Output

Thank you

top related