Skip to content

Instantly share code, notes, and snippets.

View lucasoptimizely's full-sized avatar

Lucas Swartsenburg lucasoptimizely

  • Optimizely
  • Netherlands
View GitHub Profile
// console.log("test");
var request = require('request');
const url = 'https://cdn.optimizely.com/datafiles/2SpN5BH5xUij5ev7voeEVj.json'
var features = {};
var audiences = {'everyone': 'everyone'};
var rollout_to_feature = {};
var rollouts = {};
@lucasoptimizely
lucasoptimizely / muv_counting.py
Last active September 28, 2018 23:00
Making MUV counting great again
''' A local database keeps track of MUVs for all accounts like this:'''
# muvs_by_account = {
# "843": {
# 'muv': set(),
# 'muv_w': set(),
# 'muv_p': set(),
# 'muv_o': set(),
# 'muv_m': set(),
# 'muv_fs': set(),
(function() {
// Experiment queue
var campaigns = [];
var effectiveReferrer;
var immidiateEvents = false;
var storedAdobeVariable;
var pendingEvents = [];
var DEFAULT_RETRIES = 200;
var DEFAULT_TIMEOUT = 100;
var DEFAULT_VARNAME = 's';
Technology shop:
Vendor name Total count in group Percentage in group
Cart Functionality 413 17.5%
Magento 158 6.69%
Magento Enterprise 96 4.06%
Shopify 78 3.3%
Oracle Commerce 56 2.37%
WooCommerce 50 2.11%
Demandware 36 1.52%
AbleCommerce 33 1.39%