> 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/integrations/content-management-system-cms/shopify/expired-end-user-consent-shopify.md).

# Expired end-user consent (Shopify)

In this article, we will cover behavior limitations when an end-user's consent record is considered expired in Didomi.

* [End-user consent expiry](#end-user-consent-expiry)
* [Behavior](#behavior)

### End-user consent expiry

Didomi's record of an end-user's consent can expire when either of the following occurs:

* the duration for a consent record configured in Didomi has lapsed
* your organization calls [`Didomi.reset()`](https://developers.didomi.io/cmp/web-sdk/reference/api#reset) to reset all consent information for the current end-user.&#x20;

### Behavior

When an end-user's consent record has expired, the Didomi integration with Shopify will update the status of [Shopify consent categories](https://docs.didomi.io/integrations/content-management-system-cms/shopify.md#shopify-consent-categories) on the next page load when the Didomi SDK is ready. The behavior of this update for Shopify consent categories are as follows based on how the end-user provided consent:

<details>

<summary>Didomi consent notice</summary>

<table><thead><tr><th width="211.5">Initialized/Mapped</th><th>Update</th></tr></thead><tbody><tr><td>Yes</td><td><p>Shopify consent categories that were mapped as part of the Didomi integration and were therefore initialized will be reset to the following values:</p><ul><li>Analytics: <code>no</code> </li><li>Marketing: <code>no</code></li><li>Preferences: <code>no</code></li><li>Sale of Data: <code>yes</code></li></ul></td></tr><tr><td>No</td><td>If a Shopify consent category was not mapped as part of the Didomi integration and was therefore not initialized, the consent category will remain uninitialized when the category is updated and its value will remain an empty string.</td></tr></tbody></table>

</details>

<details>

<summary>Shopify checkout banner</summary>

If end-user consent was provided via the checkout banner then all Shopify consent categories will be reset to the following:

* Analytics: `no`&#x20;
* Marketing: `no`
* Preferences: `no`
* Sale of Data: `yes`

</details>

However, before the above update completes, Shopify pixels may fire using the end-user's previous consent record because Shopify cannot delay pixels and wait for Didomi to complete its consent check.&#x20;

Once Didomi can check the end-user's consent and Shopify consent categories are updated, Shopify pixels that require Analytics, Marketing and/or Preferences will be blocked on subsequent events until the end-user grants consent again. Tracking that occured in the interim cannot be undone.


---

# 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/integrations/content-management-system-cms/shopify/expired-end-user-consent-shopify.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.
