From d4dc39320346cac78aaf19001b0b61594d6df34b Mon Sep 17 00:00:00 2001 From: Sergey Panteleev Date: Mon, 2 Sep 2024 12:39:23 +0300 Subject: [PATCH 1/3] Add analytics --- include/header.inc | 17 +++++++++++++++++ privacy.php | 8 +++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/include/header.inc b/include/header.inc index 26a13846f0..c05f7a9576 100644 --- a/include/header.inc +++ b/include/header.inc @@ -91,6 +91,23 @@ if (!isset($config["languages"])) { + + + diff --git a/privacy.php b/privacy.php index 7a912bb479..ce1b25f4e2 100644 --- a/privacy.php +++ b/privacy.php @@ -31,9 +31,15 @@

Cookies

php.net uses cookies to keep track of user preferences. Unless - you login on the site, the cookies will not be used to store personal information and + you login on the site, the cookies will not be used to store personal information, and we do not give away the information from the cookies.

+

+ We also use self-hosted analytics service to improve popular sections of the documentation, + and never share user data with third parties. + You may deactivate or restrict the transmission of cookies by changing the settings of your web browser. + Cookies that are already stored may be deleted at any time. +

Date: Tue, 10 Dec 2024 09:59:46 +0300 Subject: [PATCH 2/3] Update include/header.inc --- include/header.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/header.inc b/include/header.inc index c05f7a9576..71bb58ef4e 100644 --- a/include/header.inc +++ b/include/header.inc @@ -100,7 +100,7 @@ if (!isset($config["languages"])) { _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { - var u="//analytics.php.net/"; + var u="https://analytics.php.net/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '1']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; From 7a0c489edf7830b6144f282c2b94489e6bbeeaad Mon Sep 17 00:00:00 2001 From: Sergey Panteleev Date: Tue, 10 Dec 2024 10:14:47 +0300 Subject: [PATCH 3/3] Use analytics only for main website --- include/header.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/header.inc b/include/header.inc index 71bb58ef4e..53461939c7 100644 --- a/include/header.inc +++ b/include/header.inc @@ -91,6 +91,7 @@ if (!isset($config["languages"])) { + +