Google Analytics Surrogate Script Broken?

Ask for help about NoScript, no registration needed to post
User avatar
Heptite
Posts: 5
Joined: Sat Mar 19, 2011 8:35 pm

Google Analytics Surrogate Script Broken?

Post 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
Last edited by Heptite on Sun Mar 27, 2011 5:39 am, edited 1 time in total.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15 (.NET CLR 3.5.30729)
Guest

Re: Google Analytics Surrogate Script Broken?

Post 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.
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: Google Analytics Surrogate Script Broken?

Post by dhouwn »

Well, looks like the surrogate needs some updating. I am not on Facebook, so I can't do it.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b13pre) Gecko/20110322 Firefox/4.0b13pre
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Google Analytics Surrogate Script Broken?

Post 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?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15
Guest

Re: Google Analytics Surrogate Script Broken?

Post 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.
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Google Analytics Surrogate Script Broken?

Post 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.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15
Guest

Re: Google Analytics Surrogate Script Broken?

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

|__________________________________|
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
User avatar
Heptite
Posts: 5
Joined: Sat Mar 19, 2011 8:35 pm

Re: Google Analytics Surrogate Script Broken?

Post 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".
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3369
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: Google Analytics Surrogate Script Broken?

Post 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.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/6.9 (en-US; rv:6.9.6.9) Gecko/66666666 Firefox/6.6.6
User avatar
Heptite
Posts: 5
Joined: Sat Mar 19, 2011 8:35 pm

Re: Google Analytics Surrogate Script Broken?

Post 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}}})()
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3369
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: Google Analytics Surrogate Script Broken?

Post 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}}})()
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/6.9 (en-US; rv:6.9.6.9) Gecko/66666666 Firefox/6.6.6
User avatar
Heptite
Posts: 5
Joined: Sat Mar 19, 2011 8:35 pm

Re: Google Analytics Surrogate Script Broken?

Post 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
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Post Reply