JavaScript A/B testing with custom variables in Google Analytics
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
ga-experiments.js

README.md

ga-experiments

JavaScript A/B testing with custom variables in Google Analytics

GAExperiments.add({
  name: "Left column font size",
  slot: 1, //From 1 to 5
	samples: {,
		'.9em': function(){
			$('#sidebar-left .content').css({
				'font-size': '.9em'
			});
		},
		'1em': function(){
			//no change
		},
		'1.1em': function(){
			$('#sidebar-left .content').css({
				'font-size': '1.1em'
			});
		}
	}
});