You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2025/07/01 03:03:06 UTC

(grails-forge-ui) 01/01: Add matomo apache analytics

This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a commit to branch matomo-apache-analytics
in repository https://gitbox.apache.org/repos/asf/grails-forge-ui.git

commit 958f13b72c590d629add03492ddbaa26efc4d541
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Mon Jun 30 23:03:02 2025 -0400

    Add matomo apache analytics
---
 app/launch/public/index.html | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/app/launch/public/index.html b/app/launch/public/index.html
index f790768..7b42e3a 100755
--- a/app/launch/public/index.html
+++ b/app/launch/public/index.html
@@ -39,6 +39,23 @@
       Learn how to configure a non-root public URL by running `npm run build`.
     -->
     <title>Grails Application Forge</title>
+    <!-- Matomo -->
+    <script>
+      var _paq = window._paq = window._paq || [];
+      /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+      _paq.push(["setDoNotTrack", true]);
+      _paq.push(["disableCookies"]);
+      _paq.push(['trackPageView']);
+      _paq.push(['enableLinkTracking']);
+      (function() {
+        var u="https://analytics.apache.org/";
+        _paq.push(['setTrackerUrl', u+'matomo.php']);
+        _paq.push(['setSiteId', '79']);
+        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
+        g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
+      })();
+    </script>
+    <!-- End Matomo Code -->
   </head>
   <body>
     <noscript>You need to enable JavaScript to run this app.</noscript>