Evolution #787
closedPlugins Piwik
0%
Description
Plugin d'integration des statistiques galette vers piwik
Updated by Johan Cwiklinski over 9 years ago
- Assignee deleted (
Johan Cwiklinski) - Target version deleted (
0.8.0)
Updated by Johan Cwiklinski over 9 years ago
- Tracker changed from Evolution to Souhaits
Updated by Johan Cwiklinski over 9 years ago
- Status changed from Nouveau to Commentaire
Il est peut-être possible d'intégrer ça assez facilement (et ce serait compatible avec les système similaires, tels que google analytics et consorts). N'utilisant pas de système de ce type, je ne suis pas en mesure de tester ; et je ne pourrai intégrer la fonctionnalité qu'une fois que le fonctionnement aura été validé.
Il faut modifier le fichier templates/default/common_header.tpl
de la façon suivante :
diff --git a/galette/templates/default/common_header.tpl b/galette/templates/default/common_header.tpl
index 8f09b01..fdbead9 100644
--- a/galette/templates/default/common_header.tpl
+++ b/galette/templates/default/common_header.tpl
@@ -29,6 +29,10 @@ Just put a {include file='common_header.tpl'} into the head tag.
{* Tooltips can be used everywhere *}
<script type="text/javascript" src="{$jquery_dir}jquery-ui-{$jquery_ui_version}/jquery.ui.position.min.js"></script>
<script type="text/javascript" src="{$jquery_dir}jquery-ui-{$jquery_ui_version}/jquery.ui.tooltip.min.js"></script>
+ {assign var="localjstracking" value="`$template_subdir`tracking.js"}
+ {if file_exists($localjstracking)}
+ <script type="text/javascript" src="{$localjstracking}"></script>
+ {/if}
<meta name="viewport" content="width=device-width" />
{* UI accordion is used for main menu ; we need the CSS *}
<link rel="stylesheet" type="text/css" href="{$template_subdir}jquery-ui/jquery-ui-{$jquery_ui_version}.custom.css" />
Il faut ensuite créer un fichier tracking.js
dans le dossier templates/default
, qui contiendra le code Javascript (http://developer.piwik.org/api-reference/tracking-javascript - tout ce qui est compris entre <script>
et </script>
).
Normalement, ça devrait suffire.
Updated by Johan Cwiklinski over 9 years ago
Ping ? Si personne ne teste la solution proposée, je ferme la demande et je passe à autre chose :)
Updated by Johan Cwiklinski about 9 years ago
- Status changed from Commentaire to Rejeté
Updated by Johan Cwiklinski almost 6 years ago
- Tracker changed from Souhaits to Evolution
- Category changed from Plugins to Core
- Status changed from Rejeté to In Progress
- Assignee set to Johan Cwiklinski
Updated by Johan Cwiklinski almost 6 years ago
- Status changed from In Progress to Résolu
- % Done changed from 0 to 100
Appliqué par commit b63a127413f18726edd76787ba5f0bd6d0ee14b8.
Updated by Johan Cwiklinski almost 6 years ago
- Status changed from Résolu to Fermé
- % Done changed from 100 to 0