Permalink
Browse files

Layout analytics

  • Loading branch information...
1 parent c1e73d0 commit 9624413662f89e8b2f614fb0aadef7d0b43e1a77 @remy remy committed Apr 30, 2012
Showing with 12 additions and 2 deletions.
  1. +12 −2 js/chrome/analytics.js
View
14 js/chrome/analytics.js
@@ -7,7 +7,7 @@ var analytics = {
},
clone: function () {
window._gaq && _gaq.push(['_trackPageview', '/clone' + window.location.pathname]);
- }
+ },
saveTemplte: function () {
window._gaq && _gaq.push(['_trackPageview', '/save-template']);
},
@@ -46,11 +46,21 @@ var analytics = {
},
loadGist: function (id) {
window._gaq && _gaq.push(['_trackPageview', '/gist/' + id]);
+ },
+ layout: function (panelsVisible) {
+ var layout = [], panel = '';
+
+ if (window._gaq) {
+ for (panel in panelsVisible) {
+ layout.push(panel + ':' + panelsVisible[panel]);
+ }
+ _gaq.push(['_trackPageview', '/layout/' + layout.join('/')]);
+ }
}
};
/* TODO
- run js
- run console
-
+- final splitter and panel config & positions!!!
*/

0 comments on commit 9624413

Please sign in to comment.