Information for: DEVELOPERS   PARTNERS

Installing Experience Builder for Drupal 8

Installing Experience Builder

Use the following instructions to install and configure the Experience Builder client module on your Drupal 8 website.


As you prepare to use Experience Builder with your website, ensure you plan for the following requirements:

Component Requirement
Drupal version Drupal 8
PHP Dependency manager** Composer (installation instructions)
Keys After purchasing Acquia Lift, Acquia will email you a group of keys required to connect to the Experience Builder service.

Installing Acquia Lift Experience Builder

Use the following steps to install the Experience Builder client on your website:

  1. Open a command prompt window, and then navigate to the directory containing your main composer.json file.

    Note for Acquia Cloud users

    The main composer.json file is located in your website’s docroot directory.

  2. Run the following commands:

    composer config repositories.drupal composer
    composer update
    composer require drupal/acquia_lift:~3.0
    cd .. && git add --all && git commit -a -m 'Adding Experience Builder modules' && git push origin master
  3. Deploy the updated master to your website on Acquia Cloud.

  4. Sign in to your website as an administrator, and then click Extend in the administrative menu.

  5. Select the check boxes for the Acquia Lift module.

  6. Click Install.

  7. In the administrative menu, click Configuration, and then click the Acquia Lift link.

  8. Use the following steps to retrieve, and enter the information you need for the Acquia Lift Credential section.

    1. Sign in to Profile Manager in a new browser tab, and then click the Configure tab.

    2. From the left menu, click the Customer Data link.

    3. Click the customer name for whom you are installing Experience Builder.

    4. Retrieve the following values from the webpage:

      • Account ID
      • Site ID
      • Assets URL
      • Decision API URL
      • Authentication URL


      Each website must have a unique Site ID including development and testing environments. For more information, see per-environment configuration settings.

  9. Return to your website, and then update the values based on those from the Profile Manager interface.

  10. Click Save configuration.

Next, you must configure your per-environment configuration settings in your website’s settings.php file.

Per-environment configuration settings

Unless you specifically take action, data collected by testing environments can contaminate data collected on your production environment.

To avoid data contamination, download this sample code, and install the code in your website’s settings.php file. Change the provided code to configure the variables associated with Acquia Lift, and its components (including $config['acquia_lift.settings'], and $config['acquia_contenthub.admin_settings']) for different values depending on the environment in which they exist.

After you install all required modules, and ensure the modules are available for use, your production website can connect to the Experience Builder service, and your non-production website will not interfere with data collection for your production website.