google analytic surrogate needs to be updated

Ask for help about NoScript, no registration needed to post
CharlesCar

google analytic surrogate needs to be updated

Post by CharlesCar »

The videos on this site are broken if the main google analytics script is blocked.

http://www.metacafe.com/watch/3122780/v ... d_jetblue/

the script surrogate usually is enough but in this case it's missing something.
Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.14
CharlesCar

Re: google analytic surrogate needs to be updated

Post by CharlesCar »

http://www.metacafe.com/watch/3122780/v ... d_jetblue/

link was broken in the first post...
Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.14
CharlesCar

Re: google analytic surrogate needs to be updated

Post by CharlesCar »

Hello?

Can someone fix this please?
Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.14
User avatar
Giorgio Maone
Site Admin
Posts: 9557
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: google analytic surrogate needs to be updated

Post by Giorgio Maone »

I've made several attempts but it seems the failure happens internally in the ActionScript of the player SWF, so there's no way to tell what needs to be changed in the surrogate :(
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
CharlesCar

Re: google analytic surrogate needs to be updated

Post by CharlesCar »

wow, i'm stunned that you were stumped!!

Would this firefox add-on be of help to you?
Last edited by Thrawn on Thu Feb 28, 2013 10:23 am, edited 1 time in total.
Reason: Fixed truncated link
Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.14
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: google analytic surrogate needs to be updated

Post by Thrawn »

Please post links in url tags, or code tags, or select 'Do not automatically parse URLs' from the checkboxes below. There is a known bug in phpBB that truncates long links, then breaks them when the post is edited (including when you preview before submitting).
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:19.0) Gecko/20100101 Firefox/19.0
access2godzilla
Senior Member
Posts: 109
Joined: Sun May 20, 2012 5:09 pm

Re: google analytic surrogate needs to be updated

Post by access2godzilla »

Something along the lines of this ?

Code: Select all

//ga.js
var urchinTracker = function () {}, _gaq = {
	push : function () {
		try {
			if (arguments[0][0] == '_link')
				window.location.href = arguments[0][1]
		} catch (excpt) {}

	}
}, _gat = {
	_createTracker : function () {},
	_getTracker : function () {
		return {
			__noSuchMethod__ : function () {},
			_link : function (z) {
				if (z)
					location.href = z;
			},
			_linkByPost : function () {
				return true;
			},
			_getLinkerUrl : function (z) {
				return z;
			},
			_trackEvent : function () {}

		}
	}
};

//urchin.js
var urchinTracker = function () {}, _gat = {
	_getTracker : function () {
		return {
			__noSuchMethod__ : function () {},
			_link : function (z) {
				if (z)
					location.href = z;
			},
			_linkByPost : function () {
				return true;
			},
			_getLinkerUrl : function (z) {
				return z;
			},
			_trackEvent : function () {}

		}
	}
}
I gave a quick look and came up with this script. No idea if it works though.
Anyway, maybe Google should really get a prize for making tracking code look like shellcode! And good way to consume CPU cycles on my 9 year old computer.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.1) Gecko/20100101 Firefox/10.0.1
Post Reply