Noobug
04-13-2010, 11:34 PM
Can anyone advise on how to implement Google Analytics with a Flash AS2 site using SWFAddress? I am unsure as to whether I need to modify the rest of the code, or just add the Google Analytics html inside the body.
This is my code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title> site </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript" src="swfaddress.js"></script>
<script type="text/javascript">
var attributes = {id: "site"}
swfobject.embedSWF("site.swf", "myContent", "900", "800", "8.0.0", null, null, null, attributes);
</script>
<style type="text/css">
body { background-color: #000000; }
</style>
</head>
<body marginwidth="0" marginheight="0 leftmargin="0"
topmargin="0">
<body>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<div id="myContent">
<h1><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></h1>
</div>
</td>
</tr>
</table>
</body>
</html>
Thanks for your help!
This is my code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title> site </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript" src="swfaddress.js"></script>
<script type="text/javascript">
var attributes = {id: "site"}
swfobject.embedSWF("site.swf", "myContent", "900", "800", "8.0.0", null, null, null, attributes);
</script>
<style type="text/css">
body { background-color: #000000; }
</style>
</head>
<body marginwidth="0" marginheight="0 leftmargin="0"
topmargin="0">
<body>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<div id="myContent">
<h1><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></h1>
</div>
</td>
</tr>
</table>
</body>
</html>
Thanks for your help!