diff options
author | polo <ordipolo@gmx.fr> | 2024-01-12 18:49:17 +0100 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2024-01-12 18:49:17 +0100 |
commit | 98ba95dafddda83eaaec1eedfda74b12dd7a39e4 (patch) | |
tree | c9fc35c91ab90386407eea197eae7e0ebfb28782 | |
parent | aec4f60a6f3f8087e86a2652e6d6164b4b99ba37 (diff) | |
download | ordipolo-98ba95dafddda83eaaec1eedfda74b12dd7a39e4.zip |
-rw-r--r-- | contact.php | 5 | ||||
-rw-r--r-- | index.php | 5 | ||||
-rw-r--r-- | infos.php | 5 | ||||
-rw-r--r-- | kiffe.php | 5 | ||||
-rw-r--r-- | matomo.php | 40 |
5 files changed, 52 insertions, 8 deletions
diff --git a/contact.php b/contact.php index abf2732..c623b59 100644 --- a/contact.php +++ b/contact.php | |||
@@ -35,13 +35,14 @@ else | |||
35 | article{margin-bottom: 20px;} | 35 | article{margin-bottom: 20px;} |
36 | @media screen and (max-width: 750px){aside{display: none;}} | 36 | @media screen and (max-width: 750px){aside{display: none;}} |
37 | </style> | 37 | </style> |
38 | <?php include("matomo.php"); ?> | ||
38 | </head> | 39 | </head> |
39 | 40 | ||
40 | <body> | 41 | <body> |
41 | <div id="bloc_page"> | 42 | <div id="bloc_page"> |
42 | <header> | 43 | <header> |
43 | <?php $actuelle = "contact"; ?> | 44 | <?php $actuelle = "contact"; ?> |
44 | <?php include ("menu.php"); ?> | 45 | <?php include("menu.php"); ?> |
45 | 46 | ||
46 | <p><a href="index.php"> | 47 | <p><a href="index.php"> |
47 | <img id="logohaut" src="images/logo.png" alt="ordipolo"> | 48 | <img id="logohaut" src="images/logo.png" alt="ordipolo"> |
@@ -96,6 +97,6 @@ else | |||
96 | </article> | 97 | </article> |
97 | </section> | 98 | </section> |
98 | </div> | 99 | </div> |
99 | <script src="detecteur.js"></script> | 100 | <!--<script src="detecteur.js"></script>--> |
100 | </body> | 101 | </body> |
101 | </html> | 102 | </html> |
@@ -8,6 +8,7 @@ | |||
8 | <link rel="stylesheet" href="ordipolo.css"> | 8 | <link rel="stylesheet" href="ordipolo.css"> |
9 | <meta name="description" content="Ordipolo assistance informatique à domicile et réparation d'ordinateurs windows et linux. Services à la personne sur Quimper 29."> | 9 | <meta name="description" content="Ordipolo assistance informatique à domicile et réparation d'ordinateurs windows et linux. Services à la personne sur Quimper 29."> |
10 | <meta name="viewport" content="width=device-width"> <!-- empêche certains navigateurs de faire un dézoom --> | 10 | <meta name="viewport" content="width=device-width"> <!-- empêche certains navigateurs de faire un dézoom --> |
11 | <?php include("matomo.php"); ?> | ||
11 | </head> | 12 | </head> |
12 | 13 | ||
13 | <body> | 14 | <body> |
@@ -15,7 +16,7 @@ | |||
15 | <?php /* echo $_SERVER['HTTP_REFERER'] . "\n"; */ ?> | 16 | <?php /* echo $_SERVER['HTTP_REFERER'] . "\n"; */ ?> |
16 | <header> | 17 | <header> |
17 | <?php $actuelle = "accueil"; ?> | 18 | <?php $actuelle = "accueil"; ?> |
18 | <?php include ("menu.php"); ?> | 19 | <?php include("menu.php"); ?> |
19 | 20 | ||
20 | <div> | 21 | <div> |
21 | <img id="logohaut" src="images/logo.png" alt="ordipolo dépannage informatique Quimper"> | 22 | <img id="logohaut" src="images/logo.png" alt="ordipolo dépannage informatique Quimper"> |
@@ -242,6 +243,6 @@ Maintenance et sécurité : | |||
242 | <h1><a href="#bloc_page">Remonter en haut de la page.</a></h1> | 243 | <h1><a href="#bloc_page">Remonter en haut de la page.</a></h1> |
243 | </footer> | 244 | </footer> |
244 | </div> | 245 | </div> |
245 | <script src="detecteur.js"></script> | 246 | <!--<script src="detecteur.js"></script>--> |
246 | </body> | 247 | </body> |
247 | </html> | 248 | </html> |
@@ -8,13 +8,14 @@ | |||
8 | <link rel="stylesheet" href="ordipolo.css"> | 8 | <link rel="stylesheet" href="ordipolo.css"> |
9 | <meta name="description" content="à propos de moi"> | 9 | <meta name="description" content="à propos de moi"> |
10 | <meta name="viewport" content="width=device-width"> | 10 | <meta name="viewport" content="width=device-width"> |
11 | <?php include("matomo.php"); ?> | ||
11 | </head> | 12 | </head> |
12 | 13 | ||
13 | <body> | 14 | <body> |
14 | <div id="bloc_page"> | 15 | <div id="bloc_page"> |
15 | <header> | 16 | <header> |
16 | <?php $actuelle = "infos"; ?> | 17 | <?php $actuelle = "infos"; ?> |
17 | <?php include ("menu.php"); ?> | 18 | <?php include("menu.php"); ?> |
18 | 19 | ||
19 | <p><a href="index.php"> | 20 | <p><a href="index.php"> |
20 | <img id="logohaut" src="images/logo.png" alt="ordipolo"> | 21 | <img id="logohaut" src="images/logo.png" alt="ordipolo"> |
@@ -67,6 +68,6 @@ | |||
67 | <h1><a href="#bloc_page" >Remonter en haut de la page.</a></h1> | 68 | <h1><a href="#bloc_page" >Remonter en haut de la page.</a></h1> |
68 | </footer> | 69 | </footer> |
69 | </div> | 70 | </div> |
70 | <script src="detecteur.js"></script> | 71 | <!--<script src="detecteur.js"></script>--> |
71 | </body> | 72 | </body> |
72 | </html> | 73 | </html> |
@@ -21,13 +21,14 @@ | |||
21 | } | 21 | } |
22 | } | 22 | } |
23 | </style> | 23 | </style> |
24 | <?php include("matomo.php"); ?> | ||
24 | </head> | 25 | </head> |
25 | 26 | ||
26 | <body> | 27 | <body> |
27 | <div id="bloc_page" > | 28 | <div id="bloc_page" > |
28 | <header> | 29 | <header> |
29 | <?php $actuelle = "kiffe"; ?> | 30 | <?php $actuelle = "kiffe"; ?> |
30 | <?php include ("menu.php"); ?> | 31 | <?php include("menu.php"); ?> |
31 | 32 | ||
32 | <p><a href="index.php" > | 33 | <p><a href="index.php" > |
33 | <img id="logohaut" src="images/logo.png" alt="ordipolo"> | 34 | <img id="logohaut" src="images/logo.png" alt="ordipolo"> |
@@ -90,6 +91,6 @@ | |||
90 | <h1><a href="#bloc_page" >Remonter en haut de la page.</a></h1> | 91 | <h1><a href="#bloc_page" >Remonter en haut de la page.</a></h1> |
91 | </footer> | 92 | </footer> |
92 | </div> | 93 | </div> |
93 | <script src="detecteur.js"></script> | 94 | <!--<script src="detecteur.js"></script>--> |
94 | </body> | 95 | </body> |
95 | </html> | 96 | </html> |
diff --git a/matomo.php b/matomo.php new file mode 100644 index 0000000..e746361 --- /dev/null +++ b/matomo.php | |||
@@ -0,0 +1,40 @@ | |||
1 | <?php | ||
2 | $mode = 'prod'; | ||
3 | |||
4 | if($mode == 'dev') | ||
5 | { | ||
6 | $cookies = 'localhost'; | ||
7 | $domain = 'localhost/ordipolo'; | ||
8 | $server = 'localhost/matomo'; | ||
9 | } | ||
10 | elseif($mode == 'prod') | ||
11 | { | ||
12 | $cookies = 'ordipolo.fr'; | ||
13 | $domain = 'ordipolo.fr'; | ||
14 | $server = 'matomo.ordipolo.fr'; | ||
15 | } | ||
16 | else | ||
17 | { | ||
18 | echo "mode incorrect dans le fichier matomo.php"; | ||
19 | } | ||
20 | ?> | ||
21 | |||
22 | <!-- Matomo --> | ||
23 | <script> | ||
24 | var _paq = window._paq = window._paq || []; | ||
25 | /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ | ||
26 | _paq.push(["setCookieDomain", "*.<?= $cookies ?>"]); | ||
27 | _paq.push(["setDomains", ["*.<?= $domain ?>"]]); | ||
28 | _paq.push(["disableCookies"]); | ||
29 | _paq.push(['trackPageView']); | ||
30 | _paq.push(['enableLinkTracking']); | ||
31 | (function() { | ||
32 | var u="//<?= $server ?>/"; | ||
33 | _paq.push(['setTrackerUrl', u+'matomo.php']); | ||
34 | _paq.push(['setSiteId', '1']); | ||
35 | var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; | ||
36 | g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); | ||
37 | })(); | ||
38 | </script> | ||
39 | <noscript><p><img referrerpolicy="no-referrer-when-downgrade" src="//<?= $server ?>/matomo.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript> | ||
40 | <!-- End Matomo Code --> | ||