Google analytics

You can add Google analytics tracking to a gadget. More information on the http://code.google.com/apis/gadgets/docs/legacy/tools.html#Analytics_Gadgets Google documentation.

<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Google analytics" summary="" description="" author="" author_email="" thumbnail="" screenshot="" height="380">
<Require feature="opensocial-0.7"/>
<Require feature="analytics"/>
 
<Content type="html">
<![CDATA[
<script type="text/javascript">
 // tracking this gadget as an pageview
 _IG_Analytics("UA-XXXXXX-X", "/example_gadget");
 // Track this click as an pageview
 <input onclick="_IG_Analytics('UA-XXXXXX-X', '/example_gadget/click')" type=button value="This click is counted by Analytics"/>
</script>
]]>
</Content>
 
</Module>