> For the complete documentation index, see [llms.txt](https://docs.mews.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mews.com/booking-engine-guide/integrations/gtm-skeleton.md).

# Google Tag Manager Configuration

This guide provides a streamlined process for exporting and configuring a Google Tag Manager (GTM) skeleton suitable for booking engine. Follow these precise steps to efficiently adapt your GTM setup to new requirements.

## Prepare your configuration

1. **Download the configuration file:**
   * Access the prepared skeleton configuration file: [Google Tag Manager - Configuration.json](https://github.com/MewsSystems/poc-open-api-docs/blob/main/booking-engine/.gitbook/assets/GTM-Mews.json).
2. **IMPORTANT: Customize the configuration:**
   * Open the downloaded JSON file in your preferred text editor.
   * Replace all occurrences of `_GA4_ID_` with your actual Google Analytics 4 (GA4) tracking ID.
3. **Prepare for import:**
   * Save the changes to the JSON file, ensuring it is ready to be imported into your GTM account.

## Import configuration into Google Tag Manager

### Import the modified file:

* **Navigate to import options:**
  * In your GTM account, go to the **Admin** tab.
  * Under the container options, select **Import Container**.
* **Select and upload file:**
  * Click on **Choose file** and select your modified JSON file.
  * Decide how to merge this configuration with any existing setup. Options include:
    * **Overwrite**: Replaces the current container with the imported one.
    * **Merge**: Combines the imported configuration with the existing one, with options to resolve conflicts.
    * **Rename**: Adds the imported configuration while renaming any conflicts.
* **Complete the import:**
  * Follow prompts to finalize the import process.

### Update and publish:

* **Review configuration:**
  * Thoroughly check all tags, triggers, and variables to ensure they are correctly configured.
* **Test before publishing:**
  * Utilize GTM's preview mode to test the setup. Ensure that all configurations perform as expected.
* **Publish changes:**
  * Once verified, publish the container to apply your configurations live.


---

# 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.mews.com/booking-engine-guide/integrations/gtm-skeleton.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.
