
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Getting Started &mdash; django-gwo v0.1 documentation</title>
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '0.1',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="django-gwo v0.1 documentation" href="index.html" />
    <link rel="next" title="Using the weboptimizer gdata Extension" href="using_gwoweboptimizer.html" />
    <link rel="prev" title="Tutorial" href="tutorial.html" /> 
  </head>
  <body>
<div id="docstitle">
	<p>django-gwo v0.1 documentation</p>
</div>
<div id="header">
	<div id="title"><h1>Getting Started</h1></div>
	<ul id="headerButtons">
		<li id="toc_button"><div class="headerButton"><a href="#">Table of Contents</a></div></li>
		<li id="page_buttons">
			<div class="headerButton"><a href="genindex.html" title="General Index" accesskey="I">index</a></div>
			<div class="headerButton"><a href="py-modindex.html" title="Python Module Index" >modules</a></div>
			<div class="headerButton"><a href="using_gwoweboptimizer.html" title="Using the weboptimizer gdata Extension" accesskey="N">next</a></div>
			<div class="headerButton"><a href="tutorial.html" title="Tutorial" accesskey="P">previous</a></div>
		</li>
	</ul>
</div>

<div id="sphinxsidebar">
  <div class="sphinxsidebarwrapper">
	<ul><li class="toctree-l1"><a href="index.html">Main Page</a></li></ul>
	<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="installation.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="overview.html">Multivariate testing of dynamic pages</a></li>
<li class="toctree-l1"><a class="reference internal" href="tutorial.html">Tutorial</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="">Getting Started</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#creating-an-experiment">Creating an experiment</a></li>
<li class="toctree-l2"><a class="reference internal" href="#create-a-section-for-an-experiment">Create a section for an experiment</a></li>
<li class="toctree-l2"><a class="reference internal" href="#create-a-variation-for-an-experiment">Create a variation for an experiment</a></li>
<li class="toctree-l2"><a class="reference internal" href="#tagging-the-template">Tagging the template</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="using_gwoweboptimizer.html">Using the weboptimizer gdata Extension</a></li>
<li class="toctree-l1"><a class="reference internal" href="management_commands.html">Management Commands</a></li>
<li class="toctree-l1"><a class="reference internal" href="reference/index.html">Reference</a></li>
</ul>

    <div id="searchbox" style="display: none">
      
        <form class="search" action="search.html" method="get">
			<div class="search-wrapper">
			<span class="search-left"></span>
			<input class="prettysearch" type="text" name="q" size="18" />
			<span class="search-right">&nbsp;</span>
			</div>
          <input type="submit" value="Search" class="searchbutton" />
          <input type="hidden" name="check_keywords" value="yes" />
          <input type="hidden" name="area" value="default" />
        </form>
        <p class="searchtip" style="font-size: 90%">
        Enter search terms or a module, class or function name.
        </p>
    </div>
    <script type="text/javascript">$('#searchbox').show(0);</script>
  </div>
</div>



    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="getting-started">
<h1>Getting Started<a class="headerlink" href="#getting-started" title="Permalink to this headline">¶</a></h1>
<div class="section" id="creating-an-experiment">
<h2>Creating an experiment<a class="headerlink" href="#creating-an-experiment" title="Permalink to this headline">¶</a></h2>
<ol class="arabic simple">
<li>Create a new Experiment in the Django admin.</li>
<li>Name your experiment in the <strong>Title</strong> field.</li>
<li>Set &#8216;Multivariate&#8217; as the <strong>Experiment type</strong>.</li>
<li>Put in the URL of the representative page for the <strong>Test page URL</strong>. For example, if you are testing a blog entry page, pick a recent blog entry for the page url.</li>
<li>Put in the same URL for the <strong>Conversion page URL</strong></li>
<li>Leave <strong>Auto prune mode</strong> at None, unless you really know what you&#8217;re doing.</li>
<li>Save the experiment.</li>
</ol>
</div>
<div class="section" id="create-a-section-for-an-experiment">
<h2>Create a section for an experiment<a class="headerlink" href="#create-a-section-for-an-experiment" title="Permalink to this headline">¶</a></h2>
<ol class="arabic simple">
<li>Each listing of experiments includes a field detailing how many sections are currently defined for that experiment and links to view the experiment&#8217;s sections or add a section. Click on <strong>Add section</strong>.</li>
<li>The <strong>Experiment</strong> field will already be set, so simply enter in the <strong>Title</strong> for this section.</li>
<li>Clicking on <strong>Save</strong> will save this section and take you to the list of all sections. Clicking on <strong>Save and add another</strong> will save this section and allow you to add a new section.</li>
</ol>
</div>
<div class="section" id="create-a-variation-for-an-experiment">
<h2>Create a variation for an experiment<a class="headerlink" href="#create-a-variation-for-an-experiment" title="Permalink to this headline">¶</a></h2>
<ol class="arabic simple">
<li>Each list of sections includes a field detailing how many variations are currently defined for that section and links to view the section&#8217;s variations or add a variation to the section. Click on <strong>Add variation</strong>.</li>
<li>The <strong>Experiment</strong></li>
</ol>
</div>
<div class="section" id="tagging-the-template">
<h2>Tagging the template<a class="headerlink" href="#tagging-the-template" title="Permalink to this headline">¶</a></h2>
<p>Before you can go on with Website Optimizer, you need to tag the pages so google can validate them. Django-GWO provides some easy tags to make the process easier than the instructions in Website Optimizer.</p>
<ol class="arabic">
<li><p class="first">At the top of the template, add <tt class="docutils literal"><span class="pre">{%</span> <span class="pre">load</span> <span class="pre">gwo_tags</span> <span class="pre">%}</span></tt>.</p>
</li>
<li><p class="first">In the <tt class="docutils literal"><span class="pre">&lt;head&gt;</span></tt> section of the page add <tt class="docutils literal"><span class="pre">{%</span> <span class="pre">gwo_control_script</span> <span class="pre">ExperimentName</span> <span class="pre">%}</span></tt>. This inserts the copied control script for <tt class="docutils literal"><span class="pre">ExperimentName</span></tt> into the page.</p>
</li>
<li><p class="first">Just before the <tt class="docutils literal"><span class="pre">&lt;/body&gt;</span></tt> tag of the template add <tt class="docutils literal"><span class="pre">{%</span> <span class="pre">gwo_tracking_script</span> <span class="pre">%}</span></tt></p>
</li>
<li><p class="first">Around each section that you are testing add:</p>
<div class="highlight-python"><pre>{% gwo_section SectionName %}

... your original content ...

{% end_gwo_section %}</pre>
</div>
<p>The <tt class="docutils literal"><span class="pre">SectionName</span></tt> is passed through directly to the Website Optimizer JavaScript for the section name.</p>
</li>
</ol>
</div>
</div>


          </div> 
        </div>
      </div>
    <div class="footer">
    <p>
      &copy; Copyright 2010, The Washington Times.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.6.
	</p>
    </div>
      <div class="clearer"></div>
    </div>
	<div id="breadcrumbs">
		Getting Started
		</ul>
	</div>
	<script type="text/javascript" charset="utf-8" src="_static/toc.js"></script>
  </body>
</html>