---
title: Integrating SiteSpect and Drupal
description: "SiteSpect integrates with many different content management systems to: These steps describe how to integrate SiteSpect with Drupal and are intended for a user who has some experience with Drupal and"
---

[Skip to content](https://doc.sitespect.com/knowledge/integrating-sitespect-and-drupal#main-content)

English

Show submenu for translations

![Monetate-Logo-Full-Color-1](https://doc.sitespect.com/hs-fs/hubfs/Monetate-Logo-Full-Color-1.png?width=340&height=49&name=Monetate-Logo-Full-Color-1.png)

- [A/B Testing](https://www.sitespect.com/testing-and-experimentation/)
- [Personalization](https://www.sitespect.com/personalization-targeting/)
- [Recommendations](https://www.sitespect.com/recommendations/)

Open main navigation

Close main navigation

- [A/B Testing](https://www.sitespect.com/testing-and-experimentation/)
- [Personalization](https://www.sitespect.com/personalization-targeting/)
- [Recommendations](https://www.sitespect.com/recommendations/)
- English
  
  Show submenu for translations

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Knowledge Base](https://doc.sitespect.com/knowledge?hsLang=en)
2. [Third-Party Integration](https://doc.sitespect.com/knowledge/third-party-integration?hsLang=en)

# Integrating SiteSpect and Drupal

SiteSpect integrates with many different content management systems to:

- Improve workflow.
- Seamlessly test content created in your CMS.
- Run tests and optimize your site without the assistance of a developer.

These steps describe how to integrate SiteSpect with Drupal and are intended for a user who has some experience with Drupal and who has the correct permissions to implement code changes on your website.

### High-Level Integration Steps

[Drupal](https://www.drupal.org/) is an open source content management system (CMS) that allows you to build, edit, and publish web pages. Using SiteSpect, you can set up Campaigns to test Variations of content created in your CMS. The following are two different use cases for testing different types of content:

- [Testing a New Landing Page](https://doc.sitespect.com/knowledge/integrating-sitespect-and-drupal#testing-a-new-landing-page)
- [Testing New Content on Existing Pages](https://doc.sitespect.com/knowledge/integrating-sitespect-and-drupal#testing-new-content-on-existing-pages)

#### Testing a New Landing Page

To test a new landing page, first create the new landing page in Drupal, then use SiteSpect to set up a SiteSpect URL-Based Origin Experiment Campaign.

### Set up a New Landing Page in Drupal

The simplest test you can run on your CMS is to test the effect of a new page. Suppose you want to test a new landing page design. The process is simple: create a new page in Drupal and use a SiteSpect Origin Experiment Campaign to test it.

To set up the new page in Drupal:

1. Create the new page in Drupal.
   
   ![Integrating SiteSpect and Drupal - Dashboard](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/Integrating%20SiteSpect%20and%20Drupal%20-%20Dashboard.png?width=430&name=Integrating%20SiteSpect%20and%20Drupal%20-%20Dashboard.png)
2. Give the page a new URL.
   
   ![Integrating SiteSpect and Drupal - URL Path Settings](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/Integrating%20SiteSpect%20and%20Drupal%20-%20URL%20Path%20Settings.png?width=655&name=Integrating%20SiteSpect%20and%20Drupal%20-%20URL%20Path%20Settings.png)
3. Build the new page content.

### Set up a SiteSpect URL-Based Origin Experiment Campaign

Use SiteSpect to test the new landing page you created in Drupal as follows:

1. Select **New**, **A/B Campaign**.
2. Complete the **General** section, making sure to select **Origin** from the **Type** drop-down.
3. In the **Variations** section of the page, rename **Variation Group 1** to **New Landing Page**.
4. For **Variation 1**, select **URL** from the **Type** drop-down.
5. In the **Find This** field, enter **/landing-page/** (or the name of your landing page).
6. In the **Replace With This** field enter **/new-landing-page**/ (or the name of your new Drupal landing page).
7. Finish by selecting **Metrics** you want to track and any **Audiences** you want to target.
8. Click **Save** at the bottom of the page.

![Integrating SiteSpect and Drupal - Variations](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/Integrating%20SiteSpect%20and%20Drupal%20-%20Variations.png?width=688&name=Integrating%20SiteSpect%20and%20Drupal%20-%20Variations.png)

When you set this Campaign to **Active - Running**, SiteSpect divides your traffic between the new and old landing pages: visitors assigned to the control group view the original page, but visitors assigned to the Variation, see the new landing page. While most testing and optimization software use a traditional redirect to perform this test, SiteSpect can actually change the URL on the request, similar to a load balancer; the origin receives a request for the new URL.

#### Testing New Content on Existing Pages

To modify an existing page by replacing some text, adding a banner, or inserting a new widget, you don’t need to test the full page. Build a page block in Drupal and use SiteSpect to test it.

To do this, you’ll need a couple of new Drupal Modules:

- **Context** – [https://www.drupal.org/project/context](https://www.drupal.org/project/context)
- **Context Query Parameters** – [https://www.drupal.org/project/context\_query\_param](https://www.drupal.org/project/context_query_param)

These modules allow you to show content only when requests to your site are made with specific query parameters.

Let’s use the SiteSpect website as an example. You want more readers of the SiteSpect Blog to share our articles and you think a call-to-action to share our articles will improve our exposure. To test this, you’ve built a new block that promotes sharing the blog articles to social media, shown in the red rectangle in the following image.

![Integrating SiteSpect and Drupal - Share](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/Integrating%20SiteSpect%20and%20Drupal%20-%20Share.png?width=583&name=Integrating%20SiteSpect%20and%20Drupal%20-%20Share.png)

You’re going to change the following page: [http://www.sitespect.com/blogs/how-are-you-guys-doing-or-data-silos-and-personalization-which-exit](http://www.sitespect.com/blogs/how-are-you-guys-doing-or-data-silos-and-personalization-which-exit).

To do this, create a new Block in Drupal and restrict when it will be visible using a Context with a special Query Parameter as follows:

1. Create a new Block called **Blog Social Media Sharing Block** that includes the icons for sharing as shown in the image above.
2. To create a new Context, select **Structure**, **Context**, and then **Add**.
   
   ![Integrating SiteSpect and Drupal - Blocks](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/Integrating%20SiteSpect%20and%20Drupal%20-%20Blocks.png?width=304&name=Integrating%20SiteSpect%20and%20Drupal%20-%20Blocks.png)
3. Name the context **blogsocialmediasharing**.
   
   ![Integrating SiteSpect and Drupal - Add a New Context](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/Integrating%20SiteSpect%20and%20Drupal%20-%20Add%20a%20New%20Context.png?width=416&name=Integrating%20SiteSpect%20and%20Drupal%20-%20Add%20a%20New%20Context.png)
4. Select the **Require All Conditions** check box and choose **Path** from the **Condition** drop-down to add a Path Condition. Then enter the following path:
   
   blogs/how-are-you-guys-doing-or-data-silos-and personalization-which-exit
   
   ![Integrating SiteSpect and Drupal - Require All Conditions](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/Integrating%20SiteSpect%20and%20Drupal%20-%20Require%20All%20Conditions.png?width=614&name=Integrating%20SiteSpect%20and%20Drupal%20-%20Require%20All%20Conditions.png)
5. Add a **Query Condition** by choosing **Query Parameter** from the **Condition** drop-down. Then define a **Parameter Name** called **test**, select **must equal** from the **Operator** drop-down and then enter **enabled** for the Parameter Value.
   
   ![Integrating SiteSpect and Drupal - Require All Conditions II](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/Integrating%20SiteSpect%20and%20Drupal%20-%20Require%20All%20Conditions%20II.png?width=655&name=Integrating%20SiteSpect%20and%20Drupal%20-%20Require%20All%20Conditions%20II.png)
6. Finally, select **Block** from the **Reactions** drop-down and select **Blog Social Media Sharing Block** from the **Block** submenu.
   
   ![Integrating SiteSpect and Drupal - Reactions](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/Integrating%20SiteSpect%20and%20Drupal%20-%20Reactions.png?width=638&name=Integrating%20SiteSpect%20and%20Drupal%20-%20Reactions.png)
7. Click **Save** at the bottom of the page.
8. To test the new Context, navigate to the blog post above and append the query ?test=enabled to the URL. When you do, you see the **Blog Social Media Sharing Block**.

With the change built, set up a SiteSpect Campaign to test the new Block:

1. Select **New**, **A/B Campaign**.
2. Complete the **General** section of the page.
3. In the **Variations** section of the page, rename **Variation Group 1** to **Blog Post with Sharing Functionality**.
4. Rename **Variation 1** to **Enable Sharing Block in Drupal**.
5. Select **Query Parameter** from the **Type** drop-down.
6. In the **Find This** field, enter **test**.
7. In the **Replace With This** field enter **enabled**.
8. Finish by selecting **Metrics** you want to track and any **Audiences** you want to target.
9. Click **Save** at the bottom of the page.

![Integrating SiteSpect and Drupal - Variations II](https://doc.sitespect.com/hs-fs/hubfs/Kbase%20Images/Integrating%20SiteSpect%20and%20Drupal%20-%20Variations%20II.png?width=688&name=Integrating%20SiteSpect%20and%20Drupal%20-%20Variations%20II.png)

When you set this Campaign to **Active - Running**, SiteSpect divides traffic between blog posts with the block enabled and disabled.

- [Get Started](https://doc.sitespect.com/knowledge/get-started?hsLang=en#main-content)

    - [SiteSpect Support](https://doc.sitespect.com/knowledge/get-started?hsLang=en#sitespect-support)
    - [Overview Information](https://doc.sitespect.com/knowledge/get-started?hsLang=en#overview-information)
    - [Intro to SiteSpect](https://doc.sitespect.com/knowledge/get-started?hsLang=en#intro-to-sitespect)
    - [Account Setup](https://doc.sitespect.com/knowledge/get-started?hsLang=en#account-setup)
    - [Artificial Intelligence](https://doc.sitespect.com/knowledge/get-started?hsLang=en#artificial-intelligence)
- [Dashboard](https://doc.sitespect.com/knowledge/dashboard?hsLang=en)
- [Build](https://doc.sitespect.com/knowledge/build?hsLang=en#main-content)

    - [Setting Up a Campaign](https://doc.sitespect.com/knowledge/build?hsLang=en#setting-up-a-campaign)
    - [Create a Client-Side Campaign](https://doc.sitespect.com/knowledge/build?hsLang=en#create-a-client-side-campaign)
    - [Create a Server-Side Campaign](https://doc.sitespect.com/knowledge/build?hsLang=en#create-a-server-side-campaign)
    - [Metrics](https://doc.sitespect.com/knowledge/build?hsLang=en#metrics)
    - [Audiences](https://doc.sitespect.com/knowledge/build?hsLang=en#audiences)
    - [Triggers](https://doc.sitespect.com/knowledge/build?hsLang=en#triggers)
    - [Variations](https://doc.sitespect.com/knowledge/build?hsLang=en#variations)
    - [Traffic Management](https://doc.sitespect.com/knowledge/build?hsLang=en#traffic-management)
    - [Preview](https://doc.sitespect.com/knowledge/build?hsLang=en#preview)
    - [Factors](https://doc.sitespect.com/knowledge/build?hsLang=en#factors)
    - [Advanced Settings](https://doc.sitespect.com/knowledge/build?hsLang=en#advanced-settings)
    - [Omnichannel](https://doc.sitespect.com/knowledge/build?hsLang=en#omnichannel)
    - [Regular Expressions (Regex)](https://doc.sitespect.com/knowledge/build?hsLang=en#regular-expressions-regex)
    - [WATTS](https://doc.sitespect.com/knowledge/build?hsLang=en#watts)
    - [Recommendations](https://doc.sitespect.com/knowledge/build?hsLang=en#recommendations)
- [Monitor](https://doc.sitespect.com/knowledge/monitor?hsLang=en)
- [Analyze](https://doc.sitespect.com/knowledge/analyze?hsLang=en#main-content)

    - [Data Export and Integration](https://doc.sitespect.com/knowledge/analyze?hsLang=en#data-export-and-integration)
    - [SiteSpect Reports](https://doc.sitespect.com/knowledge/analyze?hsLang=en#sitespect-reports)
- [Site](https://doc.sitespect.com/knowledge/site?hsLang=en#main-content)

    - [Tools](https://doc.sitespect.com/knowledge/site?hsLang=en#tools)
    - [Configuration](https://doc.sitespect.com/knowledge/site?hsLang=en#configuration)
- [Developers](https://doc.sitespect.com/knowledge/developers?hsLang=en#main-content)

    - [API Reference](https://doc.sitespect.com/knowledge/developers?hsLang=en#api-reference)
    - [Code Samples](https://doc.sitespect.com/knowledge/developers?hsLang=en#code-samples)
    - [Tips & Tricks](https://doc.sitespect.com/knowledge/developers?hsLang=en#tips-tricks)
- [Mobile](https://doc.sitespect.com/knowledge/mobile?hsLang=en)
- [Implementation, Deployment, and Security](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#main-content)

    - [How does SiteSpect work with CDNs?](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#how-does-sitespect-work-with-cdns)
    - [Single Tenant Implementations](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#single-tenant-implementations)
    - [Security Features](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#security-features)
    - [Deployment and Implementation Overview](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#deployment-and-implementation-overview)
    - [SiteSpect Engine & Admin API](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#sitespect-engine-admin-api)
- [Third-Party Integration](https://doc.sitespect.com/knowledge/third-party-integration?hsLang=en#main-content)

    - [Google](https://doc.sitespect.com/knowledge/third-party-integration?hsLang=en#google)
    - [Zuko](https://doc.sitespect.com/knowledge/third-party-integration?hsLang=en#zuko)
- [Troubleshooting](https://doc.sitespect.com/knowledge/troubleshooting?hsLang=en)
- [Releases](https://doc.sitespect.com/knowledge/releases?hsLang=en#main-content)

    - [Superfresh](https://doc.sitespect.com/knowledge/releases?hsLang=en#superfresh)
- [Feedback](https://doc.sitespect.com/knowledge/feedback?hsLang=en)

- [A/B Testing](https://www.sitespect.com/testing-and-experimentation/)
- [Personalization](https://www.sitespect.com/personalization-targeting/)
- [Recommendations](https://www.sitespect.com/recommendations/)

[![Monetate-Logo-Full-Color-1](https://doc.sitespect.com/hs-fs/hubfs/Monetate-Logo-Full-Color-1.png?width=200&height=29&name=Monetate-Logo-Full-Color-1.png "Monetate-Logo-Full-Color-1")](http://monetate.com)

<https://www.facebook.com/> <https://www.twitter.com/> <https://www.instagram.com/> <https://podcasts.apple.com/> [mailto:email@email.com](mailto:email@email.com)

Copyright © 2026, Monetate