[bknr-cvs] hans changed trunk/projects/quickhoney/website/static/javascript.js

BKNR Commits bknr at bknr.net
Sat Sep 6 20:05:05 UTC 2008


Revision: 3825
Author: hans
URL: http://bknr.net/trac/changeset/3825

Track internal URLs with GA.

U   trunk/projects/quickhoney/website/static/javascript.js

Modified: trunk/projects/quickhoney/website/static/javascript.js
===================================================================
--- trunk/projects/quickhoney/website/static/javascript.js	2008-09-06 19:56:47 UTC (rev 3824)
+++ trunk/projects/quickhoney/website/static/javascript.js	2008-09-06 20:05:05 UTC (rev 3825)
@@ -1159,6 +1159,12 @@
 function poll_path() {
     var url_path = (document.location.href + "#").split("#")[1];
     if (url_path && (url_path != document.current_path)) {
+        try {
+            pageTracker._trackPageview(document.location.href);
+        }
+        error (e) {
+            log("tracking failed: " + e);
+        }
         jump_to(url_path);
     }
     




More information about the Bknr-cvs mailing list