# Frontend view of Google Tag Manager

To enable debugger on frontend set URL as following

{{base\_url}}?debug=gtm

**View item list**

<figure><img src="/files/2W4f8Hxx87e311oJ7s30" alt=""><figcaption></figcaption></figure>

**View cart item**

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

**View checkout**

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

**View purchase**

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

If anything goes wrong, please contact us at <support@magecomp.com>


---

# 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.magecomp.com/magento-2-google-analytics-4-with-gtm/frontend-view-of-google-tag-manager.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.
