1 if (OSM.PIWIK_LOCATION && OSM.PIWIK_SITE) {
2 $(document).ready(function () {
3 var base = document.location.protocol + "//" + OSM.PIWIK_LOCATION + "/";
6 url: base + "piwik.js",
10 var piwikTracker = Piwik.getTracker(base + "piwik.php", OSM.PIWIK_SITE);
12 piwikTracker.trackPageView();
13 piwikTracker.enableLinkTracking();
15 $("meta[name=piwik-goal]").each(function () {
16 piwikTracker.trackGoal($(this).attr("content"));