Manage Cookie Consent Forms for Clean Screenshots

When capturing screenshots of websites, cookie consent forms and banners can obscure important content. These cookies are used by websites to track user behavior and preferences, but they can interfere with the clarity of your screenshots. To ensure your screenshots are clean and professional, it's essential to manage or hide these consent forms effectively.

The General Data Protection Regulation (GDPR) mandates that websites obtain explicit consent from users before deploying cookies. As a result, many sites display cookie consent banners that may obstruct the view of the website content you wish to capture.

By using the &consent=true parameter, you can automatically hide cookie consent banners from your screenshots. This helps in obtaining a clear, unobstructed view of the website, which is crucial for documentation, presentations, or any scenario where clean screenshots are required.

Note that automatic acceptance of cookie consent may not work on every website due to varying implementations. For more control, refer to the Click Elements page for detailed guidance on interacting with page elements manually.

Proper management of cookie consent banners not only improves the quality of your screenshots but also ensures that they adhere to privacy standards and regulations.

Examples of Managing Cookie Consent Banners

The following example illustrates a website with a prominent cookie consent banner at the bottom of the page.

Screenshot showing a cookie consent banner

To remove the cookie consent banner from the screenshot, use the following API request:

// Example URL to capture screenshot without cookie banner https://api.addscreenshots.com/screenshots
?apikey=
YOUR_API_KEY
&consent=true
&url=https://digitalocean.com

The result after removing the consent banner is shown below.

Screenshot without a cookie banner