Skip to content
This repository
Browse code

Add piwik custom variables to diagnose if cached pages are used

  • Loading branch information...
commit a69a64955f949b8233dd0a143085c3489138413b 1 parent f8140bf
Cyril Bonté authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  templates/template.html
2  templates/template.html
@@ -117,6 +117,8 @@
117 117 </script><script type="text/javascript">
118 118 try {
119 119 var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 4);
  120 +piwikTracker.setCustomVariable (1, 'HaproxyVersion', '${headers['version']}', 'page');
  121 +piwikTracker.setCustomVariable (2, 'HaproxyDconvVersion', '${version}', 'page');
120 122 piwikTracker.trackPageView();
121 123 piwikTracker.enableLinkTracking();
122 124 } catch( err ) {}

0 comments on commit a69a649

Please sign in to comment.
Something went wrong with that request. Please try again.