]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Rename piwik to matomo and merge configuration into settings
[rails.git] / app / assets / javascripts / index.js
index f0b96f59fa95d28aa273d8f0362ae290bdfa565d..6d379ca8c32caa8b038af3fa7c7cb4fa096cca13 100644 (file)
@@ -212,13 +212,13 @@ $(document).ready(function () {
     }
   });
 
-  if (OSM.PIWIK) {
+  if (OSM.MATOMO) {
     map.on("layeradd", function (e) {
       if (e.layer.options) {
-        var goal = OSM.PIWIK.goals[e.layer.options.keyid];
+        var goal = OSM.MATOMO.goals[e.layer.options.keyid];
 
         if (goal) {
-          $("body").trigger("piwikgoal", goal);
+          $("body").trigger("matomogoal", goal);
         }
       }
     });