This article gives instructions on how to add a title policy using the pre-made policies in Acquia Optimize.
Instructions¶
To set up a title policy that searches the title tags of your HTML pages.
Click Select Domain on the main page header on the top left. The Domain Overview page opens.
Click Open on the same row as the domain name.
The Dashboard for the domain opens.
Click the Global Policies Overview button (mallet icon) on the top menu bar.
Alternatively, click on the header of the Content Policies section.
The Global Policies page opens.
Click Add new policy.
The New Policy page opens.
- Select a pre-programmed Title policy from the list. The following titles policies are available pre-programmed within Acquia Optimize:
Page titles that contain Lorem ipsum
This policy finds any page titles that include “Lorem ipsum” (the placeholder text). Helps to spot any overlooked areas where the actual content has not yet been inserted.
Most likely policy type: Unwanted
Subject: HTML pages
- Assign Rule Operators.
- Assign Rules.
- Click Save to save the changes. A dialog box opens.
- Enter the policy Name (required) and Note if needed into the dialog box and then click Save.
- Select +Add rule to the policy.from the options at the top of the page. 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.
Rule Operators¶
Rules¶
- 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.
Custom Examples¶
To create this policy, check the RegEx, clear the case sensitive box, and then enter the following in the Query field:
<title>.*SEARCH.*<\/title>
Replace the word SEARCH in the above line with what you want to find inside the title tag.
Example:
would match:
<title>This is a test title</title>
For instructions on how to build a custom policy, see the User Guide chapter: Create your own Policy. If the policy you need is difficult to create, contact Support for assistance.
Additional Resources¶
For more information, see the User Guide chapters:
See Acquia Optimize for Developers for documentation and advanced help files including SDK information for developers.