1 <script type="text/javascript">
3 (function(){ var u="<%= request.protocol %><%= PIWIK_LOCATION %>/";
4 _paq.push(['setSiteId', <%= PIWIK_SITE %>]);
5 _paq.push(['setTrackerUrl', u+'piwik.php']);
6 _paq.push(['trackPageView']);
7 _paq.push(['enableLinkTracking']);
8 <% if flash[:piwik_goal] -%>
9 _paq.push(['setSiteId', <%= flash[:piwik_goal] %>);
11 var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=u+'piwik.js';
12 s.parentNode.insertBefore(g,s); })();
14 <noscript><p><img src="<%= request.protocol %><%= PIWIK_LOCATION %>/piwik.php?idsite=<%= PIWIK_SITE %>" style="border:0" alt="" /></p></noscript>