Skip to content

Commit

Permalink
Merge pull request #85 from nicolasmoreau/master
Browse files Browse the repository at this point in the history
add piwik code in main page
  • Loading branch information
nicolasmoreau authored Jul 16, 2018
2 parents dd22984 + 80ac8d7 commit 37e486e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions portal.war/src/main/webapp/layout/template.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,23 @@
<a:loadStyle src="/stylesheet/theme.css" />
<a:loadStyle src="/stylesheet/style.css" />
<ui:insert name="head" />

<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
// tracker methods like "setCustomDimension" should be called before "trackPageView"
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.obspm.fr/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '33']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->

<script language="JavaScript">
window.history.forward();
</script>
Expand Down

0 comments on commit 37e486e

Please sign in to comment.