Hi Apple,
You are rights, the place you inserted just before the line
echo "</body></html>\n";
I assume that your tracking code as below:
<script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker("http://URL_1/piwik.php", 1);
piwikTracker.trackPageView();
var piwik2 = Piwik.getTracker("http://URL_2/piwik.php", 4);
piwik2.trackPageView();
} catch( err ) {}
</script>
But you cannot copy and paste into the footer.inc directly, it should be something like below:
echo '<script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker("http://URL_1/piwik.php", 1);
piwikTracker.trackPageView();
var piwik2 = Piwik.getTracker("http://URL_2/piwik.php", 4);
piwik2.trackPageView();
} catch( err ) {}
</script> ';
echo "</body></html>\n";
Note:
You must place the echo ' javascript here and end with '; Please try it.
Cheers,
tclim