Uncaught ReferenceError: _gaq is not defined (Google Analytics)

From https://developers.google.com/analytics/devguides/collection/gajs/ this code replaces your existing “traditional snippet” with the “latest, asynchronous version, you should remove the existing tracking snippet first.” <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 … Read more

Add event handler for body.onload by Javascript within part

body.addEventListener(“load”, init(), false); That init() is saying run this function now and assign whatever it returns to the load event. What you want is to assign the reference to the function, not the result. So you need to drop the (). body.addEventListener(“load”, init, false); Also you should be using window.onload and not body.onload addEventListener is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)