Jul 30

Tracking Flash Button Clicks with Google Analytics

In a recent effort to track RSS clicks and see who’s subscribing to my feeds in my GA control panel, i thought of something interesting. Flash/Flex doesn’t really have a way of communicating actions to the Google Analytics urchin to tell the tracking system what the user is doing. since google perceives it as one object.

I’m sure they’re working on something, but in the mean time.. chew on this:

Flash buttons/Movie clips, anything can have an action associated ot it. you can use the getURL() function to call a javascript within the page, so try it. Attach this to a button in flash and see if it shows up in your GA account as a recorded hit:

javascript:pageTracker._trackPageview('/something/i/want-to-track');

It’s just an idea, i havent tried it yet, but it should work.Just make sure the script source and GA code they provide is on the page before the flash object.

No Comments

Leave a comment