Scanning a Website
The first step of your Cookie Consent implementation is scanning your domain. The main aim of scanning a domain is to identify first- and third-party cookies, tags, trackers, pixels, beacons, forms and storage.
When a new website is added to the OneTrust application to be scanned, a record is created for the domain and the scan. The scan will remain in the Pending status while records are being created and until the scanner starts.
The scanner is a virtual machine that runs on Google Chrome. It will only scan pages that are within the domain that you have entered. For example, if you scanned onetrust.com and there is link within onetrust.com to zentoso.com, zentoso.com pages would not be scanned. Subdomains of the domain scanned will be included in the scan if scanned from the root domain. For example, if you scan onetrust.com, all subdomains of onetrust.com will be included in the scan, but if you scan www.onetrust.com only, this subdomain and pages/paths of this subdomain will be scanned.
OneTrust leverages a Google Chrome-based scanner. This scanner, which replaced the Firefox-based scanner, provides a more holistic view of tracking technologies that are dropped on your site and features enhanced stability and performance.
You can leverage the Google Chrome scanner for the following benefits:
-
Improved functionality for identifying third-party tracking technologies.
-
Reduced scan times.
-
Improved performance when scanning behind login authentication.
-
Enhanced bandwidth for large scan volumes.
-
Built-in unique user agent.
When a domain scan is added in the OneTrust tenant, the OneTrust cookies OptanonConsent and OptanonAlertBoxClosed will be added in the Categorizations tab. For more information on these cookies, see OneTrust Cookies.
If your scanned domain does not align with the domain where the script is integrated, consent will not be correctly captured and the banner will reappear every time you load the page.
The scanner treats any URL starting with www. as a subdomain.
If you scan www.onetrust.com, the OneTrust cookies will only write to this subdomain with base script functionality.
If you scan onetrust.com, the OneTrust cookies will write to www.onetrust.com, cookies.onetrust.com, consent.onetrust.com, and so on. Similarly, if you scan a path like onetrust.com/company with the Limit scan to this path within site setting enabled, the OneTrust cookies would be saved to that path.
For more information, see OneTrust Cookies.
Any cookies that are dropped on a user action and not page load (for example, a form submission other than login or add-to-cart action) will not be recorded in the scan results. If you have a login page behind which there are additional cookies and would like OneTrust to identify those cookies, see Scanning Behind Authentication. If the login page is redirecting to a different domain, then the login URL as well as redirect domain both will be required to be entered in the login configuration.
While the scanner will attempt to reach all pages it can, scanning every page on your site is not necessary. Scanning most of the pages will record the cookies and allow you to perform the necessary blocking activities efficiently.
If there is a particular page that you would like to include/exclude in the scan, or scan with priority or add it to the target pages in the scan configuration. You can also enter your sitemap directly in the scanner configuration. If you put a page limit in the scan configuration, the scanner will only scan up to the limit of pages, but is not guaranteed to scan that exact number of pages.
When the scanning activity has completed, the status changes to Processing Data.
During the data processing activity, the scan data will be migrated to your tenant and categorized based on the OneTrust Cookie database Cookiepedia.
Once the data processing activity is complete, the scan will move into a Completed status.
OneTrust typically scans a website within 6 to 24 hours. However, the scan time is dependent on the number of scans added to your OneTrust environment at one time and the number of pages a website has. For example, if your site has 15,000 pages, it might take longer than the suggested time for the scan to complete. To help improve scanning time, you can limit the number of pages scanned for a domain.
Scanner Statuses
- Pending
-
Your scan has been submitted and the proper tasks are being created for the scan to begin.
- Queued
-
Your scan is waiting to begin once other scans have completed.
- Scanning
-
The scanner is now scanning the domain that you have entered to be scanned. The scanner acts like a user clicking from page to page. During this process the cookies dropped on each page load will be recorded.
Note:While it is normal for scans to take multiple days, if your scan is taking too long to complete you can click Get Help on the Context menu to retrieve additional scan metadata. This will help support resolve the issue.
- Completed
-
The scan has completed when in this state, you can click into the domain and view the scan results. For more information on viewing scan results, see Viewing Scan Results.
- Partially completed
-
Authentication of the scanner failed. Check your login credentials and configuration. For more information on how to configure login, see Scanning Behind Authentication.
- Scan error
-
This status indicates the scan has completed, but there was an issue migrating the data.
- Canceled
-
A user canceled the scan.
To add a website to the scanner
Mozilla/5.0 (X11;\ Linux\ x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.199 Safari/537.36;OneTrust;
OneTrust recommends using scanner IPs to safelist the user agent. You have to safelist the OneTrust user agent if bot detection is present on the site that could block OneTrust from accessing the site.
Add Website Screen Reference
|
Field |
Description |
|---|---|
| Details | |
|
URL |
Enter the URL of the site you want to scan. The depth of the scan will depend on how the URL is entered. The domain entered will be top level domain scanned with the subdomains being scanned depending on how the URL is entered as described below. Below, fid examples of how each site would be scanned depending on the URL entered when scanning:
Note:
The scanner text field has a character limit of 1024 characters. |
|
Owner |
Select a user to designate as the website owner. The user launching the scan displays as the owner by default. Users designated as owners are notified via email of changes to their website scans and associated tracking technologies. |
|
Manage consent separately from root domain
Note:
This setting only displays when scanning a subdomain. |
Enable this setting to capture and manage consent for this subdomain independently from its root domain. |
| Advanced Settings | |
|
Sitemap |
If you want to scan a site in a particular pattern or scan pages that may not be easily accessible through the website interface, enter the URIs for hosted XML sitemaps, each on its own line. |
|
Smart Scope |
Enable this setting to automatically limit the scanning scope to 1,000 pages and prioritize sitemap pages. |
|
Custom number of pages in scan scope |
Enter the number of pages to which you want to limit your scan. OneTrust recommends limiting scans to 2,000–3,000 pages.
Note:
The scanner can scan up to 15,000 pages. OneTrust does not recommend scanning all 15,000 pages. However, if this is required, OneTrust recommends splitting pages with sitemap URLs and scanning them separately. |
|
Skip pages outside sitemap |
Enable this setting to only scan pages specifically included in the sitemap. |
|
Organization |
Select the organization responsible for the website.
Note:
Users who have access to this organization will be able to view the scan. |
|
Scanner server location |
Select the location from which you want the scan to originate. By default, OneTrust scans the website from North Europe. If your website is not accessible from Europe, please safelist our IP address. For more information on OneTrust IP addresses, see About OneTrust Hosting Options, Backup, and Locations. |
|
Capture time delayed cookies |
Enable this setting to instruct the scanner to wait for the configured amount of time (up to 60 seconds) before scanning webpages in order to detect time-delayed cookies. |
|
Query parameters |
If you want to limit the scan to pages with certain query parameters (which appear at the end of a url in the format ?parameter=value), enter the parameters separated by commas. |
|
Target specific sections |
Enable this setting to include, exclude, or prioritize certain pages in the scan. Configure the fields and enter the URLs for the pages, paths, or subdomains.
|
To configure a custom experience kit
When scanning a domain, if you click Continue to banner setup, you will be prompted to select or create an experience kit after adding a website.
Creating a new experience kit will add a new geolocation rule group. You can manage your geolocation rule groups on the Geolocation rules tab.
For more information, see Configuring Geolocation Rules.
To re-scan an existing website
To reassign a website to a different organization
To schedule a website scan
Scheduled scans are limited to 20 per day unless overridden at the tenant level. Contact OneTrust Support to override the default scan limit.
If there are leftover scans scheduled, they will be picked up the following day.
Example:
Day 1: 30 scans scheduled. 20 scans run.
Day 2: 10 scans scheduled. 10 day-2 scans are run, plus 10 leftover day-1 scans.
You can schedule scans for your domains based on new content being added and maintaining your Cookie Consent implementation. Read more here.
To stop a website scan
If a scan is Scanning, the scan will stop, and the results will be available as the latest scan result.
If a scan is Pending and there are no previous scans completed on the site, the scan is removed.
If a scan is Pending and there is a history of one or more successful scans, then only the new scan is removed from the pending list, and previous reports will be available as before.
To access the scan job queue
To view a website's activity history
In Cookie Consent, you can access an audit log of activity for each of your domains to review any changes made over time.
To export website data
To delete a website from the scanner
Cookie Scanner IP Addresses
Frequently Asked Questions
What should I do when the scanner returns zero pages and zero cookies?
-
Check if the website is available in the region that the scanner is located. For more information, see About OneTrust Hosting Options, Backup, and Locations. Safelisting the scanner’s IP address will help if the website is not available in the scanner’s region.
-
If the website is behind a firewall, that will require safelisting the scanner’s IP address.
-
Check if the website has a re-direct. If this re-direct is to a domain other than the one entered for scanning, the scanner will not yield expected results. For instance, if you are trying to scan example.com but it is automatically re-directed to xyz.com, then the scanner will return zero pages and zero cookies and you would have to scan xyz.com.
If all the above fail or are not applicable, OneTrust recommends adding a few pages in Target Pages to Scan. This can direct the scanner to visit all the pages mentioned in the scan configuration.
How do I scan pages that are behind authentication?
See see Scanning Behind Authentication for information on configuring a scan to pick up pages behind login.
Why does the scan return different results with every re-scan?
Multiple scans of the same website can produce varying outcomes as the scanner may navigate different paths throughout the site. For instance, in a case where a page becomes unavailable during a scan due to load timeout, and it includes links to other pages that lead to additional links branching out to other pages, there is a possibility that this cluster of pages may not get scanned.
How long does it take for the scanner to complete a website scan?
Scan time varies from a couple hours to several days. Scan time depends on several factors including total number of pages as well as number of scans launched at the same time in the tenant.
How do I scan my website if it has more than 15,000 pages?
You can scan your domain in parts by initiating multiple scans of the same website. Each time, add a few sub-domains in the Target Pages to Scan section of the scan configuration. You can also add a few sitemaps each time in the Sitemap URL section.
Is OneTrust able to perform user actions?
No, our scanner does not have the ability to perform any user actions like checking boxes, accepting existing banners, submitting forms, etc.
What is the difference between the Pages and Total Pages columns on the Websites screen?
Pages is the number of pages scanned for that particular scan.
Total Pages is the sum of pages for all scans ever run for that domain.
Can the scanner successfully scan Single Page Application (SPA) sites?
No. The scanner does not support SPA sites. You can either manually add the pages you want to scan or manually add the cookies relevant to your site.
Does the scanner require any robots.txt directives?
The scanner does not require any specific Allow rule within robots.txt. You only need to safelist the OneTrust user agent within your security or bot‑detection systems (e.g., Cloudflare Bot Management, WAF, or custom firewalls) to prevent the scanner from being blocked.