Skip to content

Add Apache Analytics to historical docs #5

Open

Description

@jamesfredley

Some historical documentation is missing analytics. It did not have Google Analytics, which was replaced with Apache Analytics.

Locate html pages with missing analytics and bulk add it to those pages.

Examples:

https://grails.apache.org/docs/snapshot/grails-data/
https://grails.apache.org/docs/snapshot/api/
https://grails.apache.org/docs/snapshot/grails-data/api/

Apache Analytics Code:

        <!-- 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 -->

Activity

  1. jamesfredley commented on Nov 4, 2025

    @jamesfredley
    ContributorAuthor

    Most of the html files have been updated using https://github.com/apache/grails-website/blob/asf-site-production/AddMatomoAnalytics.groovy. This will need to be rerun a final time after all new published files have been updated.

  2. GaneshPatil7517 commented on Jan 2, 2026

    @GaneshPatil7517

    @jamesfredley can you assign this issue to me....

  3. jamesfredley commented on Jan 2, 2026

    @jamesfredley
    ContributorAuthor

    @GaneshPatil7517 Thank you.

    apache/grails-core#15133 should be addressed first and then https://github.com/apache/grails-website/blob/asf-site-production/AddMatomoAnalytics.groovy can be run, hopefully, a final time on this repo. The last time I reran AddMatomoAnalytics.groovy was e1f801fcdc34

  4. moved this to In Progress in Apache Grailson Jan 2, 2026
  5. added a commit that references this issue on Jan 2, 2026
    093e064
  6. GaneshPatil7517 commented on Jan 2, 2026

    @GaneshPatil7517

    hey @jamesfredley see this: #12

  7. jamesfredley commented on Jan 14, 2026

    @jamesfredley
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions