> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.teachify.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 integrate Google Ads tracking code?

In this guide, we'll walk you through the steps to integrate a Google Ads tracking script into your website's backend. This process is essential for monitoring and optimizing your ad campaigns.

## Step 1: Obtain your Google Ads Tracking ID

![](https://storage.crisp.chat/users/helpdesk/website/31e42744710f7a0/cleanshot-2023-11-15-at-153502_sk2ylh.png)


* Go to your Google Ads Account
* Nagivate to the "Tools" / "Google Tag" section
* Click on the "Google Tag" with your IDs

## Step 2: Copy your tracking ID

![](https://storage.crisp.chat/users/helpdesk/website/31e42744710f7a0/cleanshot-2023-11-15-at-153642_1gt4r4t.png)

Copy your tracking id. The format should be  "AW-00000000000"

## Step 3: prepare your tracking code:

Replace AW-00000000000 with yours and copy the javascript. 

> Please note, there are two places in the script where you need to replace the tracking ID with your own ID.

```javascript
// Copy the following javascript code and don't forget to replace the id with your real tracking id
var script1 = document.createElement('script');
script1.async = true;
script1.src = 'https://www.googletagmanager.com/gtag/js?id=AW-00000000000';
document.head.appendChild(script1);

var script2 = document.createElement('script');
var code = `
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'AW-00000000000');
`;
script2.textContent = code;
document.head.appendChild(script2);

```

## Step 4: Insert the Tracking Script

![](https://storage.crisp.chat/users/helpdesk/website/31e42744710f7a0/cleanshot-2023-11-15-at-154034_e12doz.png)

* Go to your Teachify admin panel. 
* Navigate to the "General Settings" / "Appearence" / "Advanced Options"
* Paste your javascript you copied from step 3 into the "Customized JavaScript section"
* Click the update button.


