Changeset 306 in t29-www


Ignore:
Timestamp:
Oct 9, 2012, 6:26:05 PM (7 years ago)
Author:
sven
Message:

Support für Piwik-Statistiken in Javascript und Template eingebaut.
Piwik (ähnlich Google Analytics) kann den Benutzer verfolgen ("tracken") und damit festestellen, wie lange er auf einer Seite war, welche Links er angeklickt hat, wie groß sein Bildschirm war, usw.

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • lib/messages.php

    r301 r306  
    155155                                                                                '&copy; technikum29. <a href="/en/contact.php#image-copyright">Licensing terms</a>',
    156156                                                                        ),
     157                                                                       
     158                // piwik logging settings
     159                'js-piwik-noscript-imgsrc' => '/logs/piwik/piwik.php?idsite=1',
     160                'js-piwik-url-prefix' => '/logs/piwik/',
     161                'js-piwik-siteid' => '1',
    157162        );
    158163}
  • lib/template.php

    r301 r306  
    307307</div><!-- end of div id="footer-background-container" helper -->
    308308
    309   <!-- JavaScript at the bottom for fast page loading -->
     309  <? /* JavaScript at the bottom for fast page loading */ ?>
    310310  <script src="/shared/js-v6/libs/jquery-1.7.2.min.js"></script>
    311311  <script>window.t29={'conf': <?php print json_encode($this->javascript_config); ?>};</script>
     
    313313        $this->print_ressourceloader_links('js', '  <script src="%s"></script>'.PHP_EOL);
    314314  ?>
     315  <? /* Piwik Noscript, Script selbst wird asynchron im JS-Bereich aufgerufen */ ?>
     316  <noscript><img src="<? $p("js-piwik-noscript-imgsrc"); ?>" alt="" /></noscript>
    315317</body>
    316318</html>
  • shared/js-v6/modules/startup.js

    r277 r306  
    2626        // needs prefs
    2727        'menu',
     28        'piwik',
    2829       
    2930        // ggf verbaendelt mit menu wg scroll lock
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License