Google-analytics in the doc
Im using the fine qt integration into Visual Studio. Every time I open the
help (which is really helpfull!) pushing F1 or opening an other topic in the documentation
a nasty warning message pops up to tell me theres an syntax error on this page.
I've some  screen shots  for you to illustrate this issue.
I don't think it's necessary to have google analytics in the local docs.
Call me paranoid but I think google already knows enough.
One for the trolls: Why is google analytics in the docs?
And one for all of you: Any ideas how to get rid of this annoying warning message?
btw: I'm not sure if this is the right sub forum. So please move me if you feel so.
From what I understand, these are the offline docs and don't include any Google Analytics scripts (from a quick search). For instance, you should be able to load those without having an internet connection.
Do any other ms-help:// links give this error? Such as pressing F1 when you are on the Windows Desktop.
It could be related to Visual Studio..
As far as i know, vs always tries to load online documentation first, unless configured otherwise. If it does so, and if there are some google analytics scripts on qt docs page, they may crash because they are not prepared to be run in vs help tool.
This is only my guess, but check if you are really opening local documentation and not the online one.
Thank you for your anwers and ideas.
I can't reproduce it anymore. Very strange.
But to answer your questions:
It was only inside the qt docs, when exploring them with the MS Document Explorer.
I don't know what the selection of 'online first', 'local than online' or 'only local' was.
I guess it was 'first local than online'
How ever, if you select 'show source code' from the context menu and scroll to the bottom of any QT related document you'll find this piece of code bellow (I didn't find it in the other parts of the documentation from MS):
var _gaq = _gaq || ;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script'); s[removed].insertBefore(ga, s);
< /script >
I've googled for that account number. It's somehow related to QT
[quote author="MichelS" date="1291281951"]One for the trolls: Why is google analytics in the docs?
They shouldn't be in the offline doc, but the Google Analytics code was included in a beta/snapshot of Qt Creator offline documentation earlier. I have to segment some data out of my web statistics due to the "fake" pings it generates. I was told it got fixed for Qt Creator - but you are using the VS integration - I'll have to check.
[quote author="MichelS" date="1291289752"]I've googled for that account number. It's somehow related to QT
Yep, it belongs to Qt.