Introduction¶
Drupal admin users can add the Acquia Optimize module to their Drupal account. With this module, content authors in Drupal can start the Quick Scan operation and see the results directly in the Drupal edit screen. This article provides instructions for admin users on how to set up and initiate a scan with this feature.
Install in Drupal¶
This section provides instructions on how to install and enable the Acquia Optimize module in Drupal.
- Log in to Drupal.
- Click Extend on the top menu bar.
- Use the filter to search for Optimize.
- Tick the radio box to select Acquia Optimize.
- Click Install.
- Confirm the installation, click Content on the top menu bar.
- Click Edit on the same row as a list item to view the details.
- Locate Acquia Optimize in the panel on the right side of the page.
- Click the arrow to expand the details.
- Click API key. This step is required to ensure that you are a registered user. You will get the API key and URL from Acquia Optimize.
- Open Acquia Optimize.
- Click Admin Settings (gear icon) on the top menu bar.
- Click API Users in the left menu. Add a new API user if needed.
- Click Action on the same row as an existing API user in the list.
- Select See API Token.
- Copy the token.
- Return to the Drupal page and paste the token into the space provided.
- Return to Optimize and close the token window.
- Copy the corresponding API URL from the list.
- Return to the Drupal page and paste the API URL into the space provided.
Select the appropriate Accessibility Guideline from the drop-down menu.
For the full article on WCAG compliance, visit the user guide article:
WCAG compliance.
- Click Save Configuration.
- Click Content on the Drupal menu bar to return to the list of pages.
- Click Edit on the same row as the page with the Acquia Optimize Module.
- Locate Acquia Optimize in the panel on the right side of the page.
Click the arrow to expand the details.
The Start Quick Scan button is now available.
-
Acquia Optimize configuration¶
This section provides instructions for Drupal admin users on how to configure user permissions.
- Open the Nodes editing interface in Drupal. This can be done by Drupal admin users.
The module shows the Start Quick Scan button in the editing interface. It also shows the following message:
Acquia Optimize Module is not configured. Please, add account details in the module settings (link to settings) or
register for a free scan
for a demo.
- Approve the Acquia Optimize scanning permission to continue.
- Click People on the top menu bar
- Select Permissions. Only admin users can do this action.
- Use the filter to find Optimize.
Assign required permissions to user roles.
- Acquia Optimize Administration
- Select the user roles to grant admin permissions to the Optimize module.
- Acquia Optimize Scanning
- Select the user roles to grant permissions to do a scan.
Users with the Author role must also be assigned to the Acquia Optimize permission to view the Acquia Optimize module through the Editor. Content Author users can scan a single web page in Drupal before it is published.
Do a Quick Scan¶
This section provides instructions for authorized users on how to do a Quick Scan with the Drupal Optimize module.
Click Start Quick Scan.
The system displays a progress bar to show the scan render progress. On completion of this process, the results are loaded and the rendered page is sent to the Acquia Optimize API for the scan.
- When the module receives the results, you can view them summarized on the Drupal sidebar in the following categories:
- Click View Issues to view the list of issues and number of occurrences on the page of each issue.
- Click a specific issue for more information about it. For example, snippets of the HTML where the issue was detected.
- Navigate to the Acquia Optimize UI to view the full reports if you have an Acquia Optimize account.
- Click the link to the Acquia Optimize Account in the module UI in the editor.
- Click the link to the Acquia Optimize user documentation to view the user documentation.
- Re-scan the page as needed.
Errors¶
The following errors can occur with a scan. This list provides the error name and a short description about what the error means:
Error: There was an error gathering the content. Please try again.
Description: The module is unable to build the payload.
Error: The scan request has timed out. Please try again later.
Description: The API does not respond or times out.
Error: Access to the Acquia Optimize API was denied. Contact your administrator for help.
Description: The API provided does not have permission for the Quick Scan feature (422).
Error: Could not connect to the Acquia Optimize API due to a server error. Please try again later.
Description: The API has failed (500-5xx).