> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gleef.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Gleef to WordPress

> Get Gleef running in a few steps

This section will guide you through the process of integrating Gleef into your website and starting your first A/B testing experiment on wording.

<Steps>
  <Step title="Open the function.php file from the WordPress dashboard">
    In your WordPress dashboard, select the <b>Appearance</b> menu, then <b>Theme Editor</b>.
    You might need to select your theme in the upper right dropdown.

    Then, select the file `Theme Functions (functions.php)` in the right panel.

    You should see some code in the main window.

    <img className="screenshot" src="https://mintcdn.com/gleef/LoEgPY-wsVG8Oz8H/images/integrations/screenshot_wordpress.png?fit=max&auto=format&n=LoEgPY-wsVG8Oz8H&q=85&s=71479e5999b6901166043ce20f1ab505" alt="Wordpress integration instructions screenshot" width="1875" height="872" data-path="images/integrations/screenshot_wordpress.png" />
  </Step>

  <Step title={"Copy/paste the integration code"}>
    Copy/paste this code within the window in the center.
    The following code will allow your website to display and track Gleef experiments.

    ```php theme={null}
    function gleef_script() {
    echo '<script src="https://script.cdn.api.gleef.eu/script.js"></script>
    }
    add_action("wp_head", "gleef_script", 0);
    ```

    Once you're done, click on the <b>Update File</b> button.
  </Step>

  <Step title="Launch & manage experiments">
    You're done! Log into the Chrome Extension, and start creating and managing experiments.
  </Step>
</Steps>

See also : [Create an experiment](../how-to/create)
