Introduction¶
The Policies feature includes a large collection of pre-made policies, as well as the option to create custom policies. This article provides instructions on how to create a custom policy.
Add a pre-made policy¶
For instructions on how to add a pre-made policy, see the user guide article:
Pre-made policies.
Instructions¶
This section provides instructions on how to create a custom policy.
- Click Global Policies Overview (mallet icon) on the top menu bar of the domain dashboard.
-
- Alternatively, click on the header of the Content Policies section on the domain dashboard.
-
- The Global Policies page opens.
- Click Create your own policy if there is no suitable pre-made option.
-
The New Policy creation page opens.
This section provides instructions for the types of policies:
- All Assets (HTML and Documents)
- HTML Pages
- Documents
- Links.
All Assets (HTML and Documents)¶
- Click to select All Assets (HTML and Documents).
- Select Settings from the options at the top of the New Policy page
- Display this policy as
Select a tag for the policy:- Unwanted: Unwanted items are displayed with this tag.
- Required: Required items are displayed with this tag.
- Matches: Items that match are displayed with this tag.
- Priority
Select a priority level for this policy.
- Low
- Medium
High
For more information, see the user guide article:
Issue priority.
Scheduled:
Click to switch scheduled scanning for this policy OFF or ON:
- OFF to include this policy in the scan manually.
- ON to include this policy every time the website is scanned.
- Choose where the policy should apply:
- Global-All Domains: This policy will run on all domain scans.
- Choose Domains: This policy will run on only selected domain scans.
- Click in the field and select the domains from the drop-down list.
- Rule Operator: In the Policy Rules section, tick the radio button to select the Rule Operator. The choices are:
Select +Add rule to policy: Click to add a rule to the policy. The rules selection list opens.
Skip to the section in this document: Add Rules to Custom Policies.
HTML pages¶
Click to select HTML pages.
The New Policy configuration pane opens.
Select Settings from the options at the top of the page:
Select +Add rule to policy: Click to add a rule to the policy. The rules selection list opens.
- Skip to the section in this document: Add Rules to Custom Policies.
Documents¶
Click Documents.
Select Settings from the options at the top of the page.
Select the options that fit the policy you want to create.
- Display this policy as:
- Unwanted: Unwanted items are displayed with this tag.
- Required: Required items are displayed with this tag.
- Matches: Items that match are displayed with this tag.
Priority:
For more information, see the user guide article:
Priority, Severity, Difficulty, and Likelihood.
Scheduled:
Click to switch scheduled scanning for this policy OFF or ON:
- OFF to include this policy in the scan manually.
- ON to include this policy every time the website is scanned.
- Choose where the policy should apply:
- Global-All Domains: This policy will run on all domain scans.
- Choose Domains: This policy will run on only selected domain scans.
- Click in the field and select the domains from the drop-down list.
- Rule Operator: In the Policy Rules section, tick the radio button to select the Rule Operator. The choices are:
Select +Add rule to policy: Click to add a rule to the policy. The rules selection list opens.
- Skip to the section in this document: Add Rules to Custom Policies.
For more information, see the user guide article:
Policies: Pre-made.
Links¶
Click to select Links.
Select Settings from the options at the top of the page:
Select +Add rule to policy: Click to add a rule to the policy. The rules selection list opens.
- Skip to the section in this document: Add Rules to Custom Policies.
For more information, see the user guide article:
Policies: Pre-made.
Add Rules to Custom Policies¶
Select +Add rule to policy: Click to add a rule to the policy. The rules selection list opens.
Drag and drop a rule into the Policy Rules section. The New rule pane opens.
- Fill in the fields, each policy rule selection may have any combination of the following configuration options:
- Rule name (required): Click in the text field and create a short description of the rule.
- Search for content that: Click the drop-down arrow and select the type of text to search for. The options are:
- Starts with: Scans for a match that starts with a specified character, word, or string.
- Contains: Scans for a match that contains single characters, words, or phrases.
- Contains Words: Scans for a match that contains specific individual words.
- Ends with: Scans for a match that ends with a specified character, word, or string.
- Equal: Scans for a match that is equal to a specified character, word, or string.
Regex: Scans for a match in a regular expression set of strings.
- Conforms with: Search for content that conforms with (free text field).
- And does not conform with: Enter text to exclude.
CSS Selector: Enter a CSS selector.
For more information, see the user guide article:
Policies: CSS selectors.
- Tick the box to indicate that the search will find pages that are: Containing or Not containing the query.
- Rule operators: Skip to the full list of Rule Operators.
- Rules: Skip to the full list of Rules.
Limit or exclude: Add CSS selectors to either limit the search within those values or exclude the snippets with the given inputs.
For more information, see the user guide article:
Policies: CSS selectors.
- Limit search: Click the drop-down arrow ad select Limit search or Exclude.
- Value: Enter a CSS selector value.
Characters: Use the drop-down list to select a value limit:
- Less Than
- Less than or equal
- Greater than
- Greater than or Equal
- Equal.
Enter a numerical value in the text field.
- Meta Name: For the Meta Header option, enter a name in the field.
- Meta Header Expr:
- Drop-down list: Select a limitation for the Meta Header expression:
- Starts with
- Contains
- Contains Words
- Contains sentence
- Ends with
- Equal
- Regex
- Date age greater than
- Date age less than.
- In the text field, define the meta headers to match
- Click Save. The New rule-Text window closes and the Policy Rules page is visible.
- Click Save on this page to save all of the changes. A dialog box opens.
- Enter the policy Name (required) and include a Note in the dialog box and then click Save.
- From the options at the top of the page, select +Add rule to the policy. Repeat the steps above to add as many rules as needed.
- Click Save. The Policy List is open and the new policy is present. A Policy scan begins automatically.
Edit or Remove a Policy¶
This section gives information on how to edit or remove a policy from the global policy list.
- From the Acquia Optimize Dashboard (Home), click the URL for a website. The Statistics page opens.
- In the Content Policies section, click the arrow. The Policies summary page opens.
- From the menu on the left-hand side of the page, click Policy List. The Policy List page opens.
- In the list, click the small icons under the rule name to view the rule attributes.
On the same rule as a policy, click Action and select Show on Global Policy List.
The Policy List page opens.
- On the same row as a policy, click Action and select:
- Run policy again: Select to scan this policy again.
- Edit: Select to edit the policy.
- Clone: Select to make an exact duplicate of the policy.
- Archive: Select to remove the policy from the active scan, but save it for later in the archive.
- A dialog box appears, asking, "Are you sure, you want to Archive the Policy (policy name)?
- Click OK to archive the policy or Cancel to cancel the action.
- To retrieve an archived policy: From the Home page, click Global Policy Overview (the mallet icon on the menu bar). The Global Policies page opens.
Click Policy List.
The Policy List page opens.
- Click Action on the same row as a policy. The list expands.
Select Unarchive.
A dialog box asks for confirmation, "Are you sure you want to remove the policy (policy name) from the archive?" Click OK to restore the policy to the active policies list, it will run on the next scan.
- Delete: Click to remove the policy permanently.
- Save the changes. A dialog box opens.
- In the dialog box, edit the policy Name and Note if needed and then click Save.
History¶
The History Center stores all Policies issues and details from previous scans.
Click History Center (bar graph icon), located on the top menu bar.
The History Center landing page opens.
- The page contains the following layout:
Domain: In the first field, click to expand the list of domains.
- Click to select a domain from the list or switch to another domain.
Module: In the second field, click to expand the list of available modules.
Click to select Policies from the drop-down list. The Policies page of the History Center opens.
- The topmost section gives information on the profile that is being used for the results shown.
Viewing as Profile: This shows the profile that is being used.
For more information, see the user guide article:
Add Profile.
- Device: The type of device used.
- Measure from: Distance from the server location.
- Network speed: The speed of the network.
- Check frequency: The frequency of the check.
Important: The Dashboard always shows data with the default profile selected. To change this, select a new profile (click the drop-down arrow to see the available profiles). Please be aware that when you change the profile, the numbers on all three sections inside the Performance module update accordingly.
- Graph with performance speed and date as well as a donut chart showing the average performance score.
- Scan history results: This table shows valuable scan data from previous scans.
Scan history results: This table shows valuable scan data from previous scans.
- Crawled at: Date and time of scan.
- Pages crawled: Number of pages scanned.
- Documents crawled: Number of documents scanned.
- Domain compliance: Percentage of compliance achieved.
- Comparison to average: The score of the website as compared with the average score within the industry.
- Policies: The number of policy issues, broken down into category icons.
- Changes since previous crawl: Percentage of changes made since the last scan.
For more information, see the user guide article:
History Center.
Rule Operators¶
This section gives information about the rule operators and how they can be used.
Rules¶
This section gives information about rules and how they can be used.
- Page HTML: Search for text in the entire domains html
- Page URL: Set a rule for internal page URLs
- Text: Search for text excluding CSS and HTML tags
- Page title: Search for text in the page title (title is not the header)
- Page title length: Define when the rule should apply for the title
- Heading text: Search for text in headers (h1,h2,h3,h4,h5,h6)
- Heading text length: Define when the rule should apply header texts
- Meta header: Search for meta header tags, that matches query
- Meta header length: Define when the rule should apply for meta headers
- Link text length: Define when the rule should apply for link texts
- External link count: Define when the rule should apply for external links
- File size: Search files across selected domains
- Image size: Search for images across selected domains
- Image text: Search for images with this name
- Image text length: Define when the rule should apply for image texts
- Readability level: Search for text that is in compliance with a school degree.
Additional resources¶
To add the Policies feature to your plan, contact your sales representative.