File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,25 @@ if (!isset($config["languages"])) {
91
91
92
92
<?php if (isset ($ config ['meta_tags ' ])) { echo $ config ['meta_tags ' ]; } ?>
93
93
94
+ <?php if (is_primary_site ()) { ?>
95
+ <!-- Matomo -->
96
+ <script>
97
+ var _paq = window._paq = window._paq || [];
98
+ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
99
+ _paq.push(["setDoNotTrack", true]);
100
+ _paq.push(["disableCookies"]);
101
+ _paq.push(['trackPageView']);
102
+ _paq.push(['enableLinkTracking']);
103
+ (function() {
104
+ var u="https://analytics.php.net/";
105
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
106
+ _paq.push(['setSiteId', '1']);
107
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
108
+ g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
109
+ })();
110
+ </script>
111
+ <!-- End Matomo Code -->
112
+ <?php } ?>
94
113
</head>
95
114
<body class="<?php echo $ curr ; ?> <?php echo $ classes ; ?> ">
96
115
Original file line number Diff line number Diff line change 31
31
<h2>Cookies</h2>
32
32
<p>
33
33
php.net uses cookies to keep track of <a href="/my.php">user preferences</a>. Unless
34
- you login on the site, the cookies will not be used to store personal information and
34
+ you login on the site, the cookies will not be used to store personal information, and
35
35
we do not give away the information from the cookies.
36
36
</p>
37
+ <p>
38
+ We also use self-hosted analytics service to improve popular sections of the documentation,
39
+ and never share user data with third parties.
40
+ You may deactivate or restrict the transmission of cookies by changing the settings of your web browser.
41
+ Cookies that are already stored may be deleted at any time.
42
+ </p>
37
43
38
44
<?php
39
45
site_footer ();
You can’t perform that action at this time.
0 commit comments