header_graphic
header_gradient
 
:: Support :: Additional Banner Rotator Examples: Google Tracking

This example shows how to enable the Google Tracking feature using the XML playlist. Please note that you must set up a Google Analytics account and implement the tracking codes on each page that you want to track. We cover the basics of setting up the tracking codes in a webpage, but if you are not familiar with Google Analytics, you should expect to use the Google Help tools to learn more about their system and how it should be implemented (link to Google Analytics). This example utilizes a square rotator component (250x250 pixels) without captions and FlashVars are used to pass the path for the XML playlist.

  1. Set the "googleTracking" parameter to "true" in the XML - link to example.

  2. Add <gtimpressions> and <gtclicks> nodes to the XML. For example, if your XML nodes read:

    <gtimpressions>/ads/banner117_impressions</gtimpressions>
    <gtclicks>/ads/banner117_clicks</gtclicks>


    the impression and click events generated by the Banner Rotator will be logged as though they were pageviews of "/ads/banner117_impressions" and "/ads/banner117_clicks". The arguments must begin with a forward slash as shown. The event names may be organized into any directory style structure you wish, and actual pages with these filenames need not exist - link to example.

  3. The following Analytics tracking code must be placed in the <body> of your HTML code above the scripts used to embed the Banner Rotator (note: you will need to substitute your account number for the x's):

    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "xx-xxxxxxx-x";
    urchinTracker();
    </script>


  4. You can check your Google Analytics Top Content report 24-48 hours after the updated tracking code has been executed. You should be able to see the assigned pagename in your report.

:: Click here to download example files


footer_graphic

Support - Documentation - Skin Wizard - Sample Skins - Tutorials
Copyright © 2003-2012 Earth Science Agency, LLC - All Rights Reserved