Project

General

Profile

Actions

Evolution #787

closed

Plugins Piwik

Added by Ktulu BUNTU over 9 years ago. Updated almost 6 years ago.

Status:
Fermé
Priority:
Normal
Category:
Core
Target version:
-
Start date:
02/03/2014
Due date:
% Done:

0%

Estimated time:

Description

Plugin d'integration des statistiques galette vers piwik

Actions #1

Updated by Johan Cwiklinski over 9 years ago

  • Assignee deleted (Johan Cwiklinski)
  • Target version deleted (0.8.0)
Actions #2

Updated by Johan Cwiklinski over 9 years ago

  • Tracker changed from Evolution to Souhaits
Actions #3

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.

Actions #4

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 :)

Actions #5

Updated by Johan Cwiklinski about 9 years ago

  • Status changed from Commentaire to Rejeté
Actions #6

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
Actions #7

Updated by Johan Cwiklinski almost 6 years ago

  • Status changed from In Progress to Résolu
  • % Done changed from 0 to 100
Actions #8

Updated by Johan Cwiklinski almost 6 years ago

  • Status changed from Résolu to Fermé
  • % Done changed from 100 to 0
Actions

Also available in: Atom PDF