> For the complete documentation index, see [llms.txt](https://developers.didomi.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.didomi.io/cmp/amp/blocking-behaviors.md).

# Blocking Behaviors

In AMP, [blocking behaviors](https://amp.dev/documentation/components/amp-consent/#blocking-behaviors) define when an element (ad, analytics, etc.) on the page can be loaded based on the user consent status collected by the CMP.

You have three possible scenarios for implementing blocking behaviors in AMP with a CMP:

* [Load immediately on page load](/cmp/amp/blocking-behaviors/tag-loaded-immediately-on-page-load.md)
* [Load only after consent (positive or negative)](/cmp/amp/blocking-behaviors/tag-loaded-only-after-consent-positive-or-negative.md)
* [Load only after positive consent](/cmp/amp/blocking-behaviors/tag-loaded-only-after-positive-consent.md)

Please read the detailed documentation associated with your scenario(s) as getting blocking behaviors correctly configured is a complicated topic in AMP.

## Common vendors

Main configurations available for the most common vendors:

| Vendor & tag                                                                       | Load immediately                                                                                                                                                  | Load after consent (+/-)                                                                                                        | Load after positive consent                                                                                         |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `comScore` and `amp-analytics`                                                     | [Link](/cmp/amp/blocking-behaviors/tag-loaded-immediately-on-page-load.md#vendors-that-block-the-tag-by-default)                                                  | [Link](/cmp/amp/blocking-behaviors/tag-loaded-only-after-consent-positive-or-negative.md#vendors-that-block-the-tag-by-default) | [Link](/cmp/amp/blocking-behaviors/tag-loaded-only-after-positive-consent.md#vendors-that-block-the-tag-by-default) |
| `DoubleClick` with RTC config on `amp-ad` (Ex: `Amazon APS`, `AppNexus`, `Criteo`) | [Link](/cmp/amp/blocking-behaviors/tag-loaded-immediately-on-page-load.md#vendors-sharing-consent-but-do-not-block-the-tag-by-default-ex-amp-ad-with-doubleclick) | [Link](/cmp/amp/blocking-behaviors/tag-loaded-only-after-consent-positive-or-negative.md#amp-ad-with-a-rtc-config)              | [Link](/cmp/amp/blocking-behaviors/tag-loaded-only-after-positive-consent.md#amp-ad-with-a-rtc-config)              |
| `DoubleClick` without RTC config on `amp-ad`                                       | [Link](/cmp/amp/blocking-behaviors/tag-loaded-immediately-on-page-load.md#vendors-sharing-consent-but-do-not-block-the-tag-by-default-ex-amp-ad-with-doubleclick) | [Link](/cmp/amp/blocking-behaviors/tag-loaded-only-after-consent-positive-or-negative.md#amp-ad-without-a-rtc-config)           | [Link](/cmp/amp/blocking-behaviors/tag-loaded-only-after-positive-consent.md#amp-ad-without-a-rtc-config)           |
| Other tags/vendors                                                                 | [Link](/cmp/amp/blocking-behaviors/tag-loaded-immediately-on-page-load.md#other-tags-vendors)                                                                     | [Link](/cmp/amp/blocking-behaviors/tag-loaded-only-after-consent-positive-or-negative.md#other-tags)                            | [Link](/cmp/amp/blocking-behaviors/tag-loaded-only-after-positive-consent.md#other-tags)                            |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.didomi.io/cmp/amp/blocking-behaviors.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
