apache / apache/grails-website

Add Apache Analytics to historical docs

Open
#5 5 comments 0 reactions 1 assignee Claimed by @GaneshPatil7517 View on GitHub
Dominant language
No language data
Stars
6
Forks
11
PR merge metrics
No merged PRs in 30d

Description

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:

```


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);
})();


```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.