Author: kake Date: 2012-05-13 10:20:51 +0100 (Sun, 13 May 2012) New Revision: 1402
Modified: trunk/templates/footer.tt Log: Add try/catch thing to stop error for people who have Google Analytics blocked.
Modified: trunk/templates/footer.tt =================================================================== --- trunk/templates/footer.tt 2012-05-13 08:19:49 UTC (rev 1401) +++ trunk/templates/footer.tt 2012-05-13 09:20:51 UTC (rev 1402) @@ -55,8 +55,10 @@ </script>
<script type="text/javascript"> - var pageTracker = _gat._getTracker("[% config.google_analytics_key %]"); - pageTracker._trackPageview(); + try { + var pageTracker = _gat._getTracker("[% config.google_analytics_key %]"); + pageTracker._trackPageview(); + } catch(err) {} </script> [% END %]
openguides-commits@lists.openguides.org