src/hg/lib/googleAnalytics.c 1.5
1.5 2010/04/01 05:53:37 markd
Allow empty key to analyticsKey to disable google analytics (for overriding when one hg.conf
includes another).
Index: src/hg/lib/googleAnalytics.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/googleAnalytics.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -B -U 4 -r1.4 -r1.5
--- src/hg/lib/googleAnalytics.c 16 May 2008 19:04:40 -0000 1.4
+++ src/hg/lib/googleAnalytics.c 1 Apr 2010 05:53:37 -0000 1.5
@@ -16,10 +16,10 @@
done = TRUE; /* do not repeat this by mistake */
char *analyticsKey = cfgOption("analyticsKey");
-/* if config is missing, nothing happens here */
-if (NULL == analyticsKey)
+/* if config is missing or empty, nothing happens here */
+if (isEmpty(analyticsKey))
return;
hPrintf("\n<script type=\"text/javascript\">\n"