Page 1 of 1

google analytic surrogate needs to be updated

Posted: Wed Feb 27, 2013 3:36 pm
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.

Re: google analytic surrogate needs to be updated

Posted: Wed Feb 27, 2013 3:37 pm
by CharlesCar
http://www.metacafe.com/watch/3122780/v ... d_jetblue/

link was broken in the first post...

Re: google analytic surrogate needs to be updated

Posted: Wed Feb 27, 2013 7:17 pm
by CharlesCar
Hello?

Can someone fix this please?

Re: google analytic surrogate needs to be updated

Posted: Wed Feb 27, 2013 8:48 pm
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 :(

Re: google analytic surrogate needs to be updated

Posted: Wed Feb 27, 2013 9:14 pm
by CharlesCar
wow, i'm stunned that you were stumped!!

Would this firefox add-on be of help to you?

Re: google analytic surrogate needs to be updated

Posted: Thu Feb 28, 2013 10:27 am
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).

Re: google analytic surrogate needs to be updated

Posted: Sun Mar 03, 2013 6:02 pm
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.