Closed Bug 970472 Opened 10 years ago Closed 10 years ago

add an optimizely function to the analytics module

Categories

(Webmaker Graveyard :: Metrics, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: thecount, Assigned: thecount)

Details

Popcorn maker is far too complex to use the optimizely editor, so I needed to check in nonsense like this:

+    var optimizelyAll = optimizely.data.state.variationNamesMap,
+        optimizelyActive = optimizely.data.state.activeExperiments,
+        optimizelyTest = optimizelyAll[ optimizelyActive[ 0 ] ];

The above is needed to turn ids into names of running tests, but I would rather work with just names and push the above checks into a module.

I need something that'll return the name of the running variation for a given test.

Also looking for ideas for other things we might need. Like getting an array of titles for all running tests with the variations on it.

I'm going to look into their API a bit more in case I missed something like what I need.
Assignee: nobody → scott
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.