Google Blogoscoped

Forum

Google Analytics for Flash  (View post)

TOMHTML [PersonRank 10]

Tuesday, November 18, 2008
16 years ago3,316 views

It's a cool tool for Flash/Flex developers, but they know they already were able to track user events without that ;)

Grega M [PersonRank 2]

16 years ago #

Does somebody know, how Google Analytics should be handled in AJAX applications (like Google Maps or sth similar)?

Philipp Lenssen [PersonRank 10]

16 years ago #

Grega, from your JavaScript you can use calls to the Google Analytics API, like this:

if (pageTracker) { pageTracker._trackPageview('/analytics_api/foobar/'); }

... provided you included the Analytics tracker snippet in your HTML page. Something like the following (but copy it from Google Analytics):

<script type="text/javascript">
[snip]
</script>
<script type="text/javascript">
pageTracker = _gat._getTracker("UA-...");
pageTracker._initData();
pageTracker._trackPageview();
</script>

You'll then see the stats for these calls in the Analytics content-by-path box, in this case, the path would be "/analytics_api/foobar/".

Grega M [PersonRank 2]

16 years ago #

Philipp, thank you for that.

Grega

Chris Turner [PersonRank 1]

16 years ago #

Phillip,

I thought you may want to feature this on your blog: http://www.deanhunt.com/googlespoof.html

If google pagerank could sing ;-)

TargetStat [PersonRank 0]

16 years ago #

See also this add-on to Google tracking code for Flex. The add-on will perform tracking automatically saving you from writing trackPageView() calls manually:

riatest.com/products/targetstat-flex-analytics.html

[Unlinked – Tony]

Forum home

Advertisement

 
Blog  |  Forum     more >> Archive | Feed | Google's blogs | About
Advertisement

 

This site unofficially covers Google™ and more with some rights reserved. Join our forum!