Problems Implementing Analytics Custom Variables (Bounce Rate goes to zero) -
i'm having trouble implementing google analytics custom variables on site. problem bounce rate goes 0 when using them.
i'm using asynchronous implementation , split code version (http://code.google.com/apis/analytics/docs/tracking/asyncusageguide.html#splitsnippet) track pageview. so, code looks this:
<script type="text/javascript"> var _gaq_custom_variables = _gaq_custom_variables || []; _gaq_custom_variables.push(['_setaccount', 'ua-22770314-1']); </script> <!-- rest of page content --> <script type="text/javascript"> _gaq_custom_variables.push(['_setcustomvar', 1, // slot 'variable name', // variable name 'value', // variable value 3 // scope. ]); </script> <script type="text/javascript"> _gaq_custom_variables.push(['_trackpageview']); (function() { var ga = document.createelement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = 'http://www.google-analytics.com/ga.js'; var s = document.getelementsbytagname('script')[0]; s.parentnode.insertbefore(ga, s); })(); </script>
if has been able use custom variables avoiding issue, appreciate if can point solution.
thanks! jc
you cannot use custom object name google's async code. change _gaq_custom_variables
_gaq
Comments
Post a Comment