Google Analytics and Developer Tools

Google Analytics 

Google Analytics account management is a highly flexible system that you can use to track multiple web properties and to set up reporting access for a variety of users. Google makes it easy to understand how the basic Analytics accounts and profiles work.  Anyone with a website should sign up to see their website’s statistics.

Using the Google Web Developer Tools to extend Google Analytics

Web Developers have the ability to help their clients extend the functionality of the Google Analytics service from customizing data collection for web and mobile devices. The ability to access Analytics and automate reporting data and even build your own Analytics solutions is amazing. The Google Analytics developer platform provides access to the resources used to collect, configure, and report on user-interactions.

The Core Reporting API can query for dimensions and metrics, which can be used to produce customized reports. This API allows you to build custom dashboards to display Google Analytics data and can automate reporting.There are 3 fundamental concepts underlying the Core Reporting API:
1. How reports relate to users and profiles.
2. The structure of a report and how to build queries.
3. Working with the API response.

Metrics are the individual measurements of visitor activity on your site, such as visits and page views. Dimensions break down metrics across some common criteria such as country or browser. You can customize which metrics you want in your report data.

Writing an application that accesses Google Analytics data is a complex process. It requires the use of various APIs and an understanding of key concepts and certain programming languages. A basic overview is as follows:

•Authenticate and Authorize a user
•Create an Analytics Service Object
•Query the Core Reporting API and Management API
•Handle API responses
•Output results

Loading the Analytics client is an important step and is required to query the Analytics APIs. Google takes you through the process with a very easy tutorial and even gives you a breakdown of how to do this. You even have a choice of using Java, Python, PHP or JavaScript languages.

Once you’ve registered a project in the Google APIs console, authorized access to Google Analytics Data and created an Analytic Service Object, you can use the Analytics Service Object to query the Google Analytics APIS.

Query the Management API, Core Reporting API, and Output the Results

Now we can use the Analytics Service Object to query the Management API to retrieve the first Profile ID, and then query the Core Reporting API with the profile ID to retrieve the total number of visits for a specific date. The responses for each query will need to be handled, and the results outputted to the user.

The data returned from the API can be thought of as a table with a header and a list of rows. Each API response consists of a header that describes the name and data type of each column. The response also contains a list of rows, where each row is a list of cells with data in the same order as the headers.

Google Analytics is used by individuals, small businesses, and large corporations to track millions of websites. The program provides opportunities for you to reach this audience and make a big impact because businesses can target customized campaigns whether you use the basic Analytics or the Developer Tools.