Quick help with flash site and G analytics...

2 replies
Hey,

I have an offline client and want to get analytics setup on her site. It is flash based so I have absolutely no idea what I'm doing. If anyone can help me out that would be awesome, or point me to a guide on how to do it.

Thanks
#analytics #flash #quick #site
  • Profile picture of the author Victor
    You can use Googles built-in APIs for this. Please see here:

    Google Analytics Tracking for Adobe Flash - Google Analytics - Google Code

    I don't know how familiar you are with AS3, but here is some code:

    import com.google.analytics.AnalyticsTracker;
    import com.google.analytics.GATracker;
    var tracker:AnalyticsTracker = new GATracker( this, "UA-111-222", "AS3", true );
    playGame.addEventListener( MouseEvent.CLICK, onButtonClick );
    function onButtonClick ( event:Event ):void
    {
    tracker.trackPageview("/myGame1");
    }

    The code in the beginning loads the Google trackers in variables and the GA-Tracker is where you enter your account info. The site will provide more info.

    In the above you are basically including the Google Libraries and adding a few lines of code to make this work.

    More information, similar coding:

    Google Analytics for Flash - getW3Help.com - Free Web Tutorials and Resources

    Hope that helps.
    {{ DiscussionBoard.errors[3469143].message }}
    • Profile picture of the author Ethan F.
      Thanks Victor for your help!
      Signature

      "Money grows on the tree of persistence"

      {{ DiscussionBoard.errors[3469982].message }}

Trending Topics