# Script Blocker (Pro)

{% hint style="info" %}
Script Blocker will be automatically turned off while cookie scanning is running so all cookies are found and none are blocked by script blocker. Once cookie scanning is finished script blocker will be enabled automatically again.
{% endhint %}

<figure><img src="https://287138243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhngEwtvWDX8DN03PMk%2Fuploads%2FggDGdqacos4axKqw2jTJ%2Fgdpr%20pro%20script%20blocker.png?alt=media&#x26;token=e878dcaf-e091-4ca7-80ea-d03de452343e" alt=""><figcaption></figcaption></figure>

The following are the fields under Script Blocker Settings:

* **Script Blocker is currently -** Enable or Disable the Script Blocker using the toggle button.
* **Custom Scripts** - Enter non-functional cookies script here (e.g. Google Analytics) to be used after the consent is accepted.
* **Header Scripts** - Allows inserting the script in the header.
* **Body Scripts** - Allows inserting the script in the body.
* **Footer Scripts** - Allows inserting the script in the footer.
* **Click here to manually select the cookie categories -** By clicking the Advanced Settings button, the category of each third-party script can be updated by using provided dropdown options.

![](https://287138243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhngEwtvWDX8DN03PMk%2Fuploads%2FKIBqqOZRmiE24XYfxKuY%2Fadvanced%20script%20blocker.jpg?alt=media\&token=f49a028b-3c1a-4072-9d9a-9fe5e4da9763)

With Script Blocker cookies used by third party scripts (eg. Google Analytics, YouTube video embeds etc.) will be stored on visitors' browsers according to their cookie preferences. If a user decides to not allow marketing cookies then third party services will not run on that user's browser. By default, the script blocker is off.

Visitors will see a message to accept certain category cookies if the script blocker is blocking any cookies which are required to display content.

![Accept Cookies message](https://287138243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhngEwtvWDX8DN03PMk%2Fuploads%2FwE9hcSAztZXXvV3mgIqR%2FFrontend%20Cookie%20blocked.png?alt=media\&token=b992493f-186b-4d71-bf72-25d09879682c)

If a user updates cookie preferences then new settings will be reflected in the browser and according to that cookies will be set.

## Help

![Help section](https://287138243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhngEwtvWDX8DN03PMk%2Fuploads%2FYZbeO0J1ExqUyOMArObd%2Fhelp%20section.png?alt=media\&token=f6d14a46-b194-4168-a6dc-fc6e2fd08ac0)

The **Help Guide** is available at the upper right corner of the screen of GDPR Cookie consent plugin.

![Cookie Bar Shortcodes](https://287138243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhngEwtvWDX8DN03PMk%2Fuploads%2Fs1Gd8OKO9rb29UHu6w6E%2FHelp%20-%20Expanded.png?alt=media\&token=f81c0822-2c7d-49db-839f-9f9c304465bc)

The Cookie Bar Shortcodes section lists all the shortcodes that are used in the plugin. These shortcodes can be used anywhere on the website, pages, and posts, not just the cookie bar. To add the shortcodes inside a template file, you can use the **‘do\_shortcode’** function.

{% embed url="<https://youtu.be/oESZyA5Mnfg>" %}
**How to use the script blocker feature**
{% endembed %}


---

# 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://docs.wpeka.com/wp-gdpr-cookie-consent/script-blocker-pro.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.
