<commit_before>How to use Optimize_AB
---------------------------------------
Taken from but altered slightly:
http://support.google.com/websiteoptimizer/bin/static.py?hl=en&topic=29622&guide=29619&page=guide.cs#m2


Multi-Variate Control & Tracking Script
---------------------------------------
The control script goes on your test page and makes sure that
the experiment variations are switched randomly and that all
variations are displayed an equal number of times.

The tracking script goes on your test page ensures that visits
to the page are recorded in the experiment.

The control script immediately after the <head> tag.

mv_head(k, ua, pv)

Arguements can be taken directly form the Google Optimize Website Script code


Multi-Variate Page Sections Scripts
---------------------------------------
The page sections script is used to mark
the elements that will be varied during the experiment.
Essentially, you need to use the script provided by Website
Optimizer to define the beginning and end of each element. For
each element, you will need to name the page section in the script.
As an example, let's say you defined a header that welcomes
people to your page. The starting HTML code looks like this:

<h1>Welcome!</h1>

After adding your section script, the header will look like this
(with the custom name "Headline" for this section in italics):

<h1>
 <%= mv_begin_section("Headline") %>
   Welcome!
 <%= mv_end_section %>
</h1>

in HAML a link might be written as:

= link_to (mv_begin_section('Headline') + "Welcome" + mv_end_section)


OnClick Conversion
---------------------------------------
You'll need to add a snippet of text to the link or links
that you want to track as a conversion. Let's say your link
looks like this:

<a href="http://www.example.com/promotion">Featured Products</a>

To count a conversion when this link is clicked, add:

onclick="doGoal(this);return false;"

to the HTML tag. The new link will look like this
(addition in bold):

<a href="http://www.example.com/promotion" onclick="doGoal(this);return false;">Featured Products</a>
<commit_msg>formatting<commit_after>How to use Optimize_AB
---------------------------------------
Taken from but altered slightly:
http://support.google.com/websiteoptimizer/bin/static.py?hl=en&topic=29622&guide=29619&page=guide.cs#m2


Multi-Variate Control & Tracking Script
---------------------------------------
The control script goes on your test page and makes sure that the experiment variations are switched randomly and that all variations are displayed an equal number of times.

The tracking script goes on your test page ensures that visits to the page are recorded in the experiment.

The control script immediately after the <head> tag.

<code>
mv_head(k, ua, pv)
</code>

Arguements can be taken directly form the Google Optimize Website Script code


Multi-Variate Page Sections Scripts
---------------------------------------
The page sections script is used to mark
the elements that will be varied during the experiment. Essentially, you need to use the script provided by Website Optimizer to define the beginning and end of each element. For each element, you will need to name the page section in the script. As an example, let's say you defined a header that welcomes people to your page. The starting HTML code looks like this:

<code>
<h1>Welcome!</h1>
</code>

After adding your section script, the header will look like this
(with the custom name "Headline" for this section in italics):

<code>
<h1>
 <%= mv_begin_section("Headline") %>
   Welcome!
 <%= end_section %>
</h1>
</codE>

in HAML a link might be written as:

<code>
= link_to (mv_begin_section('Headline') + "Welcome" + mv_end_section)
</code>


OnClick Conversion
---------------------------------------
You'll need to add a snippet of text to the link or links
that you want to track as a conversion. Let's say your link
looks like this:

<code>
<a href="http://www.example.com/promotion">Featured Products</a>
</code>

To count a conversion when this link is clicked, add:

<code>
onclick="doGoal(this);return false;"
</code>

to the HTML tag. The new link will look like this
(addition in bold):

<code>
<a href="http://www.example.com/promotion" onclick="doGoal(this);return false;">Featured Products</a>
</code>

{'fraction_non_alphanumeric': 0.14584787159804605, 'fraction_numerical': 0.006978367062107467, 'mean_word_length': 3.274353876739563, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3535908', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1154, 'n_words': 544}