Hi, I am new at this and trying to update existing ga code and I don't think I am doing it right. Trying to track Outbound Links from list brought in from a database (really not sure I am explaining this right). Here is the tracking code in the head area: <script type="text/javascript">
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-30843549-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? ' https://ssl' : ' http://www') + '. google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>
and here is the code I want to track: <div id="prc-spacing"><table cellpadding="2" width="100%"><tr> <td valign="top"><img src="/images/preg-icon.png" align="left" style="padding-bottom:10px;"></td> <td valign='top'><a href="<?echo $url;?>" target="_blank" onClick="recordOutboundLink(this, 'Outbound Links', 'PRC-<?print "$prc ($prcCity, $prcState)";?>');return false;"><?echo $prc;?></a><br><?print "$location, $prcState ($prcPhone)";?></td></tr></table> </div> Can someone look at this and tell if this is right or not? Thank you for helping me, Diana |