Gaget A Simple Widget For Google Analyics 1 2 1

  1. Gadget A Simple Widget For Google Analytics 1 2 1/2
  2. Gadget A Simple Widget For Google Analytics 1 2 123

This document describes how to use the new gadget API for Analytics gadget tracking. This API offers an improved data model and performance tracking to collect Analytics reports statistics for your gadgets.

Before You Begin

Create Google Reviews for your website using Elfsight editor. It’s free, fast and gives lifetime support to every user of Elfsight Google widget. Beautiful Widgets is your best companion when personalizing your home screen. Be unique, express yourself. Thanks to its multiple customizable widgets and themes in the Play Store, you can customize your home screen according to your moods and desires. Unlock the Beautiful Widgets option FREE! Use GetJar Gold to discover new applications and use them to extend the functionality of Beautiful. What’s New in Version 1.2.1. Bug fixes: – Fixed a bug that prevented the widget properly working on OS X Yosemite (10.10.x). Sorry about the trouble. – Fixed a bug that prevented view selection in the main app if you had a lot of views. BTW GAget 2.0 is already in the works, with a lot of new and awesome features.

Gadget a simple widget for google analytics 1 2 123

In Google Analytics, each unique website domain or sub-domain you add to your account is tracked in a separate view (profile) and assigned a separate domain ID. Because each gadget operates on its own sub-domain on the gmodules.com host site, you will want to track each gadget you create in its own view (profile), and with a unique domain ID.

The simplest way to do this is to let Google Analytics generate a unique ID for you.

  1. To begin, sign into Google Analytics or sign up for a Google Analytics account.
    • New users should see a New Account Sign Up page.
    • Existing users should go to the Analytics Settings page and click on Add Website View (Profile). (Be sure to choose new domain.)
  2. From either of these pages, enter any valid website URL.
  3. Because the website URL is only a string that the Google Analytics software pairs with your domain ID, this URL can be any valid website URL string, whether fabricated or real. You are not going to install the tracking code on any web pages at all, and will not need access to any website pages.
  4. Click the button to continue to the next screen.
  5. When the tracking code snippet appears, copy the unique domain ID to a scratch pad. The automatically generated code snippet contains this domain ID in the form of UA-123456-1.
  6. Click the Finish button.
  7. You should see the name of your website URL in the view (profile) list. You can also change the view (profile) name to something more meaningful by clicking the Edit link for that view (profile), and then clicking Edit again.
  8. Use the generated domain ID in your gadget tracking code.
  9. Analytics domain IDs take the form of:
    UA-123456-1

Tracking Your Gadget

The process of tracking your gadget involves three additions to your gadget code:

  1. Enabling the feature.
  2. Creating a tracker object.
  3. Tracking your gadget using one of two methods.

The following gadget code sample shows each of these code additions, which are then explained below. You can use this sample file to start your own gadget.

1. Enabling the feature

First, enable the feature by importing the Analytics library using the feature namespace:

2. Creating a Tracker Object

The Analytics tracking API adheres to the same object-oriented model of the ga.js tracking code. So, before tracking your gadget, instantiate a tracker object:

This is where you will insert the domain ID generated by following the steps above.

You must use the full domain ID with the ending single numeral; otherwise the tracking object call will fail.

Gadget A Simple Widget For Google Analytics 1 2 1/2

3. Tracking Your Gadget

Gadget A Simple Widget For Google Analytics 1 2 123

The gadget API provides two methods that you can use to track interaction on your gadgets:

  • The virtual URL method
  • ga.reportPageview(path);

    This method tracks gadget statistics as special page views, and is the same method used in the earlier version of the Analytics gadget API. Using this method, you can update any pre-existing gadget tracking code without impacting your existing Analytics reports layout. You view reporting data on your gadgets just like you view reporting data for web pages.

    When you use the virtual URL method to track gadget interaction, each call is recorded as a page request for the string that you provide as a parameter to the method. You can take advantage of this behavior to pass in a fabricated URL path so you can view reports for gadgets in the Google Analytics interface just like you would website page reports. For example, you could use separate paths to track both gadget views and gadget interactions:


  • The event tracking method
  • ga.reportEvent(name, action, [[]label], [[]value]);

    This method is available only in the new Analytics gadget API. Using this method, you can track page views (e.g. gadget rendering) separately from user interactions on your gadget.

    Note: At this time, Event Tracking is in closed beta release. Use the virtual URL method if you do not have access to Event Tracking.

    The event method provides a different model for you to use with gadget tracking. First, event calls are calculated separately from page view calls, and the resulting data is displayed in a separate part of the Google Analytics Content reports. Thus, you could track the view of a gadget sepately from user interactions on the gadget, without having user interaction inflate the overall numbers for gadget views. Secondly, this method employs the event tracking model, whose structure is specifically designed to analyze user interaction on gadgets. In this model, both label and value are optional parameters.

    Using the counters example, we can use the event method to track which gadget functions are triggered, and we can pass in the type of control, which is a button in both cases.

    This is a very simple example, but the event tracking model is a highly flexible structure that you can refine to take advantage of the unique tracking requirements of your gadget. For more information, see the Tracking Events documentation.

Tracking Methods

Currently, the Analytics feature offers the following methods. Their usage is discussed above.

  • reportPageview()
  • Requires a string in order to correctly populate the content reports. Typically this string is in the form of a path that you define for your reporting purposes. The value passed into this method is sent in the GIF request via the utmp variable. Use this method to track gadget loads and gadget interactions. parameters
    Stringpath Path to provide for the virtual URL of this element.
  • reportEvent()
  • Requires the name of the gadget and action parameter in order to correctly insert tracked data into Event Tracking reports. The other parameters are optional. The values passed via this method are sent in the GIF request view the utme variableU.

    parameters
    StringnameRequired. A string used at the top level of the Event Tracking reports. For example, if you were tracking interaction on a number of gadget elements, you would likely use the name of the gadget itself for this parameter, so that all interaction tracking for the gadget would be aggregated in the same section of the Google Analytics reports.
    StringactionRequired. String to further segment gadget interaction in the Event Tracking reports. For more information, see the Tracking Events documentation.
    StringlabelOptional. String you can use as a secondary segment for your gadget.
    IntvalueOptional. Number that you can supply as a value for the gadget interaction. This number is aggregated for each time the method is invoked.

Usage Considerations

The Google Analytics gadget API has a number of usage considerations:

  • Supported Containers
  • Many types of containers are supported with the Google Analytics gadget API, including, but not limited to:
    • iGoogle
    • Open Syndication
    • Open Social
    • Gadgets
  • Unsupported Gadget Types
  • The Google Analytics gadget API does not support the following gadget types:
    • Inlined gadgets (type=html-inline)
    • Mapplets
    • URL type gadgets (type-url)
    • Gadget Ads on Google AdSense
  • Domain considerations
  • When you require the Analytics feature for your gadget, your gadget will redirect to <subdomain>.gmodules.com, where <subdomain> is a unique, random sub-domain. Hence, all content in the gadget is displayed under that sub-domain. Example: 3nvma227-a.gmodules.com. Additionally, all the Google Analytics tracking cookies are set to this unique subdomain. For this reason, mapplets are not supported by the Analytics tracking feature, and you must specifically allow Flash content special access to the tracking feature (see below).
  • Gadgets using Flash content
  • Gadgets using Flash content must specifically enable communication between the Flash URL and the gadgets URL by setting the allowScriptAccess parameter to always.

Tips

How Best to Use the Virtual URL Method

If you do not have access to the event tracking method for your gadgets, follow these recommendations for tracking your gadgets with the virtual URL method:

  • Segment your gadget load distinctly.
  • You can call the ga.reportPageview() on gadget load supplying a path that segments the gadget load/view statistics separately from the gadget interaction metrics. This will keep the content reporting data for the gadget in a separate 'directory' from the interactions on the gadget, so that you can see your overall views separately from the number of interactions on the gadget itself. For example, the following code snippet could be used in your gadget to display all statistics for your gadget load:
  • Segment different interaction types from each other.
  • Call the ga.reportPageview() with a path that segments different user interactions. In this way, you can get separate content reporting for gadget links, gadget buttons, or other widgets you might want to track for interaction data. For example:
    • ga.reportPageview('/link/click');
    • ga.reportPageview('/link/submit');

Using the Event Tracking Method

If you have access to the Event Tracking feature in the Google Analytics reports, you can take advantage of the highly flexible data model to get the most out of tracking your objects. Here are some tips:

  • Track the gadget view or impression using ga.reportPageview(), and track gadget interaction using ga.reportEvent().
  • Gadget views will be displayed in the Content section for page data, and gadget interactions will be displayed in the Events section under the Content reports.
  • Use document.referrer as a parameter to learn where your gadget has been placed.
  • In the gadget, document.referrer is usually the container’s page URL, so you could pass it in as a label parameter in the ga.reportEvent() method:

Troubleshooting

You can use 3rd-party tools to analyze the GIF request string for your gadget in order to verify that data will be sent to the Google Analytics reports in the way you expect. Once you have the gadget properly hosted and working in your test page, analyze the GIF request string as follows:

  • Page view method
  • Look for the utmp variable in the GIF request parameters. The information associated with that variable is what will be sent to the Google Analytics reports as the 'path' for the gadget.
  • Event Tracking method
  • Look for the utme variable in the GIF request parameters. This information should be of the form 5(object*action*label)(value).

For more information on troubleshooting the tracking code, see the GATC Troubleshooting Guide.

Last Updated on November 1, 2015 by

Gaget A Simple Widget For Google Analyics 1 2 1

GAget – A simple widget for Google Analyics 1.1.1

Description

Check your Google Analytics stats in seconds!

Your most important numbers are just a swipe away: GAget puts your Analytics data in the Notification Center.

GAget contains the following information about your profiles:
– Sessions
– Users
– Page views
– Bounce rate
– Percent of new visitors
– Average time on site
– Top 8 countries your user came from
– Top 8 referring websites
– Mobile, tablet and desktop rates

GAget also shows different views for mobile apps’ data and websites tracked in Analytics.

Please note: GAget currently does not support multiple Google accounts. You can however share your sites’ data between accounts in the Analytics Admin page and view those in GAget.

What’s New in Version 1.1.1

Bug fixes and improvements.

Please rate GAget in the App Store if you like using it! It helps out a lot 🙂

Developer: Zoltan Hosszu

Download GAget 1.1.1 for Mac OS X Free Cracked