> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.coupontools.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to add Google Analytics (GA) or Google Tag Manager (GTM) to a coupon?


### Adding Google Analytics

* Edit your campaign
* Go to 'Advanced settings' 
* Scroll down until you see Attach pixels or tracking codes to your coupon.

![](https://storage.crisp.chat/users/helpdesk/website/4c4cc617dc0a0c00/image_uxvsc6.png)
* You can add your code here and it will be loaded on all pages from the coupon campaign.

Here is an example analytics code:

```<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id="
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>```

_P.S. your coupon builder has to be in 'Advanced Mode'. This feature is not available in 'Lite Mode'_


### Adding Google Tag Manager

* Go to "integrations"
* Select "Google Tag Manager"
* Here you can add your Google Tag Manager which will be loaded into every campaign (also the campaigns who already were created before adding the code)