-
google.com/analytics - With Flash? Will it work for each page?
I built a website entirely in flash, so its one single .swf file. Is there a way I can post the code that google analytics gives me on each keyframe, in the .fla file, so it can be tracked that way, instead of just on the .html page?
They say to put it right above your </body> tag.
Here is the code google analytics gave me.
<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">
var pageTracker = _gat._getTracker("UA-3538877-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
I need to find this out ASAP, so any help would be great.
Thanks in advance.
-
Bearded (M|G)od
You would use ExternalInterface to call the tracking code javascript function. I'm not sure what it is off the top of my hand, but I've done it. You'd call that function, and pass the string to track as a parameter.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|