If you take out the comment, bad indentation, double script tag and blank lines you can easily make it much prettier, like so: http://i.imgur.com/EljDOpF.png
The GA code itself could perhaps also be updated/improved. Google now delivers this “isogram” code (http://laravel.io/bin/bMMx), and there also this even tinier one (http://laravel.io/bin/GOOJ). Now I’m no Analytics or JavaScript expert so maybe these lack some functions that your plugin adds but I wanted to mention them because they look a bit better.
I know this not important to 99.9% of users but I’m a proponent of clean code and I thought why not ask.
Thank you for your time, and for making this great plugin.
(@brugman)
12 years, 2 months ago
Hi. Could you clean up the code that the plugin outputs in the header?
Currently this is what the plugin produces (in the site I’m working on):
http://i.imgur.com/AGu6Amn.png
If you take out the comment, bad indentation, double script tag and blank lines you can easily make it much prettier, like so:
http://i.imgur.com/EljDOpF.png
The GA code itself could perhaps also be updated/improved. Google now delivers this “isogram” code (http://laravel.io/bin/bMMx), and there also this even tinier one (http://laravel.io/bin/GOOJ). Now I’m no Analytics or JavaScript expert so maybe these lack some functions that your plugin adds but I wanted to mention them because they look a bit better.
I know this not important to 99.9% of users but I’m a proponent of clean code and I thought why not ask.
Thank you for your time, and for making this great plugin.
— Tim
https://ww.wp.xz.cn/plugins/google-analyticator/