PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
AS2 Google Analytics Tracking
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: AS2 Google Analytics Tracking

Hybrid View

  1. #1
    Member
    Join Date
    Sep 2005
    Posts
    64

    AS2 Google Analytics Tracking

    I've integrated Google Analytics with Flash before using the previous tracker:

    Code:
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
    <script type="text/javascript">
    _uacct = "XX-XXXXXXX-X";
    urchinTracker();
    </script>
    Code inside flash:

    actionscript Code:
    getURL("javascript:urchinTracker('/home/button');");

    =======

    Now trying it on latest version of tracker:

    Code:
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("XX-XXXXXXXX-X");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    with the following inside flash.

    actionscript Code:
    getURL("javascript:pageTracker._trackPageview('/home/button');");

    But the button clicks don't register.

    Any ideas why?

    PS - Google Analytics is installed properly, as it is registering the index page.

    PPS - THis was set up over a week ago, so should be good to go.

    Many thanks for any tips.

    :)

  2. #2
    Member
    Join Date
    Sep 2005
    Posts
    64
    Anyone? This is still a mystery, and any help would be greatly appreciated...


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center