public
Homepage: http://www.inoutopen.com
Clone URL: git://github.com/jwulff/in_out_open.git
Search Repo:
hopefully fix analytics custom var
jwulff (author)
Fri Apr 25 10:47:48 -0700 2008
commit  b310a834650be3b21ab284f9a20d4a3ba7bdbe11
tree    ac2bdc4790fd0a78764c2d80bbebc08df7a78264
parent  db50801c450f58c187847c79e4eeab1a4851986d
...
4
5
6
7
8
9
10
11
 
 
 
 
12
13
...
4
5
6
 
 
 
7
8
9
10
11
12
13
14
0
@@ -4,9 +4,10 @@ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.
0
 </script>
0
 <script type="text/javascript">
0
 var pageTracker = _gat._getTracker("UA-140624-13");
0
-<% if User.active -%>
0
-pageTracker._setVar('<%= User.active.name %>');
0
-<% end -%>
0
 pageTracker._initData();
0
 pageTracker._trackPageview();
0
+<% if User.active -%>
0
+pageTracker._setVar('<%= User.active.name %>');
0
+<% else -%>
0
+pageTracker._setVar('anonymous');
0
 </script>
0
\ No newline at end of file

Comments

    No one has commented yet.