Skip to content

Instantly share code, notes, and snippets.

@cpilsworth
Created December 2, 2009 10:23
Show Gist options
  • Save cpilsworth/247115 to your computer and use it in GitHub Desktop.
Save cpilsworth/247115 to your computer and use it in GitHub Desktop.
<%--
Place this file in /apps/foundation/components/page/ to use the new Google Analytics async
tracking code as described here:
http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html
--%>
<%@page session="false"%>
%><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '<%= request.getAttribute("analyticsSnippet") %>']);
_gaq.push(['_trackPageview']);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment