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

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

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.

// 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 = '';

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;

Step 4: Insert the Tracking Script

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.

Updated on: 15/11/2023

Was this article helpful?

Share your feedback


Thank you!