jamesyu / cohorts Goto Github PK
View Code? Open in Web Editor NEWA simple javascript multivariate testing framework
License: Other
A simple javascript multivariate testing framework
License: Other
$('p.message').click(function () {
hello-goodbye.event('Clicked on message'); // Track any evens with your storage adapter
});
Isn't this loaded every time page is loaded. Also can we track goal conversions using this?
Thanks for the code! Wondering if there is a limit to the number of experiments we can run, since we're using cookies ? Also, aren't cookies sent to the server all the time, wasting bandwidth ?
Hi
I have found a bug on websites running any version of prototype.js
The bug occurs in the Utils.size method were it returns 37 on an object with two "custom" properties (two cohorts).
(It should return 2, as it does on a website without prototype)
The fix is easy:
size: function(object) {
return Object.keys(object).length
},
Typically, most experimentation platforms will look at unique visitors and unique conversions. This is important because people may be influenced by a particular change in any one of their visit sessions to the site.
Basically, we need to update the storage adapter to capture this data:
_gaq.push(['_setCustomVar',{slot},{name},{value},{scope}],['_trackEvent'...]);
I suggest we allow for setting the {scope} and setting the {slot}. The name and the value can be pre-filled using the test parameters. Note it must be called before _trackEvent().
Full instructions are here: https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.