Page 1 of 1

Google Analytics Surrogate Script Broken?

Posted: Sat Mar 19, 2011 8:49 pm
by Heptite
Until some time this week I had no trouble, but now on some Facebook application pages I cannot get certain things to function (scripted <A> links and so on) without temporarily allowing Google Analytics. I tried looking through the Error console, but this is the only thing I could find that seemed remotely applicable:

Code: Select all

Error: fbjs_sandbox.instances.a38075929120 is undefined
Source File: http://apps.facebook.com/metropolisgame/players.php?id=1174254765
Line: 1
I have repeatedly verified that it is specifically disallowing Google Analytics in NoScript that breaks the functionality here and elsewhere. I had thought the default surrogate script would work around this issue, and it the past it appeared to.

Edit: I am currently running NoScript version 2.1.0rc1

Re: Google Analytics Surrogate Script Broken?

Posted: Tue Mar 22, 2011 4:14 pm
by Guest
I started having the same problem about a week ago. I am not sure what the problem is, but I have not changed anything on my computer, browser or add-ons (only have noscript and ad-block plus). I've also confirmed that it is related to google-analytics. When it is blocked by noscript, some of the apps stop working (flash based apps are still working) and when it is temporarily allowed, apps work properly again. I am currently using noscript 2.0.2.4. Another computer has the most current version of 2.0.9.9 and experiencing the same problem.

Re: Google Analytics Surrogate Script Broken?

Posted: Tue Mar 22, 2011 10:25 pm
by dhouwn
Well, looks like the surrogate needs some updating. I am not on Facebook, so I can't do it.

Re: Google Analytics Surrogate Script Broken?

Posted: Tue Mar 22, 2011 10:34 pm
by Giorgio Maone
Is there a contrived test case I can run on my test Facebook [url=http://kb..org/Profile]profile[/url] without subscribing to additional services/games?

Re: Google Analytics Surrogate Script Broken?

Posted: Wed Mar 23, 2011 12:20 am
by Guest
Problems I have encountered are all related to game apps. Facebook news feed, profile page, edit friends, privacy settings, message postings seem to all work just fine.

And when I said that flash based games are working, I found that I do have one flash game that will not load.

Re: Google Analytics Surrogate Script Broken?

Posted: Wed Mar 23, 2011 1:22 am
by Giorgio Maone
Guest wrote: I do have one flash game that will not load.
Can I have detailed (step-by-step) instructions about how it's supposed to be loaded, what's expected to do and what's broken?

Thank you.

Re: Google Analytics Surrogate Script Broken?

Posted: Wed Mar 23, 2011 12:07 pm
by Guest
Wordscraper: http://www.facebook.com/apps/applicatio ... 2521910901
Everything in bold words are part of the app.

When you get into the app, it will show you your list of active games:

You have 1 active, and 0 inactive games. You can start as many new games as you want.

* 16652415 - Debra D. Debra D's turn.

You then click on the game number and it should load a scrabble-like game board. Right now it only displays user game stats and the board is missing.

If you decide to install this app, you don't need to play a game with another user to run into problems. You can click on:

Join Table: does not return a list of games that you can join.
New Game: the dialog box where you need to enter names of friends is not usable, meaning you cannot even place your cursor in the box.

Match Your Friends
You can play multiple games with your Wordscraper friends simultaneously. You can also host a public table if you want.

With whom do you wish to play? (enter the names of up to 3 friends)

|__________________________________|

Re: Google Analytics Surrogate Script Broken?

Posted: Wed Jul 06, 2011 3:21 am
by Heptite
Is there any possibility this will be resolved? I still have to allow Google Analytics on the Metropolis game and other apps on Facebook.

It's very easy to reproduce this problem, just add the app, create your city, and go to any city other than your own (the one in my original report will work (http://apps.facebook.com/metropolisgame ... 1174254765)) and try to click "populate"/"entertain" and "explore".

Re: Google Analytics Surrogate Script Broken?

Posted: Wed Jul 06, 2011 4:49 pm
by GµårÐïåñ
First off, its is unreasonable to expect that each time a specific game breaks for Giorgio to go and add the game, play it to figure out what is wrong with your installation. He supports NoScript not the developers' games. Most of these bugs are with the games and not NoScript. That being said, have you installed the latest development build (2.1.2rc3) as it resolves some iframe issues and given all facebook games are run inside an app iframe, it might resolve the problem.

Second, to make it easier for Giorgio, since I have a profile on facebook dedicated to crap situations like this, I went ahead and got that game set up and have been having NO issues with it, so I can't reproduce your issues. My recommendation would be to update to the latest dev build (rc3) and see if the problem resolves.

Re: Google Analytics Surrogate Script Broken?

Posted: Wed Jul 06, 2011 8:31 pm
by Heptite
GµårÐïåñ wrote:First off, its is unreasonable to expect that each time a specific game breaks for Giorgio to go and add the game, play it to figure out what is wrong with your installation.
This was most definitely not isolated to one "specific game." My original report made that clear, and followups by others mentioned other games/applications with the same issue. My latest followup specifically suggested Metropolis only because it's the easiest way I know of to reproduce the problem.

I understand that it's difficult to add applications on Facebook just for troubleshooting, but in this case it appears that it may be the only way to do so.

I had already installed rc3 to deal with another issue I was having, and yes, I tested it against the Google Analytics surrogate script problem I've been having. It still does not work for me. Is it possible that somehow I have an "old" surrogate script that is persisting?

This is the current noscript.surrogate.ga.replacement pref value I have:

Code: Select all

noscript.surrogate.ga.replacement;(function(){var _0=function(){};with(window)urchinTracker=_0,_gaq={__noSuchMethod__:_0,push:_0,_link:function(h){if(h)location.href=h},_linkByPost:function(){return true},_getLinkerUrl:function(u){return u},_trackEvent:_0},_gat={_getTracker:function(){return _gaq}}})()

Re: Google Analytics Surrogate Script Broken?

Posted: Wed Jul 06, 2011 11:02 pm
by GµårÐïåñ
Heptite wrote:This was most definitely not isolated to one "specific game." My original report made that clear, and followups by others mentioned other games/applications with the same issue. My latest followup specifically suggested Metropolis only because it's the easiest way I know of to reproduce the problem.

I understand that it's difficult to add applications on Facebook just for troubleshooting, but in this case it appears that it may be the only way to do so.
Reason I said that is the fact that I am running against about 18 games on FB ranging from 8 different companies and I am not encountering this. Including the one you mentioned. Sometimes if the problem is with a specific vendor/developer, it will persist across all their games, so if you play like that, say for example JUST Zynga, then you might experience what appears to be too many or all my games, whereas others might not feel that way.
I had already installed rc3 to deal with another issue I was having, and yes, I tested it against the Google Analytics surrogate script problem I've been having. It still does not work for me. Is it possible that somehow I have an "old" surrogate script that is persisting?

This is the current noscript.surrogate.ga.replacement pref value I have:

Code: Select all

noscript.surrogate.ga.replacement;(function(){var _0=function(){};with(window)urchinTracker=_0,_gaq={__noSuchMethod__:_0,push:_0,_link:function(h){if(h)location.href=h},_linkByPost:function(){return true},_getLinkerUrl:function(u){return u},_trackEvent:_0},_gat={_getTracker:function(){return _gaq}}})()
I believe you should have the most recent, here is mine and I don't see much difference:

Code: Select all

(function(){var _0=function(){};with(window)urchinTracker=_0,_gaq={__noSuchMethod__:_0,push:_0,_link:function(h){if(h)location.href=h},_linkByPost:function(){return true},_getLinkerUrl:function(u){return u},_trackEvent:_0},_gat={_getTracker:function(){return _gaq}}})()

Re: Google Analytics Surrogate Script Broken?

Posted: Sat Jul 09, 2011 12:19 am
by Heptite
I had tried disabling all other addons before, but today I went so far as to create a scratch Firefox profile and installed only NoScript to test. Even there, I cannot get the Populate/Entertain/Explore JavaScript links to work without explicitly allowing Google Analytics. I really wish I knew what was going on. :(

I don't run many games on Facebook any more, but as far as I can tell this problem is not constrained to games/apps by one specific developer.

Edit: This latest test was with 2.1.2rc5