Event Tracking/Time Tracking Question [Please Help]

Discussion in 'Google Analytics' started by cgo85, Sep 27, 2011.

  1. #1
    I'm trying to get this figured out. The purpose of this is to find out at what intervals visitors of a certain page are exiting. Here is the current script I have in place (Any critique or suggestions would be much appreciated):


    <script type="text/javascript" src="http://www.google-analytics.com/ga.js"></script>
    <script type="text/javascript" src="http://www.xxxxx.com/time-tracker.js"></script> //This actually works i've removed url for privacy
    <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-xxxxxxxxx']);
    _gaq.push(['_setDomainName', 'none']);
    _gaq.push(['_setAllowLinker', true]);
    _gaq.push(['_trackPageview']);

    (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();


    var timeTracker = new TimeTracker();
    timeTracker._recordStartTime();

    // Specify your own histogram "action" values
    timeTracker._setHistogramBuckets([10, 20, 50, 100, 500, 1000]);

    // assuming pageTracker is called from _gat._getTracker(account)
    timeTracker._track(pageTracker);
    </script>
     
    cgo85, Sep 27, 2011 IP