title: Add Javascript to wordpress for every page except admin
body: <p>Looking for help on inserting this code via functions.php or anywhere else in Wordpress. I tried this and it does not seem work... I cannot see it in the source code</p>
  
  <pre><code>&lt;?php
   function add_this_script_footer(){ ?&gt;
      &lt;script type="text/javascript"&gt;
          var _paq = _paq || [];
          _paq.push(["trackPageView"]);
          _paq.push(["enableLinkTracking"]);
  
  
          (function() {
          var u=(("https:" == document.location.protocol) ? "https" : "http") + "://stats.domain.com/statsapp/";
          _paq.push(["setTrackerUrl", u+"piwik.php"]);
          _paq.push(["setSiteId", "445"]);
          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"; s.parentNode.insertBefore(g,s);
          })();
      &lt;/script&gt;    &lt;?php }
  
  add_action('wp_footer', 'add_this_script_footer'); ?&gt;
  </code></pre>
  
  <p>Thank-you for your help.</p>
  
  <p>`       </p>