Note
Add IPs of Webmasters of a certain site to the exclude list that site.
Remember to replace the ${FQDN}
with your fully qualified domain name (FQDN
), e.g. www.bfh.ch
, and ${SITEID}
with the corresponding piwik site id from the table below, e.g. 1
for www.bfh.ch
.
Insert the following code as the first thing in your html page, right after the <body>
tag.
<noscript>
<div style="display: none;">
<img src="https://web-statistics.bfh.ch/${FQDN}/tracker.php?idsite=${SITEID}&rec=1" style="border:0" alt="" />
</div>
</noscript>
Insert the following code as the last thing in your html page, right before the </body>
tag.
<script type="text/javascript">
(function() {
function async_load(){
var s = document.createElement('script');
var u = (("https:" == document.location.protocol) ? "https://web-statistics.bfh.ch/" : "http://web-statistics.bfh.ch/");
s.type = 'text/javascript';
s.async = true;
s.src = u+'${FQDN}/tracker.js';
var x = document.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s, x);
}
window.attachEvent ? window.attachEvent('onload', async_load) : window.addEventListener('load', async_load, false);
})();
</script>
New websites can be setup to be tracked in Piwik by Daniel, Philipp, and Derek as they have the proper permissions to do the following:
sysadmin
(password in passwords.its.bfh.ch.Settings / Manage / Websites / Add a new website
to add a new website and add it.TEMPLATE
directory to your new websites name (beware of the symlinks inside, use cp -a
).@SITE_ID@
with the site id integer you got when you added the website in the Piwik webgui.