# Autoptimize WordPress Plugin

Autoptimize is a popular WordPress plugin used for optimizing website performance by minifying, combining, and deferring JavaScript, CSS, and HTML. To ensure the proper functioning of Sirdata CMP scripts, it’s crucial to exclude them from Autoptimize's optimization processes.

***

**Steps to Exclude Sirdata CMP Scripts in Autoptimize**

1. **Access Autoptimize Settings**
   * Log in to your WordPress Admin Dashboard.
   * Navigate to **Settings > Autoptimize**.
2. **Exclude Sirdata Scripts from JavaScript Optimization**
   * In the Autoptimize settings, find the **JavaScript Options** section.
   * Locate the field labeled **Exclude scripts from Autoptimize**.
   * Add the following entries (one per line):

     ```
     .consentframework.com
     .abconsent.net
     ```
3. **Exclude Sirdata Scripts from CSS Optimization** (if applicable)
   * Scroll to the **CSS Options** section.
   * In the **Exclude CSS from Autoptimize** field, add:

     ```
     .consentframework.com
     .abconsent.net
     ```
4. **Save Changes**
   * Scroll to the bottom of the page and click the **Save Changes and Empty Cache** button. This ensures that the exclusions are applied and the cache is refreshed.
5. **Verify Exclusions**
   * Visit your website and check if Sirdata CMP scripts are functioning correctly. You can use browser developer tools (e.g., Chrome DevTools) to confirm that the scripts are loading properly and are not being optimized.

***

**Why Exclude Sirdata CMP Scripts?**

* **Dynamic and Geolocated Behavior**: Sirdata CMP scripts adapt dynamically to user location and preferences. Optimizing or caching these scripts can result in incorrect or outdated behavior.
* **Regulatory Compliance**: These scripts are critical for adhering to privacy regulations. Any interference may lead to non-compliance, complaints, or revenue loss.

***

By following these steps, Autoptimize will exclude Sirdata CMP scripts from its optimization processes, ensuring proper functionality and compliance.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cmp.docs.sirdata.net/en/install/cache-systems-exclusion/autoptimize-wordpress-plugin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
