Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Google Analytics
This discussion is related to the Google Analytics addon.

Google Analytics
0
Comments
Note that Google Analytics have new code - might be worth updating the extension to reflect it or offering legacy and new versions of the Analytics code in the preferences.
I simply updated the php directly as follows:
On line 23 of default.php, I replaced:
<script type="text/javascript" src="http://www.google-analytics.com/urchin.js"></script> <script type="text/javascript"> // <![CDATA[ _uacct="'.$Configuration['GoogleAnalyticsAccountNumber'].'"; urchinTracker(); // ]]> </script>
...with:
<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("'.$Configuration['GoogleAnalyticsAccountNumber'].'"); pageTracker._initData(); pageTracker._trackPageview(); </script>
Note the php escape slashes on the js code.
I've left out the CDATA part because a) Google doesn't suggest it's needed and b) I'm not an expert but I believe it is unnecessary and somewhat incorrectly used here.
If you beg to differ or can offer insight as to why it should be there, I welcome it and, as you can see, it's easy to change the code to include it, too.
Thanks again!
var pageTracker = _gat._getTracker("'.$Configuration['GoogleAnalyticsAccountNumber'].'");
I did replace my Account my number.
Any ideas?
Thanks,
Nico
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home5/cheapde1/public_html/spend_less/extensions/default.php on line 25
echo '
var _gaq = _gaq || [];
_gaq.push([\'_setAccount\', ';
echo '\''.$Configuration['GoogleAnalyticsAccountNumber'].'\'';
echo ']);
_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\';
(document.getElementsByTagName(\'head\')[0] || document.getElementsByTagName(\'body\')[0]).appendChild(ga);
})();
';
Thanks
Andy
antonio23, if you look at default.php line 12 you'll see that you need to replace the "UA-xxxxx-x" with your complete GA account number.