Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Multivariety testing (split-tests) with Google Website Optimizer


Reply


4 Posts   2099 Views

Avatar
exp

Community Member, 2 Posts

4 August 2009 at 1:11am

Edited: 04/08/2009 1:12am

A/B-split-testing in Silverstripe is easy enough (http://www.silverstripe.org/archive/show/63414) although not at all optimal, but how do I perform multi-variety experiments with Google Website Optimizer (GWO) in silverstripe when the CMS (tinyMCE) deletes half the script?

A typical GWO mulit-variety script looks like this:

<script>utmx_section("Section")</script>
Section-content (this will be changed by GWO on-the-fly.
</noscript>

The problem is the lonely, unbalanced "</noscript>" which is deleted by tinyMCE on save, which in return renders the script useless.

Anyone with a solution to this problem?

Avatar
joshy

Community Member, 57 Posts

4 August 2009 at 10:04am

Could you not create a new page-type which has that code in, wrapped around the $Content? This is an alternative to putting it into TinyMCE and so you won't have those problems.

Also, you might want to disable the Content Negotiator (in _config.php):

ContentNegotiator::disable();

Josh

Avatar
exp

Community Member, 2 Posts

5 August 2009 at 1:59am

I'm afraid I haven't godt the possibility to edit (or indeed add) new templates so I need a solution that will work in the CMS...

Avatar
Ingo

Forum Moderator, 801 Posts

23 August 2009 at 12:54pm

You might need to allow <noscript> tags in TinyMCE, see http://doc.silverstripe.com/doku.php?id=htmleditorconfig