Open
Bug 974650
Opened 8 years ago
Updated 8 years ago
Enable A/B Testing
Categories
(Websites :: wiki.mozilla.org, enhancement)
Websites
wiki.mozilla.org
Tracking
(Not tracked)
NEW
People
(Reporter: groovecoder, Unassigned)
References
()
Details
(Whiteboard: [featurerequest])
wiki.mozilla.org is very conducive to the way Google Analytics does Content Experiments - i.e., by copying alternative wiki pages to unique URL's. I started to create an experiment to improve conversions on /Webdev/GetInvolved, but I need to add this code to the <head> section: <!-- Google Analytics Content Experiment code --> <script>function utmx_section(){}function utmx(){}(function(){var k='68091329-2',d=document,l=d.location,c=d.cookie; if(l.search.indexOf('utm_expid='+k)>0)return; function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c. indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c. length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;d.write( '<sc'+'ript src="'+'http'+(l.protocol=='https:'?'s://ssl': '://www')+'.google-analytics.com/ga_exp.js?'+'utmxkey='+k+ '&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date(). valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+ '" type="text/javascript" charset="utf-8"><\/sc'+'ript>')})(); </script><script>utmx('url','A/B');</script> <!-- End of Google Analytics Content Experiment code --> Is this possible?
Reporter | ||
Comment 1•8 years ago
|
||
It's been suggested that we could also do this with Optimizely, so I'm okay re-purposing this bug to implement Optimizely on wiki.mozilla.org if that's better or easier than GCE snippets.
Summary: Enable Google Content Experiments → Enable A/B Testing
Updated•8 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Whiteboard: [featurerequest]
Updated•8 years ago
|
Severity: normal → enhancement
You need to log in
before you can comment on or make changes to this bug.
Description
•