Google-analytics in the doc



  • Hi there,

    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 [1] screen shots [2] 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.

    Two questions:
    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?

    [1] http://tinypic.com/r/5pr38k/7
    [2] http://tinypic.com/r/11si6gw/7

    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):

    @
    < script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-4457116-5']);
    _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 s = document.getElementsByTagName('script')[0]; s[removed].insertBefore(ga, s);
    })();
    < /script >
    </body>
    </html>
    @



  • I've googled for that account number. It's somehow related to QT

    "google: UA-4457116-5":www.google.de/search?q=UA-4457116-5&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:de:official&client=firefox-a



  • [quote author="MichelS" date="1291281951"]One for the trolls: Why is google analytics in the docs?
    [/quote]

    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.

    As to why we collect stats on our websites? In the end it's to make better Qt websites for everyone. Not a day goes by without someone wondering if their page got a better bounce/exit rate after some changes, how much the traffic from China went up the last week, is IE6 dead yet, what are people searching for etc. If you want to know more please consult our "privacy policy":http://qt.nokia.com/about/privacy-policy.

    [quote author="MichelS" date="1291289752"]I've googled for that account number. It's somehow related to QT

    google: UA-4457116-5[/quote]

    Yep, it belongs to Qt.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.