# Google Tag Manager Integration

**GoAffPro** provides you with the option to integrate Google Tag Manager.

To integrate Google Tag Manager, go to the **Integrations** section in the **Settings** tab of the GoAffPro admin panel.

<figure><img src="/files/Xb3m1oHj1s0KbiGJiNN8" alt=""><figcaption><p>Settings > Integrations</p></figcaption></figure>

Here, go to the Google tag manager section.

<figure><img src="/files/Q5zpA71pEJHHGxNnaoge" alt=""><figcaption><p>Google tag manager</p></figcaption></figure>

Now, click on **Setup**.

<figure><img src="/files/M4qA0EDKyCUsW88Qlqkz" alt=""><figcaption><p>Click on Setup</p></figcaption></figure>

This will open up the Google Tag Manager setup section.

<figure><img src="/files/OOtQaaCGiT1c1k3LuK67" alt=""><figcaption><p>Google Tag Manager</p></figcaption></figure>

Here, **copy and add** the base tracking code to your store's pages including the page where your `gtag('event','conversion')` code is present.

<figure><img src="/files/bQTKZZAoyVbm3WeDkUUt" alt=""><figcaption><p>Copy and Add the base tracking code<br></p></figcaption></figure>

Now, enable the **Google Tag Manager Automatic conversion** module.

<figure><img src="/files/iunK5khTxJs6oynuiJI1" alt=""><figcaption><p>Enable the Google Tag Manager Automatic conversion module</p></figcaption></figure>

Next, enable **conversion data logging**.

<figure><img src="/files/PXFwni4Js3GuPcW9tp3u" alt=""><figcaption><p>Enable conversion data logging</p></figcaption></figure>

After this, you can place an order to check the conversion tracking.

<figure><img src="/files/cjhsTREU7O9ZjeLe0E74" alt=""><figcaption><p>Please an order to check the conversion tracking</p></figcaption></figure>

Finally, Google Tag Manager will be setup. This will allow you to record conversions in Google Analytics.&#x20;

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

{% embed url="<https://youtu.be/qXcREI-2mw4>" %}
Google Tag Manager Integration
{% endembed %}


---

# 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.goaffpro.com/program-settings/integrations/google-tag-manager-integration.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.
