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

BKNR Commits bknr at bknr.net
Mon Sep 8 08:07:07 UTC 2008


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

Only send path information to GA, not the full URL

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-07 21:47:13 UTC (rev 3835)
+++ trunk/projects/quickhoney/website/static/javascript.js	2008-09-08 08:07:06 UTC (rev 3836)
@@ -1199,7 +1199,7 @@
     var url_path = (document.location.href + "#").split("#")[1];
     if (url_path && (url_path != document.current_path)) {
         try {
-            pageTracker._trackPageview(document.location.href.replace("#", "/"));
+            pageTracker._trackPageview(document.location.href.replace("#", "/").replace(/^[^\/]+:\/\/[^\/]+/, ""));
         }
         catch (e) {
             log("tracking failed: " + e);




More information about the Bknr-cvs mailing list