[livejournal] r19416: LJSUP-9206: Fix omniture statistics
Committer: amyshkin
LJSUP-9206: Fix omniture statisticsU trunk/cgi-bin/LJ/PageStats.pm U trunk/htdocs/js/livejournal.js
Modified: trunk/cgi-bin/LJ/PageStats.pm
===================================================================
--- trunk/cgi-bin/LJ/PageStats.pm 2011-07-01 07:48:38 UTC (rev 19415)
+++ trunk/cgi-bin/LJ/PageStats.pm 2011-07-01 09:21:35 UTC (rev 19416)
@@ -66,12 +66,13 @@
return 0 if grep { LJ::Request->uri =~ /$_/ } @{ $LJ::PAGESTATS_EXCLUDE{'uripath'} };
return 0 if grep { LJ::Request->notes('codepath') eq $_ } @{ $LJ::PAGESTATS_EXCLUDE{'codepath'} };
+ # Turned off. AMyshkin
# See if their ljuniq cookie has the PageStats flag
- if ($BML::COOKIE{'ljuniq'} =~ /[a-zA-Z0-9]{15}:\d+:pgstats([01])/) {
- return 0 unless $1; # Don't serve PageStats if it is "pgstats:0"
- } else {
- return 0; # They don't have it set this request, but will for the next one
- }
+# if ($BML::COOKIE{'ljuniq'} =~ /[a-zA-Z0-9]{15}:\d+:pgstats([01])/) {
+# return 0 unless $1; # Don't serve PageStats if it is "pgstats:0"
+# } else {
+# return 0; # They don't have it set this request, but will for the next one
+# }
return 1;
}
Modified: trunk/htdocs/js/livejournal.js
===================================================================
--- trunk/htdocs/js/livejournal.js 2011-07-01 07:48:38 UTC (rev 19415)
+++ trunk/htdocs/js/livejournal.js 2011-07-01 09:21:35 UTC (rev 19416)
@@ -36,7 +36,8 @@
LiveJournal.initInboxUpdate();
//check ljuniq cookie and create if needed
- LiveJournal.checkLjUniq();
+// Now called from PageStats/Omniture.pm
+// LiveJournal.checkLjUniq();
// run other hooks
LiveJournal.run_hook("page_load");
