Looking for a way to fix the _gaq is not defined JavaScript error?
Simply add this code snippet before the close of the site.
You will need to replace ‘UA-48498312-1’ with your google analytics account ID.
<!-- Fix _gaq not defined issue -->
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-48498312-1']);
_gaq.push(['_trackPageview']);
</script>
Hope you find this useful! If you are not sure how to implement this, let me know and I’ll help out!
Leave a Reply