-
Type:
Improvement
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.5.0, 1.5.1, 1.5.2, 1.6.0
-
Fix Version/s: 1.7.0
-
Component/s: XMLUI
-
Labels:None
-
Attachments:
-
Comments:2
-
Documentation Status:Not Required
See:
- http://analytics.blogspot.com/2010/04/making-web-faster.html
- http://analytics.blogspot.com/2009/12/google-analytics-launches-asynchronous.html
- http://www.google.com/support/googleanalytics/bin/answer.py?answer=161379
- http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
(function()
{ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
</script>
We've determined that on most pages, the optimal location for the asynchronous snippet is at the bottom of the <head> section, just before the closing </head> tag.