Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Add username in piwik tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-sl-eng committed Aug 2, 2012
1 parent dcd4670 commit 3a6b9d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zanata-war/src/main/webapp/WEB-INF/layout/template.xhtml
Expand Up @@ -122,6 +122,7 @@
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", #{applicationConfiguration.piwikIdSite});
piwikTracker.setCustomVariable (1, "username", "#{identity.username}", "visit" ) ;
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
Expand Down

0 comments on commit 3a6b9d6

Please sign in to comment.