Information for: DEVELOPERS   PARTNERS

Using bootstrap mode with Personalization

You may want to perform arbitrary tasks before the lift.js file runs. If you need more direct control over when content injection and data collection happen, you can use bootstrap mode to interrupt the bootstrap process to perform other actions.

To activate bootstrap mode:

  1. Sign in to your Drupal website as an administrator.
  2. Go to Configuration > Personalization.
  3. Click Advanced configuration to open the fieldset.
  4. Select the Bootstrap Mode you want to use. The values are:
    • Auto (default): Scripts will bootstrap and act as quickly as possible
    • Manual: Scripts will load but not collect data, deliver content, and allow admins to login
  5. Click Save configuration.

The Manual option is useful for tasks such as checking the value of a cookie, or setting the value of a field before Personalization bootstraps.

To resume the bootstrapping process, call AcquiaLiftPublicApi.personalize().