wrapping JavaScript tracking code
<p>I have following tracking code from Piwik.</p>

<pre><code>&lt;!-- Tracking Code --&gt; 
&lt;script type="text/javascript"&gt;
var pkBaseURL = (("https:" == document.location.protocol) ? "https://example.com/" : "http://example.com/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
&lt;/script&gt;&lt;script type="text/javascript"&gt;
try {
  var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 29);
  piwikTracker.trackPageView();
  piwikTracker.enableLinkTracking();
} catch( err ) {}
&lt;/script&gt;&lt;noscript&gt;&lt;p&gt;&lt;img src="http://example.com/piwik.php?idsite=29" style="border:0" alt="" /&gt;&lt;/p&gt;&lt;/noscript&gt;
&lt;!-- Tracking Code --&gt;
</code></pre>

<p>I want to hide following code, so I think I can put this code in some js file, and load it using following code.</p>

<p>But I don't know how can I do it. Help required here.</p>

<p>Secondly, I need to change site id (in above example, is 29), which will be different for different site.</p>

<p>How can I pass site-id to custom file that I will make, and execute above code.</p>
