Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (19 sloc) 937 Bytes



What: Stores JSON of the experiments and variations that a user has been bucketed into. This ensures the user consistently sees the same variation, even over multiple sessions. Example: {"138736319":"138725428","138750142":"138754098"}

Expiration: 10 years

Revenue Goals

How can I track a goal that isn't a pageview or a click?

How can I track revenue with Optimizely?

Getting experiment data

Tracking revenue

window.optimizely = window.optimizely || []; $("#purchaseBtn").live("mousedown", function() { var valueInCents = $("#totalPrice").val() * 100; window.optimizely.push(['trackEvent', 'add_cart_button_clicked', {'revenue': valueInCents}]); });