# GTM Cookie Consent

{% hint style="info" %}
Cozmos spheres only support analytics tags, such as GA4. Other tags may work but we do not guarantee their interaction with sphere's 3D objects or that they will send meaningful data.

Other tags may need additional consent settings such as ad consent, please consult the tag provider to make sure this is correct. Cozmos spheres will allow or deny based on ANY consent type and are currently designed to not be granular in what a user can choose.
{% endhint %}

If you are using GTM to drop additional analytics cookies on the Spheres you publish, you must ensure these are correctly configured within GTM to allow the Sphere cookie consent pop-up to either accept or decline the use of these cookies.

Please follow the guide below to correctly configure GTM.

### Enable Consent Overview

By default, the consent overview is not enabled in GTM. To enable it, follow the below steps:

* Open your GTM admin panel
* Go to Admin settings

<figure><img src="/files/krSSkT8Ooi2Ym8N7bIfk" alt=""><figcaption></figcaption></figure>

* Click on Container Settings <mark style="color:yellow;">(Make sure it is the container you use for Cozmos)</mark>
* In Container Settings, ensure 'Enable Consent Overview' is set to on.

<figure><img src="/files/So1DrfLFPFrIrAV5zcm2" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
When you enable consent mode, Google ensures that a visitor’s consent mode state is preserved across the pages they visit. If consent is denied, tags that fire do not store cookies, instead they communicate a minimum of information about user activity.
{% endhint %}

### Configuring Additional Consent

Once the consent overview has been enabled you will be able to view and edit additional consent settings for your tags.

To do this go to your Workspace and select Tags from the left hand menu.

In the Tags list, click on the <mark style="color:yellow;">shield icon</mark> in the top right.

<figure><img src="/files/Qky1J7uDzqQ4BuAvw7xM" alt=""><figcaption></figcaption></figure>

This will show you the consent overview status for your tags, separated by 'configured' and 'not configured'

<figure><img src="/files/JI6VZWcgsY6oQoDgiV9s" alt=""><figcaption></figcaption></figure>

Select a Tag and click on the <mark style="color:yellow;">shield icon with the cog</mark> <img src="/files/Aqsd3SAot5lr8lXkpAom" alt="" data-size="line"> to add/edit consent

<figure><img src="/files/7VXQt13tAIr0pg1X9ZrN" alt=""><figcaption></figcaption></figure>

Please note, you must set the consent to <mark style="color:yellow;">analytics\_storage</mark> in order for the tag to be either accepted or declined when the sphere viewer interacts with the cookie consent pop-up on your sphere.

Don't forget to save and submit your changes to GTM.

{% hint style="danger" %}
Per our Terms and Conditions, consent and cookies are the direct responsibility of the space owner to setup and maintain. Cozmos assume no liability for incorrect configuration of GTM and or any tag used and configured via GTM.
{% endhint %}

Please feel free to get in touch with [Cozmos Support](/help/support.md) if you encounter any issues when setting up Cookie Consent for your spheres.


---

# 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://learn.cozmos.com/guides/analytics/gtm-cookie-consent.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.
