Skip to content

Add Apache Analytics to historical docs #5

@jamesfredley

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions