This article gives instructions on how to add a title policy using the pre-made policies in Acquia Optimize.
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.
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
Regex: Use regular expressions to define what should be searched for.
Regular Expressions in source-code exclusions are not 100% compatible with Acquia Optimize Policies. The languages are different (Java and Ruby).
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:
<title>.*test.*<\/title>
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.
For more information, see the User Guide chapters:
See Acquia Optimize for Developers for documentation and advanced help files including SDK information for developers.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Mon Oct 28 2024 18:47:32 GMT+0000 (Coordinated Universal Time)