Solve the parse error with Google Analytics

Posted by Stefan at 12:32 pm
Categories: IT and technology

Sorry for this first “nerdy” comment since we’ve set up this page, but the following error just made me nuts and looking for a solution on the net for hours. ;) I just wanted to save others the time by spreading this simple and quick solution. ;) If you don’t know what “Google Analytics” or a “parse error” is then just forget this post… ;)
If you get the parse error

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘,’ or ‘;’ in /www/htdocs/ on line

after using Google analytics code on a php site with the echo command just change the third line of the Google analytics script from

document.write(unescape(”%3Cscript src=’” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));

to

document.write(unescape(”%3Cscript src=\‘” + gaJsHost + “google-analytics.com/ga.js\‘ type=\‘text/javascript\‘%3E%3C/script%3E”));

Worked perfectly fine for me.




Virtual worlds, real heroes (sort of)

Posted by Viktor at 9:47 pm
Categories: IT and technology

This made me smile: Clive Thompson (no Stefan, I don’t know this guy either) writes in Slate about video games. He argues that mastering a hard game may be satisfying, just as reading a difficult book. Naturally, as a working adult, time constraints are more of a factor than they were back in high school. So he comes up with a piece of wisdom:

So, sink 40 hours of your life into a hard game only if it’s already been widely praised by game reviewers and game blogs, the folks who play everything. I rely on these selfless warriors the same way I rely on film buffs who visit every benighted film festival on the planet until they’ve discovered the true indie gems. They suffer so that we don’t have to.

I find it oddly charming to hear Thompson speak about these “folks” with such respect. These veterans of the geekiest hobby of all certainly don’t get much of it. Cheers me up a little.