> For the complete documentation index, see [llms.txt](https://docs.didomi.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.didomi.io/analytics/consent-management-platform-cmp-analytics/cmp-metrics/pageviews.md).

# Pageviews

{% hint style="success" %}
**Access Type**: Analytics - Viewer
{% endhint %}

The pageviews metric is calculated by counting each time a web page is loaded and therefore the Didomi CMP web SDK is loaded. The relationship between the pageview metric your organization finds via Didomi CMP analytics and pageviews via your web analytics tracking tool depends on whether your web analytics tool is sychronized with end-user consent .

* [Web analytics synced with end-user consent](#web-analytics-synced-with-end-user-consent)
* [Web analytics not synced with end-user consent](#web-analytics-not-synced-with-end-user-consent)

***

### Web analytics synced with end-user consent

Generally, if your consent notice leverages a tag management integration with your Didomi CMP implementation then the consent notice is sending end-user consent (opt-in and opt-out) to the tag management integration. This configuration means that the triggering of the web analytics tag is synchronized with the end-user consent.

Under these circumstances, only pageviews from end-users with consent will be counted by the web analytics tool. The volume of pageviews from your organization's web analytics tool should be similar to the [Opt-in pageviews](https://docs.didomi.io/analytics/consent-management-platform-cmp-analytics/cmp-metrics/cmp-metric-glossary.md#cmp-traffic-scope) for Didomi CMP analytics.

{% hint style="warning" %}
**Note**: Be aware that the pageview count for Didomi CMP analytics is [sampled](https://docs.didomi.io/analytics/consent-management-platform-cmp-analytics.md#data-sampling) and the data detected by the bots may be different from that of your organization's web analytics tool. These factors can generate discrepencies between metrics.
{% endhint %}

### Web analytics not synced with end-user consent

If your consent notice does not leverage a tag management integration with your Didomi CMP implementation it is unlikely that the triggering of the web analytics tags will be synchronized with the end-user's consent.

In this case, the web analytics tool will collect all the pageviews without taking into account the end-user's consent. The volume of pageviews from your organization's web analytics tool should be similar to the pageviews for Didomi CMP analytics

{% hint style="warning" %}
**Note**: Some web analytics tools, such as AT Internet, offer consent exemption capabilities. In this case, the volume of pageviews will be similar to the volume of pageviews in the Didomi CMP analytics (pageviews with opt-ins plus pageviews without consent).
{% endhint %}


---

# 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://docs.didomi.io/analytics/consent-management-platform-cmp-analytics/cmp-metrics/pageviews.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.
