Is my Privacy Policy link present on all pages?


An important aspect of many Data Privacy laws is the requirement for the privacy policy to be easily accessible from any page on the website. You can check your site for any pages missing the privacy policy link.


Follow these steps to set up an Audit to look for the privacy policy link on each page of the Audit:

  1. Create a simple Audit to scan pages on your website.
  2. Create an On-page Action with an execute action type and paste in the following code:

//add a CSS Selector to match your privacy policy link e.g. [href*='privacy-policy']

let cssSelector = "INSERT CSS SELECTOR HERE";

([...document.querySelectorAll(cssSelector)].length > 0) ? console.log('privacy policy link was found') : console.log('privacy policy link was NOT found');

  1. Modify the code where it says "INSERT CSS SELECTOR HERE" line with your own CSS selector to match the privacy policy link on your site.
  2. Save and run the Audit.

Note: We recommend you test the JavaScript snippet in the developer console in your browser to test the results before you run the Audit.

Once the Audit run is complete, you can go to the Browser Console Logs report and filter by console messages. See the script above for examples.

To be automatically notified, create an alert from the Browser Console Logs report. First, filter by the message that you do not want to see e.g. "privacy policy link was NOT found", then alert if the number of pages (after filtering) exceeds 0.

Data Privacy Law Information

Here are some useful links for information on GDPR, CCPA, and CPRA regulations:

  1. GDPR (General Data Protection Regulation):
  2. CCPA (California Consumer Privacy Act):
  3. CPRA (California Privacy Rights Act):
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us