# Anyone ever used Google Analytics in AS3?

**URL:** <https://forum.kirupa.com/t/anyone-ever-used-google-analytics-in-as3/282188>\
**Category:** flash\
**Created:** [February 18, 2009, 7:23pm UTC](https://forum.kirupa.com/t/anyone-ever-used-google-analytics-in-as3/282188 "2009-02-18T19:23:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dewey](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dewey](https://forum.kirupa.com/u/dewey)\
**Post date:** [February 18, 2009, 7:23pm UTC](https://forum.kirupa.com/t/anyone-ever-used-google-analytics-in-as3/282188/1 "2009-02-18T19:23:23Z")

</div>

Hey Gang,

I’m currently looking here for help using GA with Flash: [http://code.google.com/apis/analytics/docs/flashTrackingSetupFlash.html#getComponent](http://code.google.com/apis/analytics/docs/flashTrackingSetupFlash.html#getComponent)

Specifically I am looking at the AnalyticsLibrary Example.

I have my imports, I have my variable created and I see my debug window on my app if I run it.

Here’s where it gets sticky… As soon as I add \_gaTracker.trackPageView("/flash/game2/showInstructions"); or any other “trackPageView” method, I get the following error…

1061: Call to a possibly undefined method trackPageView through a reference with static type com.google.analytics:AnalyticsTracker.

Has anyone ever used this? Can anyone give me a hand here and help me figure out what I am doing wrong?

Thanks in advance for your time and help!

–d
