# FAQ

### How do I create a new GTM container?

* Go to [Google Tag Manager](https://tagmanager.google.com)
* Sign in with your Google account
* Click "Create Account" if you don't have one, or select an existing account
* Click "Create Container"
* Enter a container name (descriptive name for your website/app)
* Select "Web" as the target platform
* Click "Create" and accept the Terms of Service
* Your new container will be created with a Container ID like `GTM-XXXXXXX`

### Can I use multiple GTM containers with EdgeTag?

EdgeTag supports one GTM container per channel configuration. If you need multiple containers:

* Create separate EdgeTag channels for each GTM container
* Configure each channel with a different Container ID
* Consider using different dataLayer names to avoid conflicts
* Be mindful of tag firing order and potential conflicts

### What's the difference between GTM and GA4 integration?

* **GTM Integration:** Sends events to Google Tag Manager's dataLayer, allowing you to configure any tags (GA4, Google Ads, Facebook Pixel, etc.)
* **GA4 Integration:** Sends events directly to Google Analytics 4, bypassing GTM

**Use GTM when:**

* You want to manage multiple marketing tags
* You need complex tag firing logic
* You want non-technical users to manage tags
* You use multiple analytics platforms

**Use direct GA4 when:**

* You only need Google Analytics tracking
* You want simpler setup
* You prefer direct API connections

### Why aren't my events showing up in GTM?

**Check these common issues:**

* **Container ID:** Verify the Container ID is correct and active
* **GTM Preview Mode:** Ensure you're using GTM's preview mode for testing
* **Triggers:** Check that your GTM triggers are configured correctly
* **Data Layer Name:** Ensure the dataLayer name matches between EdgeTag and GTM
* **Console Errors:** Look for JavaScript errors that might prevent GTM from loading
* **Network Issues:** Check that GTM scripts are loading successfully

### How do I handle consent with GTM and EdgeTag?

GTM has built-in consent management that works with EdgeTag:

* **Set up Consent Mode in GTM** using built-in consent templates
* **Configure consent triggers** based on user consent choices
* **Use consent-aware tags** that respect user preferences
* **EdgeTag will respect GTM's consent decisions** automatically

For advanced consent management, consider using a dedicated consent management platform that integrates with both EdgeTag and GTM.

### Can I use GTM Server-Side with EdgeTag?

Currently, EdgeTag's GTM integration focuses on client-side (browser) implementation. For server-side GTM:

* Contact EdgeTag support for server-side configuration options
* Consider using EdgeTag's direct API integrations for server-side tracking
* Hybrid setups are possible where EdgeTag handles client-side and you manage server-side separately


---

# 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.edgetag.io/channels/google-tag-manager/faq.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.
