Mon Oct 28 2024 18:41:49 GMT+0000 (Coordinated Universal Time)
The Source Code Exclude feature allows users to configure custom exclusions to website scans. The exclusions target particular elements and stop the contents from being flagged as issues.
Add exclusions to accessibility, readability, and misspelling checks on a customer level and then apply them to specific domains.
This article gives instructions for advanced users on how to configure a source code exclude for a website scan.
This section gives instructions on how to add a source code exclusion to the module on a customer level and then apply it to a domain.
Click Admin Settings (gear icon) on the top menu bar of any page in Acquia Optimize. The Domain Settings page opens.
The Admin Settings button is only available to site admins.
Select Source Code Excludes from the menu on the left side of the page.
The Source Code Excludes page opens.
Click Add Source Code Exclude.
The Source Code Excludes page opens.
Click to select Accessibility.
The Source Code Exclude details page opens.
Default for CMS: Click in the field and identify the CMS from the drop-down menu, if applicable.
If a CMS is selected here and a domain with the same selected CMS exists on the account, the domain will automatically have the source code exclude applied to it.
If you use a CMS and it is not present in the list, contact the Support Team to see if it can be added.
Exact: Identifies and filters out all instances where the complete and exact HTML snippet appears. For example, the snippet https:/ /w ww. example. com/ is an exact match for:
While these HTML snippets are NOT a match:
The source code exclusion is now stored on an account level but not applied to any domains. See the steps in this document on how to apply the source code exclusion to a domain.
This section gives instructions on how to exclude a segment of the webpage from the spellcheck.
Click Admin Settings (gear icon) on the top menu bar. The Domain Settings page opens.
The Admin Settings button is only available to site admins.
Select Source Code Excludes from the menu on the left side of the page.
The Source Code Excludes page opens.
Click Add Source Code Exclude.
The Source Code Exclude page opens.
Click Readability.
The Source Code Exclude details page opens.
CSS Target Selector (required): Click in the field and select an existing CSS selector pattern from the drop-down menu, or click + to add a new one.
The scan identifies elements that match the entered CSS selector patterns and omits them from the results.
There is no limit to the number of CSS Target Selectors that you can add.
For more information, see the user guide article:
The source code exclusion is now stored on an account level but not applied to any domains. See the steps in this article for instructions on to apply the source code exclusion to a domain.
For more information, see the user guide articles:
This section gives instructions on how to exclude a segment of the webpage from the spellcheck.
Click Admin Settings (gear icon) on the top menu bar of any page in Acquia Optimize. The Domain Settings page opens.
The Admin Settings button is only available to site admins.
Select Source Code Excludes from the menu on the left side of the page.
The Source Code Excludes page opens.
Click Add Source Code Exclude.
The Source Code Exclude page opens.
Click Misspellings.
The Source Code Exclude details page opens.
CSS Target Selector (required): Click in the field and select an existing CSS selector pattern from the drop-down menu, or click + to add a new one.
Once added, subsequent scans identify elements that match the entered CSS selector patterns and omits them from the results.
There is no limit on the number of CSS Target Selectors that can be added.
For more information, see the user guide article:
The Source Code Exclude is now stored on an account level but not applied to any domains. See the steps in this article for instructions on how to apply the source code exclusion to a domain.
For more information, see the user guide articles:
This section gives instructions on how to apply a source code exclusion to a domain.
Click Admin Settings (gear icon) on the top menu bar of any page in Acquia Optimize. The Domain Settings page opens.
The Admin Settings button is only available to site admins.
Click Action on the same row as the domain to scan.
Select Edit Domain from the drop-down list.
The Edit Domain pane opens.
In the Source Code Excludes field: Click the drop-down arrow and select the domain that contains the source code.
This section gives instructions on how to locate HTML snippets that can be used to set up a source code exclusion.
HTML snippets that affect the website compliance level can be found in FastTrack, along with a list of the checks the snippets are flagged for.
How to find HTML snippets that affect website compliance levels:
Click Accessibility (icon of a person standing with arms outstretched) on the menu bar at the top of the domain dashboard. The Accessibility page opens.
Click FastTrack, from the menu on the left side of the page.
The Accessibility FastTrack pane opens.
From the PageDetails section for any page within Acquia Optimize, click Accessibility (icon of a human with outstretched arms) on the top menu bar.
Snippets with potential errors are listed on the right side panel of the page.
For more information, see the user guide article:
For more information, see the user guide articles:
If this content did not answer your questions, try searching or contacting our support team for further assistance.