This article gives instructions on how to set up policies for links.
This section gives instructions on how to add a pre-made links policy to the Acquia Optimize scan.
Click Select Domain on the landing page toolbar. 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.
Links that contain Lorem ipsum
Finds any links that contain “Lorem ipsum” (placeholder text). Helps to spot any overlooked areas where the actual content has not yet been inserted.
Most likely policy type: Unwanted
Subject: Links
Search for [Link Name]
Finds all instances of the inserted link. Useful when an overview of the count and distribution of a link is wanted.
Most likely policy type: Matches
Subject: HTML pages
Additional setup information:
Include words to search for inside links. Acquia Optimize has provided four common terms to search for. The user can easily remove or edit them.
By default, the terms will be searched in three cases: lowercase, title case, and uppercase.
Example: click here / Click here / CLICK HERE
Find all Dropbox links
Finds all links that lead to Dropbox.
Most likely policy type: Matches
Subject: Links
Search for unsafe links
Finds all links that start with http instead of https. It is highly encouraged to use https as it is a more secure protocol.
Most likely policy type: Unwanted
Subject: Links
Find all missing banking practice links
Finds all links that do not contain the words banking practice.
Most likely policy type: Matches
Subject: HTML pages
Find all missing financial services guide links
Finds all links that do not contain the words financial services.
Most likely policy type: Matches
Subject: HTML pages
Find all missing privacy policy links
Finds all links that do not contain the words privacy policy.
Most likely policy type: Matches
Subject: HTML pages
Find all missing product disclosure statement links
Finds all links that do not contain the words product disclosure.
Most likely policy type: Matches
Subject: HTML pages
Find all missing terms and conditions links
Finds all links that do not contain the words terms and conditions.
Most likely policy type: Matches
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).
Set up policies to find specific links. These are located in the href="" section of the anchor tags on the domain.
To create this policy:
href=("|').*SEARCH.*("|')
Replace the word SEARCH in the above line with what you want to find inside the link portion.
An example:
href=("|').*foo.*("|')
would match:
<a href="http://test.com/foo">here</a>
<a href="http://foo.com/test">click</a>
<a href="http://test.foo/test">click here</a>
but not
<a href="http://test.com/test">foo</a>
For instructions on how to build a custom policy, see the User Guide chapter:
If the policy you need is difficult to create, contact Support for assistance.
For more information, see the User Guide chapters:
Regular Expressions in source-code exclusions are not 100% compatible with Acquia Optimize Policies. The languages are different (Java and Ruby).
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.
Wed Nov 27 2024 08:14:32 GMT+0000 (Coordinated Universal Time)